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

Catch incorrectly terminated productions. #460

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

ltratt
Copy link
Member

@ltratt ltratt commented Jun 6, 2024

Previously, if action code was followed by symbols, those would be added to the rule, which clearly isn't what should happen. So:

R: A {B} C;

would be a rule "R" with symbols [A, C] and action code C. Whatever the user intended to write, this probably wasn't the outcome they expected!

This commit catches this syntax error, removing a footgun.

Previously, if action code was followed by symbols, those would be added
to the rule, which clearly isn't what should happen. So:

```
R: A {B} C;
```

would be a rule "R" with symbols [A, C] and action code C. Whatever the
user intended to write, this probably wasn't the outcome they expected!

This commit catches this syntax error, removing a footgun.
@ltratt ltratt assigned ratmice and vext01 and unassigned ratmice Jun 6, 2024
@vext01
Copy link
Member

vext01 commented Jun 6, 2024

This looks OK to me.

@vext01 vext01 added this pull request to the merge queue Jun 6, 2024
Merged via the queue into softdevteam:master with commit e30e481 Jun 6, 2024
2 checks passed
@ltratt ltratt deleted the check_nonterminated_productions branch June 14, 2024 09:38
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.

3 participants