Lrama::Lexer
Constants
PERCENT_TOKENS = ["%union", "%token", "%type", "%nterm", "%left", "%right", "%nonassoc", "%expect", "%define", "%require", "%printer", "%destructor", "%lex-param", "%parse-param", "%initial-action", "%precedence", "%prec", "%error-token", "%before-reduce", "%after-reduce", "%after-shift-error-token", "%after-shift", "%after-pop-stack", "%empty", "%code", "%rule", "%no-stdlib", "%inline", "%locations", "%categories", "%start", "%lexer"]
SYMBOLS = ["%{", "%}", "%%", "{", "}", "[", "]", "(", ")", ",", ":", "|", ";"]
Constructors
new(grammar_file : GrammarFile)
SourceInstance methods
column
Sourceend_symbol
Sourcehead_column
Sourcehead_line
Sourcelex_c_code
Sourcelex_token
Sourceline
Sourcelocation
Sourcenext_token
Sourcestatus
Source