class

Lrama::Lexer

Inherits Reference < Object

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)
Source

Instance methods

column
Source
end_symbol
Source
end_symbol=(end_symbol : String | Nil)
Source
head_column
Source
head_line
Source
lex_c_code
Source
lex_token
Source
line
Source
location
Source
next_token
Source
status
Source
status=(value : Symbol)
Source

Nested types