melange
melange copied to clipboard
package and syntax declaration problems
If you look at the melange projects here: https://mleduc.xyz/jirafeau/f.php?h=1YFmvtlh&d=1
The melange generation leads to a non compilable java project.
Two fixes proposed by @tdegueul:
- enforcing the declaration of a package name
- forbidding the syntax declaration without a "platform:/resource/" prefix
So in my example the former snippet should replace the later.
import fsm.aspects.*
language FSMExecutable {
syntax "/fsm.model/model/fsm.ecore"
syntax "/fsm.executable.model/model/model.ecore"
with FSMAspect
with StateAspect
with TransitionAspect
}
package myfsm
import fsm.aspects.*
language FSMExecutable {
syntax "platform:/resource/fsm.model/model/fsm.ecore"
syntax "platform:/resource/fsm.executable.model/model/model.ecore"
with FSMAspect
with StateAspect
with TransitionAspect
}