Lines Matching refs:token

310            get_token = lexer.token
322 errtoken = None # Err token
334 # the next token off of the lookaheadstack or from the lexer
343 lookahead = get_token() # Get the next token
497 # this, we are going to push the current token onto
498 # the tokenstack and replace it with an 'error' token.
502 # In addition to pushing the error token, we call call
513 global errok,token,restart
515 token = get_token
520 del errok, token, restart # Delete special functions
525 # returned token is the next lookahead
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)
545 # entire parse has been rolled back and we're completely hosed. The token is
557 # at the end of the file. nuke the top entry and generate an error token
621 get_token = lexer.token
633 errtoken = None # Err token
645 # the next token off of the lookaheadstack or from the lexer
649 lookahead = get_token() # Get the next token
770 # this, we are going to push the current token onto
771 # the tokenstack and replace it with an 'error' token.
775 # In addition to pushing the error token, we call call
786 global errok,token,restart
788 token = get_token
793 del errok, token, restart # Delete special functions
798 # returned token is the next lookahead
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)
818 # entire parse has been rolled back and we're completely hosed. The token is
830 # at the end of the file. nuke the top entry and generate an error token
893 get_token = lexer.token
905 errtoken = None # Err token
917 # the next token off of the lookaheadstack or from the lexer
921 lookahead = get_token() # Get the next token
1025 # this, we are going to push the current token onto
1026 # the tokenstack and replace it with an 'error' token.
1030 # In addition to pushing the error token, we call call
1041 global errok,token,restart
1043 token = get_token
1048 del errok, token, restart # Delete special functions
1053 # returned token is the next lookahead
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)
1073 # entire parse has been rolled back and we're completely hosed. The token is
1085 # at the end of the file. nuke the top entry and generate an error token
1393 raise GrammarError("%s:%d: Illegal rule name '%s'. Already defined as a token" % (file,line,prodname))
1405 raise GrammarError("%s:%d: Literal token %s in rule '%s' may only be a single character" % (file,line,s, prodname))
2892 self.log.error("No token list is defined")
2912 self.log.error("Illegal token name 'error'. Is a reserved word")
3145 errorlog.error("%s:%d: Symbol '%s' used, but not defined as a token or a rule",prod.file,prod.line,sym)
3171 errorlog.warning("There is 1 unused token")