Method: Racc::States#initialize

Defined in:
lib/racc/state.rb

#initialize(grammar, debug_flags = DebugFlags.new) ⇒ States

Returns a new instance of States.



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/racc/state.rb', line 22

def initialize(grammar, debug_flags = DebugFlags.new)
  @grammar = grammar
  @symboltable = grammar.symboltable
  @d_state = debug_flags.state
  @d_la    = debug_flags.la
  @d_prec  = debug_flags.prec
  @states = []
  @statecache = {}
  @actions = ActionTable.new(@grammar, self)
  @nfa_computed = false
  @dfa_computed = false
end