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.
- Cursor
With Position Cursorthat also tracks the position of each token in the input string.- Lexer
- Solidity and Yul lexer.
Functions§
- is_
id_ continue - Returns
trueif the given character is valid in a Solidity identifier. - is_
id_ continue_ byte - Returns
trueif the given character is valid in a Solidity identifier. - is_
id_ start - Returns
trueif the given character is valid at the start of a Solidity identifier. - is_
id_ start_ byte - Returns
trueif the given character is valid at the start of a Solidity identifier. - is_
ident - Returns
trueif the given string is a valid Solidity identifier. - is_
ident_ bytes - Returns
trueif the given byte slice is a valid Solidity identifier. - is_
whitespace - Returns
trueif the given character is considered a whitespace. - is_
whitespace_ byte - Returns
trueif the given character is considered a whitespace.