Home | History | Annotate | Download | only in ply

Lines Matching refs:GrammarError

1312 class GrammarError(YaccError): pass
1368 raise GrammarError("Precedence already specified for terminal '%s'" % term)
1370 raise GrammarError("Associativity must be one of 'left','right', or 'nonassoc'")
1393 raise GrammarError("%s:%d: Illegal rule name '%s'. Already defined as a token" % (file,line,prodname))
1395 raise GrammarError("%s:%d: Illegal rule name '%s'. error is a reserved word" % (file,line,prodname))
1397 raise GrammarError("%s:%d: Illegal rule name '%s'" % (file,line,prodname))
1405 raise GrammarError("%s:%d: Literal token %s in rule '%s' may only be a single character" % (file,line,s, prodname))
1413 raise GrammarError("%s:%d: Illegal name '%s' in rule '%s'" % (file,line,s, 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))
1424 raise GrammarError("%s:%d: Nothing known about the precedence of '%s'" % (file,line,precname))
1437 raise GrammarError("%s:%d: Duplicate rule %s. " % (file,line, m) +
1477 raise GrammarError("start symbol %s undefined" % start)
3114 except GrammarError:
3123 except GrammarError:
3134 except GrammarError: