Parent

Racc::StateTransitionTable

Attributes

states[R]
grammar[R]

Public Class Methods

generate(states) click to toggle source
    # File lib/racc/statetransitiontable.rb, line 39
39:     def StateTransitionTable.generate(states)
40:       StateTransitionTableGenerator.new(states).generate
41:     end
new(states) click to toggle source
    # File lib/racc/statetransitiontable.rb, line 43
43:     def initialize(states)
44:       super()
45:       @states = states
46:       @grammar = states.grammar
47:       self.use_result_var = true
48:       self.debug_parser = true
49:     end

Public Instance Methods

parser_class() click to toggle source
    # File lib/racc/statetransitiontable.rb, line 54
54:     def parser_class
55:       ParserClassGenerator.new(@states).generate
56:     end
token_value_table() click to toggle source
    # File lib/racc/statetransitiontable.rb, line 58
58:     def token_value_table
59:       h = {}
60:       token_table().each do |sym, i|
61:         h[sym.value] = i
62:       end
63:       h
64:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.