mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
fix #53
This commit is contained in:
parent
c006918329
commit
304029a8d3
4
peglib.h
4
peglib.h
@ -3118,6 +3118,10 @@ public:
|
|||||||
return (*grammar_)[s];
|
return (*grammar_)[s];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Definition& operator[](const char* s) const {
|
||||||
|
return (*grammar_)[s];
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> get_rule_names(){
|
std::vector<std::string> get_rule_names(){
|
||||||
std::vector<std::string> rules;
|
std::vector<std::string> rules;
|
||||||
rules.reserve(grammar_->size());
|
rules.reserve(grammar_->size());
|
||||||
|
Loading…
Reference in New Issue
Block a user