diff python/pyyacc.py @ 340:c7cc54c0dfdf devel

Test featurebranch
author Windel Bouwman
date Sun, 23 Feb 2014 16:24:01 +0100
parents 8d07a4254f04
children 4d204f6f7d4e
line wrap: on
line diff
--- a/python/pyyacc.py	Fri Feb 21 13:35:07 2014 +0100
+++ b/python/pyyacc.py	Sun Feb 23 16:24:01 2014 +0100
@@ -201,14 +201,15 @@
                 if symbol not in self.Symbols:
                     raise ParserGenerationException('Symbol {0} undefined'.format(symbol))
 
-    def genParser(self):
-        """ Generates a parser from the grammar (using a caching algorithm) """
-        action_table, goto_table = self.doGenerate()
+    def generate_parser(self):
+        """ Generates a parser from the grammar """
+        action_table, goto_table = self.generate_tables()
         p = LRParser(action_table, goto_table, self.start_symbol)
         p.grammar = self
         return p
 
-    def doGenerate(self):
+    def generate_tables(self):
+        """ Generate parsing tables """
         if not self.start_symbol:
             self.start_symbol = self.productions[0].name
         self.checkSymbols()