struct Noir::Lexer::DSL

Defined in:

noir/lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lexer : Lexer, input : Scanner, output : Formatter, last_match : Regex::MatchData) #

[View source]

Instance Method Detail

def [](i) #

[View source]
def []?(i) #

[View source]
def clone #

[View source]
def copy_with(lexer _lexer = @lexer, input _input = @input, output _output = @output, last_match _last_match = @last_match) #

[View source]
def current_state : State #

[View source]
def delegate(lexer : Lexer, text = last_match[0]) : Nil #

[View source]
def goto(state_name) : Nil #

[View source]
def groups(*tokens : Token) : Nil #

[View source]
def in_state?(state_name) : Bool #

[View source]
def input : Scanner #

def last_match : Regex::MatchData #

def lexer : Lexer #

def output : Formatter #

def pop!(times = 1) : Nil #

[View source]
def push(&) : Nil #

[View source]
def push(state_name : Symbol) : Nil #

[View source]
def push(state_name : Nil = nil) : Nil #

[View source]
def reset_stack : Nil #

[View source]
def stack : Deque(State) #

[View source]
def state?(state_name) : Bool #

[View source]
def token(token : Token, value : String | Nil = last_match[0]) : Nil #

[View source]