Module lexer

Source
Expand description

Custom Solidity lexer.

Solidity needs a custom lexer for two reasons:

  • comments and doc comments
  • pragma value is [^;]+

Structs§

Lexer
Custom Solidity lexer.

Enums§

LexicalError
An error thrown by Lexer.
Token
A Solidity lexical token. Produced by Lexer.

Functions§

is_keyword
Returns whether word is a keyword in Solidity.

Type Aliases§

Result
Lexer’s Result type.
Spanned
A spanned Token.