6.9.2. LALR Parser Table generator

6.9.2. LALR Parser Table generator

This is the efficient LALR parser generator described in the Dragon book.
Start python section to interscript/parsers/lalr1.py[11]
   256: #line 401 "lalr1_parser.ipk"
   257: class LALRGrammar(Grammar):
   258: 
   259:   def __init__(self, prods, start, verbosity=0):
   260:     Grammar.__init__(self, prods, start, verbosity)
   261:     self.calc_ntfirstmap()
   262:     self.calc_tfirstmap()
   263:     self.augment()
   264:     self.calc_LALR1items()
   265:     self.calc_action_table()
   266:     self.calc_goto_table()
   267:     self.unaugment()
   268: 
End python section to interscript/parsers/lalr1.py[11]