This commit is contained in:
yhirose 2018-10-06 17:11:51 -04:00
parent c006918329
commit 304029a8d3

View File

@ -3118,6 +3118,10 @@ public:
return (*grammar_)[s];
}
const Definition& operator[](const char* s) const {
return (*grammar_)[s];
}
std::vector<std::string> get_rule_names(){
std::vector<std::string> rules;
rules.reserve(grammar_->size());