Struct Token
This only represents terminals. Nonterminals aren't constructed since the AST is directly built during parsing.
Constructors
Name | Description |
---|---|
this | |
this |
Fields
Name | Type | Description |
---|---|---|
symbol | sdlang_.symbol.Symbol | The "type" of this token |
location | Location | |
value | Value | Only valid when 'symbol ' is symbol !"Value ", otherwise null |
data | string | Original text from source |
Methods
Name | Description |
---|---|
opEquals | Tokens with differing symbols are always unequal. Tokens with differing values are always unequal. Tokens with differing Value types are always unequal. Member 'location ' is always ignored for comparison. Member 'data ' is ignored for comparison *EXCEPT* when the symbol is Ident. |
matches | |
opAssign |