Module token

Source
Expand description

The token module, which contains the Token struct. This struct maintains the position and the kind of the token. These are generated by the lexer. The Token struct holds the tokens that are generated by the Lexer. The Token struct maintains the position where the token was generated and the value of the token. Using an enum for the values increases the readibility of the code.

Structsยง

Token