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
data string Original text from source
location Location
symbol sdlang.symbol.Symbol The "type" of this token
value std.variant.VariantN!(32L,bool,string,dchar,int,long,float,double,real,std.datetime.Date,sdlang.token.DateTimeFrac,std.datetime.SysTime,sdlang.token.DateTimeFracUnknownZone,core.time.Duration,ubyte[],) Only valid when symbol is symbol!"Value", otherwise null

Methods

Name Description
matches
opAssign
opEquals Tokens with differing symbols are always unequal.
opEquals

Authors

Copyright

License