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

Make the 'else' part explicit in parse trees #144

Merged
merged 1 commit into from
Aug 31, 2024
Merged

Conversation

afroozeh
Copy link
Contributor

@afroozeh afroozeh commented Aug 19, 2024

Currently, it is rather cumbersome to detect the 'else' part of an 'if-else' construct in the parse tree because the 'else' part is flattened. This PR makes the parse tree more explicit by fields for the if-else-parts. This makes the grammar more robust and in line with other grammars like Java.

@github-actions github-actions bot added the grammar Related to the grammar label Aug 19, 2024
Currently, it is rather cumbersome to detect the 'else' part of an 'if-else' construct in the parse tree because the 'else' part is flattened. This PR makes the parse tree more explicit by fields for the if-else-parts. This makes the grammar more robust and in line with other grammars like Java.
grammar.js Show resolved Hide resolved
@fwcd fwcd merged commit 68211f5 into fwcd:main Aug 31, 2024
2 checks passed
@fwcd
Copy link
Owner

fwcd commented Aug 31, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar Related to the grammar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants