Home
last modified time | relevance | path

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

/external/selinux/sepolgen/src/sepolgen/
Dyacc.py622 def add_production(f,file,line,prodname,syms): argument
624 if prodname in Terminals:
625 …stderr.write("%s:%d: Illegal rule name '%s'. Already defined as a token.\n" % (file,line,prodname))
627 if prodname == 'error':
628 …s.stderr.write("%s:%d: Illegal rule name '%s'. error is a reserved word.\n" % (file,line,prodname))
631 if not _is_identifier.match(prodname):
632 sys.stderr.write("%s:%d: Illegal rule name '%s'\n" % (file,line,prodname))
641 …"%s:%d: Literal token %s in rule '%s' may only be a single character\n" % (file,line,s, prodname))
650 sys.stderr.write("%s:%d: Illegal name '%s' in rule '%s'\n" % (file,line,s, prodname))
654 map = "%s -> %s" % (prodname,syms)
[all …]