vimotest / mps-alfi

Apache License 2.0
1 stars 0 forks source link

Alfi to Java: Enum Stubs are generated #13

Closed Fumapps closed 1 month ago

Fumapps commented 1 month ago

In the hamster demo sample, we can see that the Direction enum of the hamster runtime is generated twice: one from the stub, one from the definition. This results into some errors.

Solution: check for !node.isStub in the mapping:

concept EnumerationDefinition                               --> namedNode : Enum 

inheritors false                                                                  
condition (genContext, node)->boolean { 
  !node.isStub; 
}                       
keep input root default