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

Remove (or make optional) semicolons after non-terminals #5

Open
osa1 opened this issue Jul 26, 2022 · 0 comments
Open

Remove (or make optional) semicolons after non-terminals #5

osa1 opened this issue Jul 26, 2022 · 0 comments

Comments

@osa1
Copy link
Owner

osa1 commented Jul 26, 2022

I don't remember why I required a semicolon after a non-terminal (maybe I just wanted the syntax to be compatible with LALRPOP?), but I think it shouldn't be necessary.

We currently have two syntax for non-terminals:

  • With single production:

    <non-terminal name> : <non-terminal type> = <production>,
    
  • With multiple productions:

    <non-terminal name> : <non-terminal type> = {
      <production>,*
    };
    

The semicolon in second syntax can be removed.

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

No branches or pull requests

1 participant