Skip to content

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

@Matts966

Description

@Matts966

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions