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

offer the possibility to change the name of the added annotation @aspect to another annotation #117

Open
dvojtise opened this issue Apr 10, 2018 · 0 comments

Comments

@dvojtise
Copy link
Contributor

In Gemoc, a more logical annotation would be @dynamic.
It would be useful to have a mean to indicate in melange the name of the annotation added to the generated ecore using the "with" keyword

something like:

language IoT {
  syntax "/IoT/model/IoT.ecore"
  with fr.inria.diverse.iot2.OpaqueActionAspect addedAnnotation dynamic
  with fr.inria.diverse.iot2.OperationDefAspect addedAnnotation dynamic
}

More generally it would be useful to be able to indicate the annotation also on the syntax keyword.

language IoT {
  syntax "/IoT/model/IoT.ecore"
  syntax "/IoT/model/IoTRuntime.ecore" addedAnnotation dynamic
  with fr.inria.diverse.iot2.OpaqueActionAspect addedAnnotation dynamic
  with fr.inria.diverse.iot2.OperationDefAspect addedAnnotation dynamic
}

in this last example, the content from IoT.ecore is not annotated and the content added by k3 aspects and from IoTRuntime.ecore will have an annotation "dynamic"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant