Skip to content

Commit

Permalink
Reuse result of already called function.
Browse files Browse the repository at this point in the history
  • Loading branch information
mingodad authored and Charles Baker committed Jul 16, 2023
1 parent 7f1ea72 commit 4ba3456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lalr/Lexer.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void Lexer<Iterator, Char, Traits, Allocator>::advance()
full_ = position_.ended();
matched_lexeme_.clear();
matched_symbol_ = nullptr;
symbol_ = !position_.ended() ? run() : end_symbol_;
symbol_ = !full_ ? run() : end_symbol_;
}

/**
Expand Down

0 comments on commit 4ba3456

Please sign in to comment.