Home
last modified time | relevance | path

Searched refs:AddNonterminal (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/native/utils/grammar/utils/
Drules.cc140 int Rules::AddNonterminal(const std::string& nonterminal_name) { in AddNonterminal() function in libtextclassifier3::grammar::Rules
189 {annotation_name, AddNonterminal(nonterminal_name)}); in BindAnnotation()
283 const RhsElement token(AddNonterminal(kTokenNonterm), in ResolveFillers()
359 RhsElement(AddNonterminal(rhs_component.ToString()), is_optional)); in Add()
367 Add(AddNonterminal(lhs), rhs_elements, callback, callback_param, in Add()
378 /*callback_param=*/AddNonterminal(excluded_nonterminal), in AddWithExclusion()
409 AddRegex(AddNonterminal(lhs), regex_pattern); in AddRegex()
466 nonterminal_ids[i] = rules.AddNonterminal(nonterminal.name); in Finalize()
Dir.h106 Nonterm AddNonterminal(const std::string& name = "") {
123 return (nonterminal != kUnassignedNonterm) ? nonterminal : AddNonterminal(); in DefineNonterminal()
128 const Nonterm nonterminal = AddNonterminal(name);
Drules.h156 int AddNonterminal(const std::string& nonterminal_name);