Searched refs:nonterminals_ (Results 1 – 4 of 4) sorted by relevance
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | parser.cc | 58 nonterminals_(rules_->nonterminals()), in Parser() 105 nonterminals_->start_nt() != kUnassignedNonterm) { in SortedSymbolsForInput() 108 nonterminals_->start_nt(), CodepointSpan{0, 0}, in SortedSymbolsForInput() 112 if (nonterminals_->wordbreak_nt() != kUnassignedNonterm) { in SortedSymbolsForInput() 114 nonterminals_->wordbreak_nt(), in SortedSymbolsForInput() 127 if (nonterminals_->wordbreak_nt() != kUnassignedNonterm) { in SortedSymbolsForInput() 129 nonterminals_->wordbreak_nt(), in SortedSymbolsForInput() 137 nonterminals_->end_nt() != kUnassignedNonterm) { in SortedSymbolsForInput() 139 nonterminals_->end_nt(), CodepointSpan{match_offset, match_offset}, in SortedSymbolsForInput() 165 if (auto annotation_nonterminals = nonterminals_->annotation_nt()) { in SortedSymbolsForInput() [all …]
|
D | parser.h | 72 const RulesSet_::Nonterminals* nonterminals_; variable
|
/external/libtextclassifier/native/utils/grammar/utils/ |
D | rules.cc | 150 const int index = nonterminals_.size(); in AddNonterminal() 151 nonterminals_.push_back(NontermInfo{key}); in AddNonterminal() 157 const int index = nonterminals_.size(); in AddNewNonterminal() 158 nonterminals_.push_back(NontermInfo{}); in AddNewNonterminal() 179 annotation_nonterminals_.insert({annotation_name, nonterminals_.size()}); in AddAnnotation() 181 nonterminals_.push_back(NontermInfo{}); in AddAnnotation() 198 return (nonterminals_[element.nonterminal].name == nonterminal); in IsNonterminalOfName() 225 nonterminals_[lhs].rules.push_back(rules_.size()); in ExpandOptionals() 413 nonterminals_[lhs].regex_rules.push_back(regex_rules_.size()); in AddRegex() 446 for (int i = 0; i < nonterminals_.size(); i++) { in Finalize() [all …]
|
D | rules.h | 179 const std::vector<NontermInfo>& nonterminals() const { return nonterminals_; } in nonterminals() 224 std::vector<NontermInfo> nonterminals_; variable
|