Symbol is essentially the "type" of a Token. Token is like an instance of a Symbol.
This only represents terminals. Nonterminal tokens aren't constructed since the AST is built directly during parsing.
You can't create a Symbol directly. Instead, use the symbol template.
See Implementation
Symbol is essentially the "type" of a Token. Token is like an instance of a Symbol.
This only represents terminals. Nonterminal tokens aren't constructed since the AST is built directly during parsing.
You can't create a Symbol directly. Instead, use the symbol template.