Searched refs:GrammarError (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Tools/peg_generator/pegen/ |
D | parser_generator.py | 17 from pegen.grammar import GrammarError, GrammarVisitor 28 raise GrammarError(f"Dangling reference to rule {node.value!r}") 32 raise GrammarError(f"Variable names cannot start with underscore: '{node.name}'") 46 raise GrammarError("Grammar without a trailer must have a 'start' rule") 63 raise GrammarError(f"Rule names cannot start with underscore: '{rule}'")
|
D | grammar.py | 23 class GrammarError(Exception): class
|
/external/python/cpython3/Lib/test/test_peg_generator/ |
D | test_pegen.py | 17 from pegen.grammar import GrammarVisitor, GrammarError, Grammar 547 with self.assertRaises(GrammarError): 555 with self.assertRaises(GrammarError): 562 with self.assertRaises(GrammarError): 571 with self.assertRaisesRegex(GrammarError, "cannot start with underscore: '_a'"): 580 with self.assertRaisesRegex(GrammarError, "cannot start with underscore: '_x'"): 589 with self.assertRaisesRegex(GrammarError, "cannot start with underscore: '_x'"):
|
/external/libchrome/third_party/ply/ |
D | yacc.py | 1315 class GrammarError(YaccError): pass class 1371 raise GrammarError("Precedence already specified for terminal '%s'" % term) 1373 raise GrammarError("Associativity must be one of 'left','right', or 'nonassoc'") 1396 …raise GrammarError("%s:%d: Illegal rule name '%s'. Already defined as a token" % (file,line,prodna… 1398 …raise GrammarError("%s:%d: Illegal rule name '%s'. error is a reserved word" % (file,line,prodname… 1400 raise GrammarError("%s:%d: Illegal rule name '%s'" % (file,line,prodname)) 1408 …raise GrammarError("%s:%d: Literal token %s in rule '%s' may only be a single character" % (file,l… 1416 … raise GrammarError("%s:%d: Illegal name '%s' in rule '%s'" % (file,line,s, prodname)) 1421 raise GrammarError("%s:%d: Syntax error. Nothing follows %%prec" % (file,line)) 1423 …raise GrammarError("%s:%d: Syntax error. %%prec can only appear at the end of a grammar rule" % (f… [all …]
|
/external/python/pycparser/pycparser/ply/ |
D | yacc.py | 1470 class GrammarError(YaccError): class 1527 raise GrammarError('Precedence already specified for terminal %r' % term) 1529 raise GrammarError("Associativity must be one of 'left','right', or 'nonassoc'") 1552 …raise GrammarError('%s:%d: Illegal rule name %r. Already defined as a token' % (file, line, prodna… 1554 …raise GrammarError('%s:%d: Illegal rule name %r. error is a reserved word' % (file, line, prodname… 1556 raise GrammarError('%s:%d: Illegal rule name %r' % (file, line, prodname)) 1564 … raise GrammarError('%s:%d: Literal token %s in rule %r may only be a single character' % 1573 raise GrammarError('%s:%d: Illegal name %r in rule %r' % (file, line, s, prodname)) 1578 raise GrammarError('%s:%d: Syntax error. Nothing follows %%prec' % (file, line)) 1580 … raise GrammarError('%s:%d: Syntax error. %%prec can only appear at the end of a grammar rule' % [all …]
|
/external/ply/ply/ply/ |
D | yacc.py | 1472 class GrammarError(YaccError): class 1529 raise GrammarError('Precedence already specified for terminal %r' % term) 1531 raise GrammarError("Associativity must be one of 'left','right', or 'nonassoc'") 1554 …raise GrammarError('%s:%d: Illegal rule name %r. Already defined as a token' % (file, line, prodna… 1556 …raise GrammarError('%s:%d: Illegal rule name %r. error is a reserved word' % (file, line, prodname… 1558 raise GrammarError('%s:%d: Illegal rule name %r' % (file, line, prodname)) 1566 … raise GrammarError('%s:%d: Literal token %s in rule %r may only be a single character' % 1575 raise GrammarError('%s:%d: Illegal name %r in rule %r' % (file, line, s, prodname)) 1580 raise GrammarError('%s:%d: Syntax error. Nothing follows %%prec' % (file, line)) 1582 … raise GrammarError('%s:%d: Syntax error. %%prec can only appear at the end of a grammar rule' % [all …]
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | yacc.py | 1472 class GrammarError(YaccError): class 1529 raise GrammarError('Precedence already specified for terminal %r' % term) 1531 raise GrammarError("Associativity must be one of 'left','right', or 'nonassoc'") 1554 …raise GrammarError('%s:%d: Illegal rule name %r. Already defined as a token' % (file, line, prodna… 1556 …raise GrammarError('%s:%d: Illegal rule name %r. error is a reserved word' % (file, line, prodname… 1558 raise GrammarError('%s:%d: Illegal rule name %r' % (file, line, prodname)) 1566 … raise GrammarError('%s:%d: Literal token %s in rule %r may only be a single character' % 1575 raise GrammarError('%s:%d: Illegal name %r in rule %r' % (file, line, s, prodname)) 1580 raise GrammarError('%s:%d: Syntax error. Nothing follows %%prec' % (file, line)) 1582 … raise GrammarError('%s:%d: Syntax error. %%prec can only appear at the end of a grammar rule' % [all …]
|