Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in parse error handling code #1073

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

IlmariReissumies
Copy link
Member

Previous code retried parsing on all the tokens instead of the leftover tokens.

IlmariReissumies and others added 3 commits October 18, 2024 10:35
Previous code retried parsing on all the tokens instead of the
leftover tokens.
This commit has two goals:

- Give better locations for error messages.  The previous PEG would
  not give parse errors at the while or if, for malformed statements
  in the innards of the while or if block. This commit appears to
  rectify that issue.

- Support empty blocks {} for bodies of while, if and functions. These
  get elaborated to Skip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant