Attributes
Read
No documentation available
Read
No documentation available
Class Methods
lib/racc/statetransitiontable.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/racc/statetransitiontable.rb, line 40
def StateTransitionTable.generate(states)
StateTransitionTableGenerator.new(states).generate
end
No documentation available
::
lib/racc/statetransitiontable.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/racc/statetransitiontable.rb, line 44
def initialize(states)
super()
@states = states
@grammar = states.grammar
self.use_result_var = true
self.debug_parser = true
end
No documentation available
Instance Methods
lib/racc/statetransitiontable.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/racc/statetransitiontable.rb, line 55
def parser_class
ParserClassGenerator.new(@states).generate
end
No documentation available
lib/racc/statetransitiontable.rb
View on GitHub
# File tmp/rubies/ruby-3.0.5/lib/racc/statetransitiontable.rb, line 59
def token_value_table
h = {}
token_table().each do |sym, i|
h[sym.value] = i
end
h
end
No documentation available