Lines Matching refs:method
76 default_lr = 'LALR' # Default LR table generation method
185 # The lineno() method returns the line number of a given
186 # item (or 0 if not defined). The linespan() method returns
188 # for a symbol. The lexspan() method returns a tuple (lexpos,endlexpos)
273 # copy this code to a method parseopt() and delete all of the sections
591 # Optimized version of parse() method. DO NOT EDIT THIS CODE DIRECTLY.
592 # Edit the debug version above, then copy any modifications to the method
1940 def __init__(self,grammar,method='LALR',log=None):
1941 if method not in ['SLR','LALR']:
1942 raise LALRError("Unsupported method %s" % method)
1945 self.lr_method = method
2073 # The method used here is due to DeRemer and Pennelo (1982).
2371 log.info("Parsing method: %s", self.lr_method)
2819 # This method checks to see if there are duplicated p_rulename() functions
2876 self.log.error("'p_error' defined, but is not a function or method")
3036 def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, start=None,
3040 global parse # Reference to the parsing method of the last built parser
3218 errorlog.debug("Generating %s tables", method)
3220 lr = LRGeneratedTable(grammar,method,debuglog)