Searched refs:AddNonterminal (Results 1 – 3 of 3) sorted by relevance
140 int Rules::AddNonterminal(const std::string& nonterminal_name) { in AddNonterminal() function in libtextclassifier3::grammar::Rules189 {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()
106 Nonterm AddNonterminal(const std::string& name = "") {123 return (nonterminal != kUnassignedNonterm) ? nonterminal : AddNonterminal(); in DefineNonterminal()128 const Nonterm nonterminal = AddNonterminal(name);
156 int AddNonterminal(const std::string& nonterminal_name);