Skip to content

Commit

Permalink
Fix error on grammar.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-rZM authored Jan 2, 2025
1 parent aa8db8b commit 6e6522f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/grammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void grammar::read_from_file() {
if (std::regex_match(input, match, rx_production)) {
std::string s = match[2];
s.erase(std::remove_if(s.begin(), s.end(), ::isspace), s.end());
p_grammar[match[1]].push_back(s);
} else if (std::regex_match(input, match, rx_empty_production)) {
p_grammar[match[1]].push_back(symbol_table::EPSILON_);

Expand Down

0 comments on commit 6e6522f

Please sign in to comment.