Searched refs:nonterminals (Results 1 – 15 of 15) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | ir.cc | 402 output->nonterminals.reset(new RulesSet_::NonterminalsT); in Serialize() 403 output->nonterminals->start_nt = GetNonterminalForName(kStartNonterm); in Serialize() 404 output->nonterminals->end_nt = GetNonterminalForName(kEndNonterm); in Serialize() 405 output->nonterminals->wordbreak_nt = GetNonterminalForName(kWordBreakNonterm); in Serialize() 406 output->nonterminals->token_nt = GetNonterminalForName(kTokenNonterm); in Serialize() 407 output->nonterminals->uppercase_token_nt = in Serialize() 409 output->nonterminals->digits_nt = GetNonterminalForName(kDigitsNonterm); in Serialize() 413 output->nonterminals->n_digits_nt.resize(i, kUnassignedNonterm); in Serialize() 414 output->nonterminals->n_digits_nt[i - 1] = n_digits_nt; in Serialize() 418 output->nonterminals->annotation_nt.emplace_back( in Serialize() [all …]
|
D | rules.cc | 57 const std::unordered_map<int, Nonterm>& nonterminals) { in IsRhsAssigned() argument 63 if (GetAssignedIdForNonterminal(element.nonterminal, nonterminals) == in IsRhsAssigned() 71 if (GetAssignedIdForNonterminal(rule.callback_param, nonterminals) == in IsRhsAssigned() 82 std::unordered_map<int, Nonterm>* nonterminals, Ir* ir) { in LowerRule() argument 88 callback_param = GetAssignedIdForNonterminal(callback_param, *nonterminals); in LowerRule() 94 (*nonterminals)[lhs_index] = in LowerRule() 95 ir->Add(Ir::Lhs{GetAssignedIdForNonterminal(lhs_index, *nonterminals), in LowerRule() 111 GetAssignedIdForNonterminal(element.nonterminal, *nonterminals); in LowerRule() 116 (*nonterminals)[lhs_index] = in LowerRule() 117 ir->Add(Ir::Lhs{GetAssignedIdForNonterminal(lhs_index, *nonterminals), in LowerRule()
|
D | rules_test.cc | 231 EXPECT_THAT(frozen_rules.nonterminals->annotation_nt, SizeIs(3)); in TEST() 232 EXPECT_EQ(frozen_rules.nonterminals->annotation_nt[0]->key, "phone"); in TEST() 233 EXPECT_EQ(frozen_rules.nonterminals->annotation_nt[1]->key, in TEST() 235 EXPECT_EQ(frozen_rules.nonterminals->annotation_nt[2]->key, "url"); in TEST()
|
D | rules.h | 179 const std::vector<NontermInfo>& nonterminals() const { return nonterminals_; } in nonterminals() function
|
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | matcher_test.cc | 321 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F() 333 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F() 365 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F() 377 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F() 387 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F() 419 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F() 433 rules_set->nonterminals()->n_digits_nt()->Get(4 - 1), in TEST_F()
|
D | matcher.cc | 194 const TwoNonterms nonterminals) { in FindBinaryRulesMatches() argument 201 BinaryRuleHasher()(nonterminals) % rules->binary_rules()->size(); in FindBinaryRulesMatches() 212 if (rule->rhs_first() == nonterminals.first && in FindBinaryRulesMatches() 213 rule->rhs_second() == nonterminals.second) { in FindBinaryRulesMatches()
|
D | parser.cc | 58 nonterminals_(rules_->nonterminals()), in Parser()
|
/external/libtextclassifier/native/utils/grammar/ |
D | rules.fbs | 48 // The key is a pair of nonterminals and the value the index of the lhs set. 51 // The two rhs nonterminals. 87 // A set of lhs nonterminals associated with a rule match. 146 // Predefined nonterminals for annotations. 195 nonterminals:RulesSet_.Nonterminals;
|
/external/libtextclassifier/native/actions/ |
D | grammar-actions_test.cc | 609 action_grammar_rules.rules->nonterminals->annotation_nt.emplace_back( in TEST_F() 611 action_grammar_rules.rules->nonterminals->annotation_nt.back()->key = "phone"; in TEST_F() 612 action_grammar_rules.rules->nonterminals->annotation_nt.back()->value = in TEST_F()
|
D | actions-suggestions.cc | 333 ->nonterminals() in ValidateAndInitialize() 1085 ->nonterminals() in AnnotateConversation()
|
/external/toybox/kconfig/ |
D | zconf.tab.c_shipped | 379 /* YYNNTS -- Number of nonterminals. */ 505 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
|
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/ |
D | BaseRecognizer.as | 458 * V is the set of terminals and nonterminals. In other words,
|
/external/antlr/runtime/ObjC/Framework/ |
D | BaseRecognizer.m | 624 * V is the set of terminals and nonterminals. In other words,
|
/external/ply/ply/ |
D | CHANGES | 1320 Improvements to parser.out file. Terminals and nonterminals
|
/external/jline/src/src/test/resources/jline/example/ |
D | english.gz |
|