You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.tetrabox.minijava.xtext: a grammar-first xtext project, which generates the abstract syntax
org.tetrabox.minijava.semantics.modelstate: an additional metamodel that defines the execution state of a minijava program
org.tetrabox.minijava.semantics: semantics written only with K3 aspects (no new classes, no static classes)
org.tetrabox.minijava.dsl: the melange project, with the following melange file:
package org.tetrabox.minijava
external language MiniJava {
syntax "platform:/resource/org.tetrabox.minijava.xtext/model/generated/MiniJava.ecore"
}
language XMiniJava inherits MiniJava {
syntax "platform:/resource/org.tetrabox.minijava.semantics.modelstate/model/MiniJavaDynamicData.ecore" renaming {
"minijavadynamicdata" to "miniJava"
}
with org.tetrabox.minijava.semantics.*
}
When starting "Generate All" on the melange file, no error message appears, but several problems occur:
sometimes, the code generated from the metamodel of the generated language runtime has errors
sometimes, the metamodel of the generated language runtime has errors
always: most of the code that should be generated in org.tetrabox.minijava.dsl/src-gen is missing, eg. adapters, the classes that represent the languages and the model types, etc.
In the end, some projects have errors, and the melange file always have the warning "Cannot find EMF runtime for XMiniJava".
If anyone has any idea of what I am doing wrong, or of what Melange is doing wrong, or of any workaround that I could use, I would be extremely interested :(
The text was updated successfully, but these errors were encountered:
OK, I confirm that is now works well with master, for some reason. Thanks all!
However, I still have several errors when I remove the renaming in the melange file, due to the Eclass Symbol being generated twice for some reason (one per EPackage).
Originally it only exists in the miniJava epackage, in the abstract syntax:
But after running Generate All, it can be found in both resulting epackages:
If you want I can create a separate issue for this problem, but it's up to you.
I feel bad for opening an issue for a very unprecise and not well identified problem, but here I go...
I am working on a MiniJava language, available here: https://github.com/tetrabox/minijava
Most importantly, it contains:
org.tetrabox.minijava.xtext
: a grammar-first xtext project, which generates the abstract syntaxorg.tetrabox.minijava.semantics.modelstate
: an additional metamodel that defines the execution state of a minijava programorg.tetrabox.minijava.semantics
: semantics written only with K3 aspects (no new classes, no static classes)org.tetrabox.minijava.dsl
: the melange project, with the following melange file:When starting "Generate All" on the melange file, no error message appears, but several problems occur:
org.tetrabox.minijava.dsl/src-gen
is missing, eg. adapters, the classes that represent the languages and the model types, etc.In the end, some projects have errors, and the melange file always have the warning "Cannot find EMF runtime for XMiniJava".
If anyone has any idea of what I am doing wrong, or of what Melange is doing wrong, or of any workaround that I could use, I would be extremely interested :(
The text was updated successfully, but these errors were encountered: