-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
count_while-bug: fix bug in count_while and couht_while1
On a failed prompt call, the position was not being reset to the position at the start of the count_while or count_while1, rather than taking into account the consumed input. In practice this would be difficult to detect as the end of input was reached, except when checking if the next parser was checking if it was the end of the input! This commit fixes the bug and adds regression tests.
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters