class Pegasus::Pda::Pda
- Pegasus::Pda::Pda
- Pegasus::Automata::UniqueAutomaton(Set(Pegasus::Pda::LookaheadItem), Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId)
- Pegasus::Automata::Automaton(Set(Pegasus::Pda::LookaheadItem), Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId)
- Reference
- Object
Overview
A class that represents the (LA)LR Push Down Automaton.
Defined in:
pegasus/pda.crpegasus/table.cr
Constructors
Instance Method Summary
-
#action_table
Creates an action table, determing what the parser should do at the given state and the lookhead token.
-
#state_table
Creates a transition table that is indexed by both Terminals and Nonterminals.
Instance methods inherited from class Pegasus::Automata::UniqueAutomaton(Set(Pegasus::Pda::LookaheadItem), Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId)
state_for(*, data : V(Pegasus::Pda::LookaheadItem))
state_for
Constructor methods inherited from class Pegasus::Automata::UniqueAutomaton(Set(Pegasus::Pda::LookaheadItem), Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId)
new
new
Instance methods inherited from class Pegasus::Automata::Automaton(Set(Pegasus::Pda::LookaheadItem), Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId)
last_id : Int64
last_id,
start : State(V(Pegasus::Pda::LookaheadItem), T | T) | Nil
start,
start=(start : State(V(Pegasus::Pda::LookaheadItem), T | T) | Nil)
start=,
state_for(*, data : V(Pegasus::Pda::LookaheadItem))
state_for,
states : Set(State(V(Pegasus::Pda::LookaheadItem), T | T))
states
Constructor methods inherited from class Pegasus::Automata::Automaton(Set(Pegasus::Pda::LookaheadItem), Pegasus::Elements::NonterminalId | Pegasus::Elements::TerminalId)
new
new
Constructor Detail
Instance Method Detail
def action_table
#
Creates an action table, determing what the parser should do at the given state and the lookhead token.