Home
last modified time | relevance | path

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

/third_party/python/Tools/peg_generator/pegen/
Dmetagrammar.gram53 | rulename memoflag? ":" alts NEWLINE INDENT more_alts DEDENT {
54 Rule(rulename[0], rulename[1], Rhs(alts.alts + more_alts.alts), memo=opt) }
57 | rulename memoflag? ":" alts NEWLINE { Rule(rulename[0], rulename[1], alts, memo=opt) }
68 alts[Rhs]:
69 | alt "|" alts { Rhs([alt] + alts.alts)}
73 | "|" alts NEWLINE more_alts { Rhs(alts.alts + more_alts.alts) }
74 | "|" alts NEWLINE { Rhs(alts.alts) }
103 | '[' ~ alts ']' {Opt(alts)}
111 | '(' ~ alts ')' {Group(alts)}
Dgrammar_parser.py176 (alts := self.alts())
186 …return Rule ( rulename [ 0 ] , rulename [ 1 ] , Rhs ( alts . alts + more_alts . alts ) , memo = op…
216 (alts := self.alts())
220 return Rule ( rulename [ 0 ] , rulename [ 1 ] , alts , memo = opt )
284 def alts(self) -> Optional[Rhs]: member in GeneratedParser
293 (alts := self.alts())
295 return Rhs ( [ alt ] + alts . alts )
315 (alts := self.alts())
321 return Rhs ( alts . alts + more_alts . alts )
328 (alts := self.alts())
[all …]
Dgrammar.py95 lines += [f" | {alt}" for alt in self.rhs.alts]
120 and len(rhs.alts) == 1
121 and len(rhs.alts[0].items) == 1
122 and isinstance(rhs.alts[0].items[0].item, Group)
124 rhs = rhs.alts[0].items[0].item.rhs
188 def __init__(self, alts: List[Alt]):
189 self.alts = alts
193 return " | ".join(str(alt) for alt in self.alts)
199 yield self.alts
202 for alt in self.alts:
[all …]
Dpython_generator.py64 if len(node.alts) == 1 and len(node.alts[0].items) == 1:
65 self.cache[node] = self.visit(node.alts[0].items[0])
200 assert len(node.alts) == 1
201 for alt in node.alts:
Dvalidator.py37 for index, alt in enumerate(node.alts):
38 alts_to_consider = node.alts[index+1:]
Dc_generator.py197 if len(node.alts) != 1 or len(node.alts[0].items) != 1:
200 if getattr(node.alts[0], "action", None) is not None:
207 self.cache[node] = self.generate_call(node.alts[0].items[0])
577 if any(alt.action and "EXTRA" in alt.action for alt in rhs.alts):
610 if any(alt.action and "EXTRA" in alt.action for alt in rhs.alts):
668 assert len(node.alts) == 1
669 for alt in node.alts:
Dfirst_sets.py121 for alt in item.alts:
/third_party/python/Lib/lib2to3/
Dpatcomp.py79 alts = [self.compile_node(ch) for ch in node.children[::2]]
80 if len(alts) == 1:
81 return alts[0]
82 p = pytree.WildcardPattern([[a] for a in alts], min=1, max=1)
/third_party/grpc/
DBUILD.gn1214 "${GRPC_DIR}/src/core/lib/security/credentials/alts/alts_credentials.cc",
1215 "${GRPC_DIR}/src/core/lib/security/credentials/alts/alts_credentials.h",
1216 "${GRPC_DIR}/src/core/lib/security/credentials/alts/check_gcp_environment.cc",
1217 "${GRPC_DIR}/src/core/lib/security/credentials/alts/check_gcp_environment.h",
1218 "${GRPC_DIR}/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc",
1219 "${GRPC_DIR}/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc",
1220 "${GRPC_DIR}/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc",
1221 "${GRPC_DIR}/src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc",
1222 "${GRPC_DIR}/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc",
1223 "${GRPC_DIR}/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h",
[all …]
/third_party/python/Lib/distutils/command/
Dsdist.py253 alts = fn
255 for fn in alts:
263 ', '.join(alts))
/third_party/node/deps/v8/src/regexp/experimental/
Dexperimental-compiler.cc370 ZoneList<RegExpTree*>& alts = *node->alternatives(); in VisitDisjunction() local
371 CompileDisjunction(alts.length(), in VisitDisjunction()
372 [&](int i) { alts[i]->Accept(this, nullptr); }); in VisitDisjunction()
/third_party/python/Tools/peg_generator/scripts/
Dgrammar_grapher.py80 return [_ref for alt in item.alts for _ref in references_for_item(alt)]
/third_party/python/Lib/test/
Dtest_patma.py2607 alts = [
2614 self.assertEqual(f(range(10)), alts[0])
2615 self.assertEqual(f(range(1, 11)), alts[1])
2616 self.assertEqual(f(range(0, -10, -1)), alts[2])
2617 self.assertEqual(f(range(-1, -11, -1)), alts[3])
2618 self.assertEqual(f(range(10, 20)), alts[4])
2631 alts = [
2638 self.assertEqual(f((False, range(10), True)), alts[0])
2639 self.assertEqual(f((False, range(1, 11), True)), alts[1])
2640 self.assertEqual(f((False, range(0, -10, -1), True)), alts[2])
[all …]
/third_party/rust/crates/regex/src/
Dexec.rs1563 let alts = match *expr.kind() { in alternation_literals() localVariable
1564 HirKind::Alternation(ref alts) => alts, in alternation_literals()
1579 for alt in alts { in alternation_literals()
/third_party/openssl/doc/man5/
Dx509v3_config.pod273 subjectAltName=@alts
274 [alts]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-layout-gsub-table.hh597 Iterator alts) in serialize()
600 return_trace (alternates.serialize (c, alts)); in serialize()
/third_party/node/deps/v8/src/regexp/
Dregexp-compiler.cc3813 ZoneList<GuardedAlternative>* alts = alternatives(); in FillInBMInfo() local
3814 budget = (budget - 1) / alts->length(); in FillInBMInfo()
3815 for (int i = 0; i < alts->length(); i++) { in FillInBMInfo()
3816 GuardedAlternative& alt = alts->at(i); in FillInBMInfo()
/third_party/rust/crates/regex/regex-syntax/src/hir/
Dtranslate.rs1266 fn hir_alt(alts: Vec<Hir>) -> Hir { in hir_alt()
1267 Hir::alternation(alts) in hir_alt()
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dparse.rs654 if let Some(&mut Alternation(ref mut alts)) = stack.last_mut() { in push_or_add_alternation()
655 alts.asts.push(concat.into_ast()); in push_or_add_alternation()
/third_party/skia/third_party/externals/harfbuzz/perf/texts/
Den-words.txt394 alts
/third_party/libexif/po/
Dda.po636 # dependent - altså A(perture = blænde) betinget/afhængigt og