melange icon indicating copy to clipboard operation
melange copied to clipboard

package and syntax declaration problems

Open manuelleduc opened this issue 8 years ago • 0 comments

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:

  1. enforcing the declaration of a package name
  2. 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    
}

manuelleduc avatar Feb 22 '17 09:02 manuelleduc