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

Support start symbol directive in SPT #48

Open
molenzwiebel opened this issue Sep 14, 2021 · 0 comments
Open

Support start symbol directive in SPT #48

molenzwiebel opened this issue Sep 14, 2021 · 0 comments
Labels
C-Enhancement Category: enhancement. Improvement

Comments

@molenzwiebel
Copy link
Contributor

Summary

The start symbol directive in SPT is ignored, with the SPT tests opting to use the default start symbol instead.

What you did

language foo

start symbol Exp

test parse to num [[ 1 ]] parse to Int("1")

What you expected to happen

Test succeeds.

What actually happened

Test fails, since it is parsed from the start symbol (i.e. something like Program(Exprs([Int("1")]))).

Context

  • Spoofax version: 0.11.9
  • Operating system & version: all
@molenzwiebel molenzwiebel added the C-Bug Category: bug. Not working as expected label Sep 14, 2021
@Gohla Gohla changed the title Start symbol directive does not work in SPT Support start symbol directive in SPT Sep 14, 2021
@Gohla Gohla added C-Enhancement Category: enhancement. Improvement and removed C-Bug Category: bug. Not working as expected labels Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Enhancement Category: enhancement. Improvement
Projects
None yet
Development

No branches or pull requests

2 participants