Home
last modified time | relevance | path

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

/external/libchrome/build/
Dwrite_buildflag_header.py23 def __init__(self, output, rulename, header_guard, flags): argument
25 self.rulename = rulename
73 rulename=cmdline_options.rulename,
81 if options.rulename:
82 output_file.write('// From "' + options.rulename + '"\n')
/external/python/cpython3/Tools/peg_generator/pegen/
Dmetagrammar.gram52 | rulename memoflag? ":" alts NEWLINE INDENT more_alts DEDENT {
53 Rule(rulename[0], rulename[1], Rhs(alts.alts + more_alts.alts), memo=opt) }
54 | rulename memoflag? ":" NEWLINE INDENT more_alts DEDENT {
55 Rule(rulename[0], rulename[1], more_alts, memo=opt) }
56 | rulename memoflag? ":" alts NEWLINE { Rule(rulename[0], rulename[1], alts, memo=opt) }
58 rulename[RuleName]:
Dgrammar_parser.py172 (rulename := self.rulename())
188 …return Rule ( rulename [ 0 ] , rulename [ 1 ] , Rhs ( alts . alts + more_alts . alts ) , memo = op…
193 (rulename := self.rulename())
207 return Rule ( rulename [ 0 ] , rulename [ 1 ] , more_alts , memo = opt )
212 (rulename := self.rulename())
222 return Rule ( rulename [ 0 ] , rulename [ 1 ] , alts , memo = opt )
228 def rulename(self) -> Optional[RuleName]: member in GeneratedParser
Dc_generator.py390 for i, (rulename, rule) in enumerate(self.todo.items(), 1000):
394 for rulename, rule in self.todo.items():
404 for rulename, rule in list(self.todo.items()):
405 del self.todo[rulename]
533 rhs, is_loop=False, is_gather=node.is_gather(), rulename=node.name,
566 rhs, is_loop=True, is_gather=node.is_gather(), rulename=node.name,
618 self, node: Rhs, is_loop: bool, is_gather: bool, rulename: Optional[str]
623 self.visit(alt, is_loop=is_loop, is_gather=is_gather, rulename=rulename)
679 def handle_alt_normal(self, node: Alt, is_gather: bool, rulename: Optional[str]) -> None:
702 def handle_alt_loop(self, node: Alt, is_gather: bool, rulename: Optional[str]) -> None:
[all …]
Dparser_generator.py106 for rulename in todo:
107 self.todo[rulename].collect_todo(self)
204 for rulename, rhs in rules.items():
205 graph[rulename] = names = rhs.initial_names()
Dpython_generator.py151 for rulename, rule in list(self.todo.items()):
152 del self.todo[rulename]
/external/ply/ply/example/yply/
Dyparse.py137 rulename = rule[0]
141 print("def p_%s_%d(p):" % (rulename, rulecount))
152 embed_name = "_embed%d_%s" % (embed_count, rulename)
158 print(" '''%s : %s'''" % (rulename, " ".join(prod)))
/external/python/pycparser/pycparser/
Dplyparser.py35 def _create_opt_rule(self, rulename): argument
40 optname = rulename + '_opt'
45 optrule.__doc__ = '%s : empty\n| %s' % (optname, rulename)
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DRewriteRuleElementStream.as66 * rule reference that this list tracks. Can include rulename too, but
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DActionTranslator.g648 * Isolated $rulename is not allowed unless it has a dynamic scope *and*
649 * there is no reference to rulename in the enclosing alternative,