Lines Matching refs:parser

34 # This implements an LR parser that is constructed from grammar rules defined
41 # LR parser itself is defined in terms of an object (which allows multiple
72 # a 'parser.out' file in the current directory
74 debug_file = 'parser.out' # Default name of the debugging file
113 # such as the parser.out file. If a user wants more detailed
142 # Format the result message that the parser produces when running in debug mode.
152 # Format stack entries when the parser is running in debug mode
164 # The following classes are used for the LR parser itself. These are not
196 self.parser= None
300 # Set up the lexer and parser objects on pslice
302 pslice.parser = self
586 raise RuntimeError("yacc: internal parser error!!!\n")
611 # Set up the lexer and parser objects on pslice
613 pslice.parser = self
859 raise RuntimeError("yacc: internal parser error!!!\n")
883 # Set up the lexer and parser objects on pslice
885 pslice.parser = self
1114 raise RuntimeError("yacc: internal parser error!!!\n")
2381 # Build the parser table, state by state
2758 # This class represents information extracted for building a parser including
2820 # in the parser module file. Without this function, it is really easy for
2822 # bugger to try and figure out why the resulting parser doesn't work). Therefore,
3033 # Build a parser
3040 global parse # Reference to the parsing method of the last built parser
3050 # Get the module dictionary used for the parser
3057 # Collect parser information from the dictionary
3062 raise YaccError("Unable to build parser")
3077 parser = LRParser(lr,pinfo.error_func)
3078 parse = parser.parse
3079 return parser
3100 # Validate the parser information
3102 raise YaccError("Unable to build parser")
3140 raise YaccError("Unable to build parser")
3214 raise YaccError("Unable to build parser")
3271 # Build the parser
3273 parser = LRParser(lr,pinfo.error_func)
3275 parse = parser.parse
3276 return parser