class Parser::Automaton

Defined in:

parser/automaton.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(states : Array(Parser::Automaton::State)) #

[View source]

Instance Method Detail

def add(token : Symbol, value : U, *, pos : Pos | Nil = nil) forall U #

[View source]
def add(token : Symbol, *, pos : ChrPos | Nil = nil) #

[View source]
def add_state #

[View source]
def eof #

[View source]
def run(top : Token) #

[View source]
def stack : Array(Int32) #

[View source]
def state : State #

[View source]
def states : Array(State) #

[View source]
def symbols : Array(Parser::StackSym) #

[View source]