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

Grammar with overlapping concrete syntax but different constructors give an error in the parse table generator #47

Open
Gohla opened this issue Sep 14, 2021 · 0 comments
Labels
C-Bug Category: bug. Not working as expected

Comments

@Gohla
Copy link
Member

Gohla commented Sep 14, 2021

Summary

Grammar with overlapping concrete syntax but different constructors give an error in the parse table generator

What you did

Create grammar with overlapping concrete syntax but different constructors, for example due to a copy-paste mistake:

Exp.And = <<Exp> and <Exp>> {left}
Exp.Or = <<Or> and <Expr>> {left}

What you expected to happen

This to work (but be ambiguous at parse time), or give an error in the SDF3 file.

What actually happened

There was an error in the parse table generator.

Context

  • Spoofax version: 0.11.9
  • Operating system & version: Any

Additional information

This was reported from the lab, but it should be reproduced more thoroughly.

@Gohla Gohla added C-Bug Category: bug. Not working as expected P-High Priority: high. Should take priority over low and non-prioritized labels Sep 14, 2021
@Gohla Gohla removed the P-High Priority: high. Should take priority over low and non-prioritized label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Bug Category: bug. Not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant