Lines Matching defs:error

127     def error(self,msg,*args,**kwargs):
229 def error(self):
289 errorcount = 0 # Used during error recovery
372 # Decrease error count on successful shift
429 # If an error was set. Enter error recovery state
434 sym.type = 'error'
468 # If an error was set. Enter error recovery state
473 sym.type = 'error'
492 debug.error('Error : %s',
496 # We have some kind of parsing error here. To handle
498 # the tokenstack and replace it with an 'error' token.
502 # In addition to pushing the error token, we call call
504 # first syntax error. This function is only called if
514 errok = self.errok # Set some special functions available in error recovery
534 sys.stderr.write("yacc: Syntax error at line %d, token=%s\n" % (lineno, errtoken.type))
536 sys.stderr.write("yacc: Syntax error, token=%s" % errtoken.type)
538 sys.stderr.write("yacc: Parse error in input. EOF\n")
557 # at the end of the file. nuke the top entry and generate an error token
564 if lookahead.type != 'error':
566 if sym.type == 'error':
572 t.type = 'error'
585 # Call an error function here
586 raise RuntimeError("yacc: internal parser error!!!\n")
604 errorcount = 0 # Used during error recovery
669 # Decrease error count on successful shift
715 # If an error was set. Enter error recovery state
720 sym.type = 'error'
751 # If an error was set. Enter error recovery state
756 sym.type = 'error'
769 # We have some kind of parsing error here. To handle
771 # the tokenstack and replace it with an 'error' token.
775 # In addition to pushing the error token, we call call
777 # first syntax error. This function is only called if
787 errok = self.errok # Set some special functions available in error recovery
807 sys.stderr.write("yacc: Syntax error at line %d, token=%s\n" % (lineno, errtoken.type))
809 sys.stderr.write("yacc: Syntax error, token=%s" % errtoken.type)
811 sys.stderr.write("yacc: Parse error in input. EOF\n")
830 # at the end of the file. nuke the top entry and generate an error token
837 if lookahead.type != 'error':
839 if sym.type == 'error':
845 t.type = 'error'
858 # Call an error function here
859 raise RuntimeError("yacc: internal parser error!!!\n")
876 errorcount = 0 # Used during error recovery
941 # Decrease error count on successful shift
976 # If an error was set. Enter error recovery state
981 sym.type = 'error'
1006 # If an error was set. Enter error recovery state
1011 sym.type = 'error'
1024 # We have some kind of parsing error here. To handle
1026 # the tokenstack and replace it with an 'error' token.
1030 # In addition to pushing the error token, we call call
1032 # first syntax error. This function is only called if
1042 errok = self.errok # Set some special functions available in error recovery
1062 sys.stderr.write("yacc: Syntax error at line %d, token=%s\n" % (lineno, errtoken.type))
1064 sys.stderr.write("yacc: Syntax error, token=%s" % errtoken.type)
1066 sys.stderr.write("yacc: Parse error in input. EOF\n")
1085 # at the end of the file. nuke the top entry and generate an error token
1092 if lookahead.type != 'error':
1094 if sym.type == 'error':
1100 t.type = 'error'
1113 # Call an error function here
1114 raise RuntimeError("yacc: internal parser error!!!\n")
1332 self.Terminals['error'] = []
1345 # This is only used to provide error checking and to generate
1386 # A variety of error checks are performed to make sure production symbols
1394 if prodname == 'error':
1395 raise GrammarError("%s:%d: Illegal rule name '%s'. error is a reserved word" % (file,line,prodname))
1418 raise GrammarError("%s:%d: Syntax error. Nothing follows %%prec" % (file,line))
1420 raise GrammarError("%s:%d: Syntax error. %%prec can only appear at the end of a grammar rule" % (file,line))
1566 if not s in self.Prodnames and not s in self.Terminals and s != 'error':
1589 if not s in self.Prodnames and not s in self.Terminals and s != 'error':
1602 if s != 'error' and not v:
2745 raise SyntaxError("%s:%d: Syntax error. Expected ':'" % (file,dline))
2751 raise SyntaxError("%s:%d: Syntax error in rule '%s'" % (file,dline,ps.strip()))
2759 # start symbol, error function, tokens, precedence list, action functions,
2770 self.error = 0
2793 return self.error
2862 self.log.error("'start' must be a string")
2864 # Look for error handler
2868 # Validate the error function
2876 self.log.error("'p_error' defined, but is not a function or method")
2877 self.error = 1
2885 self.log.error("%s:%d: p_error() requires 1 argument",efile,eline)
2886 self.error = 1
2892 self.log.error("No token list is defined")
2893 self.error = 1
2897 self.log.error("tokens must be a list or tuple")
2898 self.error = 1
2902 self.log.error("tokens is empty")
2903 self.error = 1
2911 if 'error' in self.tokens:
2912 self.log.error("Illegal token name 'error'. Is a reserved word")
2913 self.error = 1
2931 self.log.error("precedence must be a list or tuple")
2932 self.error = 1
2936 self.log.error("Bad precedence table")
2937 self.error = 1
2941 self.log.error("Malformed precedence entry %s. Must be (assoc, term, ..., term)",p)
2942 self.error = 1
2946 self.log.error("precedence associativity must be a string")
2947 self.error = 1
2951 self.log.error("precedence items must be strings")
2952 self.error = 1
2978 self.log.error("no rules of the form p_rulename are defined")
2979 self.error = 1
2989 self.log.error("%s:%d: Rule '%s' has too many arguments",file,line,func.__name__)
2990 self.error = 1
2992 self.log.error("%s:%d: Rule '%s' requires an argument",file,line,func.__name__)
2993 self.error = 1
3003 self.log.error(str(e))
3004 self.error = 1
3061 if pinfo.error:
3125 errorlog.error("%s",str(e))
3136 errorlog.error(str(e))
3145 errorlog.error("%s:%d: Symbol '%s' used, but not defined as a token or a rule",prod.file,prod.line,sym)
3205 errorlog.error("Infinite recursion detected for symbol '%s'", inf)
3210 errorlog.error("Precedence rule '%s' defined for unknown symbol '%s'", assoc, term)