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

Next AST Attempt #22

Merged
merged 25 commits into from
Dec 2, 2024
Merged

Next AST Attempt #22

merged 25 commits into from
Dec 2, 2024

Conversation

Lokathor
Copy link
Owner

This makes the AST far more general in what it parses, and then we'll save rejection of inputs for later stages of compilation. This allows us to give much better errors than some sort of generic "i can't parse this"


with the old parser, a < 0 would parse and b < 0 wouldn't parse

with the new parser, a < 0 and b < 0 will both parse, and then rejecting using b as a register to test will be a later stage of compilation when we can give a clear answer of what went wrong.

@Lokathor Lokathor merged commit 9ad254a into main Dec 2, 2024
1 check passed
@Lokathor Lokathor deleted the next branch December 2, 2024 06:05
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