Slide 145
Slide 145 text
class CalcParser < Racc::Parser
module_eval(<<'...end calc.y/module_eval...', 'calc.y', 10)
#tokenizer deleted for space reasons
...end calc.y/module_eval...
##### State transition tables begin ###
racc_action_table = [
2, 3, 4, 5, 6 ]
racc_action_check = [
0, 1, 2, 3, 4 ]
racc_action_pointer = [
-2, 1, -1, 3, 2, nil, nil ]
racc_action_default = [
-2, -2, -2, -2, -2, 7, -1 ]
racc_goto_table = [
1 ]
racc_goto_check = [
1 ]