Noir::Lexer::DSL
Inherits Struct / Value / Object
Constructors
new(lexer : Lexer, input : Scanner, output : Formatter, last_match : Regex::MatchData)
SourceInstance methods
[](i)
Source[]?(i)
Sourceclone
Sourcecopy_with(lexer _lexer = @lexer, input _input = @input, output _output = @output, last_match _last_match = @last_match)
Sourcecurrent_state
Sourcedelegate(lexer : Lexer, text = last_match[0]) : Nil
Sourcegoto(state_name) : Nil
Sourcegroups(*tokens : Token) : Nil
Sourcein_state?(state_name) : Bool
Sourceinput
last_match
lexer
output
pop!(times = 1) : Nil
Sourcepush
Sourcepush(state_name : Symbol) : Nil
Sourcepush(state_name : Nil = nil) : Nil
Sourcereset_stack
Sourcestack
Sourcestate?(state_name) : Bool
Sourcetoken(token : Token, value : String | Nil = last_match[0]) : Nil
Source