Module lexer

Module lexer 

Source
Expand description

Solidity and Yul lexer.

Modules§

token
Raw, low-level tokens. Created using Cursor.
unescape
Utilities for validating string and char literals and turning them into values they represent.

Structs§

Cursor
Peekable iterator over a char sequence.
CursorWithPosition
Cursor that also tracks the position of each token in the input string.
Lexer
Solidity and Yul lexer.

Functions§

is_id_continue
Returns true if the given character is valid in a Solidity identifier.
is_id_continue_byte
Returns true if the given character is valid in a Solidity identifier.
is_id_start
Returns true if the given character is valid at the start of a Solidity identifier.
is_id_start_byte
Returns true if the given character is valid at the start of a Solidity identifier.
is_ident
Returns true if the given string is a valid Solidity identifier.
is_ident_bytes
Returns true if the given byte slice is a valid Solidity identifier.
is_whitespace
Returns true if the given character is considered a whitespace.
is_whitespace_byte
Returns true if the given character is considered a whitespace.