Home
last modified time | relevance | path

Searched refs:prodname (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/third_party/ply/
Dyacc.py1390 def add_production(self,prodname,syms,func=None,file='',line=0): argument
1392 if prodname in self.Terminals:
1393 …se GrammarError("%s:%d: Illegal rule name '%s'. Already defined as a token" % (file,line,prodname))
1394 if prodname == 'error':
1395 …aise GrammarError("%s:%d: Illegal rule name '%s'. error is a reserved word" % (file,line,prodname))
1396 if not _is_identifier.match(prodname):
1397 raise GrammarError("%s:%d: Illegal rule name '%s'" % (file,line,prodname))
1405 …or("%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))
1434 map = "%s -> %s" % (prodname,syms)
[all …]
/external/ply/ply/ply/
Dyacc.py1551 def add_production(self, prodname, syms, func=None, file='', line=0): argument
1553 if prodname in self.Terminals:
1554 …se GrammarError('%s:%d: Illegal rule name %r. Already defined as a token' % (file, line, prodname))
1555 if prodname == 'error':
1556 …aise GrammarError('%s:%d: Illegal rule name %r. error is a reserved word' % (file, line, prodname))
1557 if not _is_identifier.match(prodname):
1558 raise GrammarError('%s:%d: Illegal rule name %r' % (file, line, prodname))
1567 (file, line, s, prodname))
1575 raise GrammarError('%s:%d: Illegal name %r in rule %r' % (file, line, s, prodname))
1597 map = '%s -> %s' % (prodname, syms)
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Dyacc.py1551 def add_production(self, prodname, syms, func=None, file='', line=0): argument
1553 if prodname in self.Terminals:
1554 …se GrammarError('%s:%d: Illegal rule name %r. Already defined as a token' % (file, line, prodname))
1555 if prodname == 'error':
1556 …aise GrammarError('%s:%d: Illegal rule name %r. error is a reserved word' % (file, line, prodname))
1557 if not _is_identifier.match(prodname):
1558 raise GrammarError('%s:%d: Illegal rule name %r' % (file, line, prodname))
1567 (file, line, s, prodname))
1575 raise GrammarError('%s:%d: Illegal name %r in rule %r' % (file, line, s, prodname))
1597 map = '%s -> %s' % (prodname, syms)
[all …]
/external/python/pycparser/pycparser/ply/
Dyacc.py1549 def add_production(self, prodname, syms, func=None, file='', line=0): argument
1551 if prodname in self.Terminals:
1552 …se GrammarError('%s:%d: Illegal rule name %r. Already defined as a token' % (file, line, prodname))
1553 if prodname == 'error':
1554 …aise GrammarError('%s:%d: Illegal rule name %r. error is a reserved word' % (file, line, prodname))
1555 if not _is_identifier.match(prodname):
1556 raise GrammarError('%s:%d: Illegal rule name %r' % (file, line, prodname))
1565 (file, line, s, prodname))
1573 raise GrammarError('%s:%d: Illegal name %r in rule %r' % (file, line, s, prodname))
1595 map = '%s -> %s' % (prodname, syms)
[all …]