struct

Noir::Lexer::DSL

Inherits Struct / Value / Object

Constructors

new(lexer : Lexer, input : Scanner, output : Formatter, last_match : Regex::MatchData)
Source

Instance methods

[](i)
Source
[]?(i)
Source
clone
Source
copy_with(lexer _lexer = @lexer, input _input = @input, output _output = @output, last_match _last_match = @last_match)
Source
current_state
Source
delegate(lexer : Lexer, text = last_match[0]) : Nil
Source
goto(state_name) : Nil
Source
groups(*tokens : Token) : Nil
Source
in_state?(state_name) : Bool
Source
input
last_match
lexer
output
pop!(times = 1) : Nil
Source
push
Source
push(state_name : Symbol) : Nil
Source
push(state_name : Nil = nil) : Nil
Source
reset_stack
Source
stack
Source
state?(state_name) : Bool
Source
token(token : Token, value : String | Nil = last_match[0]) : Nil
Source