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

"end" in syntax cause Multiple declarations of ‘EndTransition’ #3

Open
Matts966 opened this issue Jan 23, 2020 · 0 comments
Open

Comments

@Matts966
Copy link
Contributor

Matts966 commented Jan 23, 2020

Thank you for developing an interesting project , and sorry for this minor edge case issue.

The syntax file below generates ‘EndTransition’ twice, so

  • merging transition
    or
  • forbidding "end" in syntax
    is needed.
syntax helloDSL (start) {
    simpleHello   : start -> "begin"
    helloWithName : start -> "end" name
    nameString    : name  -> "name(String)"
}

I checked the error below using haskell

[1 of 2] Compiling HelloDSL         ( HelloDSL.hs, HelloDSL.o )

HelloDSL.hs:49:1: error:
    Multiple declarations of ‘EndTransition’
    Declared at: HelloDSL.hs:46:1
                 HelloDSL.hs:49:1

HelloDSL.hs:50:3: error:
    Multiple declarations of ‘end’
    Declared at: HelloDSL.hs:47:3
                 HelloDSL.hs:50:3
@Matts966 Matts966 changed the title "end" in syntax cause "end" in syntax cause Multiple declarations of ‘EndTransition’ Jan 23, 2020
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