Skip to content

Commit 6e6522f

Browse files
authored
Fix error on grammar.cpp
1 parent aa8db8b commit 6e6522f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/grammar.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ void grammar::read_from_file() {
5555
if (std::regex_match(input, match, rx_production)) {
5656
std::string s = match[2];
5757
s.erase(std::remove_if(s.begin(), s.end(), ::isspace), s.end());
58+
p_grammar[match[1]].push_back(s);
5859
} else if (std::regex_match(input, match, rx_empty_production)) {
5960
p_grammar[match[1]].push_back(symbol_table::EPSILON_);
6061

0 commit comments

Comments
 (0)