We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa8db8b commit 6e6522fCopy full SHA for 6e6522f
src/grammar.cpp
@@ -55,6 +55,7 @@ void grammar::read_from_file() {
55
if (std::regex_match(input, match, rx_production)) {
56
std::string s = match[2];
57
s.erase(std::remove_if(s.begin(), s.end(), ::isspace), s.end());
58
+ p_grammar[match[1]].push_back(s);
59
} else if (std::regex_match(input, match, rx_empty_production)) {
60
p_grammar[match[1]].push_back(symbol_table::EPSILON_);
61
0 commit comments