Lines Matching refs:GrammarError
1314 class GrammarError(YaccError): pass class
1370 raise GrammarError("Precedence already specified for terminal '%s'" % term)
1372 raise GrammarError("Associativity must be one of 'left','right', or 'nonassoc'")
1395 …raise GrammarError("%s:%d: Illegal rule name '%s'. Already defined as a token" % (file,line,prodna…
1397 …raise GrammarError("%s:%d: Illegal rule name '%s'. error is a reserved word" % (file,line,prodname…
1399 raise GrammarError("%s:%d: Illegal rule name '%s'" % (file,line,prodname))
1407 …raise GrammarError("%s:%d: Literal token %s in rule '%s' may only be a single character" % (file,l…
1415 … raise GrammarError("%s:%d: Illegal name '%s' in rule '%s'" % (file,line,s, prodname))
1420 raise GrammarError("%s:%d: Syntax error. Nothing follows %%prec" % (file,line))
1422 …raise GrammarError("%s:%d: Syntax error. %%prec can only appear at the end of a grammar rule" % (f…
1426 … raise GrammarError("%s:%d: Nothing known about the precedence of '%s'" % (file,line,precname))
1439 raise GrammarError("%s:%d: Duplicate rule %s. " % (file,line, m) +
1479 raise GrammarError("start symbol %s undefined" % start)
3120 except GrammarError:
3129 except GrammarError:
3140 except GrammarError: