/third_party/python/Tools/peg_generator/pegen/ |
D | metagrammar.gram | 53 | 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)}
|
D | grammar_parser.py | 176 (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 …]
|
D | grammar.py | 95 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 …]
|
D | python_generator.py | 64 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:
|
D | validator.py | 37 for index, alt in enumerate(node.alts): 38 alts_to_consider = node.alts[index+1:]
|
D | c_generator.py | 197 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:
|
D | first_sets.py | 121 for alt in item.alts:
|
/third_party/python/Lib/lib2to3/ |
D | patcomp.py | 79 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/ |
D | BUILD.gn | 1214 "${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/ |
D | sdist.py | 253 alts = fn 255 for fn in alts: 263 ', '.join(alts))
|
/third_party/node/deps/v8/src/regexp/experimental/ |
D | experimental-compiler.cc | 370 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/ |
D | grammar_grapher.py | 80 return [_ref for alt in item.alts for _ref in references_for_item(alt)]
|
/third_party/python/Lib/test/ |
D | test_patma.py | 2607 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/ |
D | exec.rs | 1563 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/ |
D | x509v3_config.pod | 273 subjectAltName=@alts 274 [alts]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-layout-gsub-table.hh | 597 Iterator alts) in serialize() 600 return_trace (alternates.serialize (c, alts)); in serialize()
|
/third_party/node/deps/v8/src/regexp/ |
D | regexp-compiler.cc | 3813 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/ |
D | translate.rs | 1266 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/ |
D | parse.rs | 654 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/ |
D | en-words.txt | 394 alts
|
/third_party/libexif/po/ |
D | da.po | 636 # dependent - altså A(perture = blænde) betinget/afhængigt og
|