Skip to content

Commit bf5ab53

Browse files
committed
fix error
1 parent bb10fd2 commit bf5ab53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ll1_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ LL1Parser::PredictionSymbols(const std::string& antecedent,
263263
const std::vector<std::string>& consequent) {
264264
std::unordered_set<std::string> hd{};
265265
First({consequent}, hd);
266-
if (hd.contains(symbol_table::EPSILON_)) {
266+
if (!hd.contains(symbol_table::EPSILON_)) {
267267
return hd;
268268
}
269269
hd.erase(symbol_table::EPSILON_);

0 commit comments

Comments
 (0)