Searched refs:nonterminal_name (Results 1 – 3 of 3) sorted by relevance
29 bool IsPredefinedNonterminal(const std::string& nonterminal_name) { in IsPredefinedNonterminal() argument30 if (nonterminal_name == kStartNonterm || nonterminal_name == kEndNonterm || in IsPredefinedNonterminal()31 nonterminal_name == kTokenNonterm || nonterminal_name == kDigitsNonterm || in IsPredefinedNonterminal()32 nonterminal_name == kWordBreakNonterm) { in IsPredefinedNonterminal()36 if (nonterminal_name == strings::StringPrintf(kNDigitsNonterm, digits)) { in IsPredefinedNonterminal()140 int Rules::AddNonterminal(const std::string& nonterminal_name) { in AddNonterminal() argument141 std::string key = nonterminal_name; in AddNonterminal()162 void Rules::AddAlias(const std::string& nonterminal_name, in AddAlias() argument165 TC3_CHECK_EQ(nonterminal_alias_.insert_or_assign(alias, nonterminal_name) in AddAlias()167 nonterminal_name) in AddAlias()[all …]
156 int AddNonterminal(const std::string& nonterminal_name);165 void BindAnnotation(const std::string& nonterminal_name,170 void AddAlias(const std::string& nonterminal_name, const std::string& alias);
180 const std::string& nonterminal_name) { in FindNontermForName() argument183 if (entry->value()->str() == nonterminal_name) { in FindNontermForName()