[SOLVED] Enable Java generation with a partial compilation [message #1763285] |
Fri, 12 May 2017 11:23 |
|
Dear all.
Let two DSL files, f1.dsl and f2.dsl.
The content of f1.dsl is:
The content of f2.dsl is:
class YYY {
var x : XXX
}
The YYY cannot be generated because the XXX type was not found. This latest type was not found because the Java class is not generated due to the syntax error in f1.dsl.
I would like to enable the generation of YYY class, because its content is a valid code.
In order to do, I'm thinking about a partial generation of the Java file, i.e. I would like to generate the Java file as much as possible.
I know IStubGenerator that I'm using in my batch compiler. But it's only for creating the top types, not the methods. I would like to create this specific compilation process in my Eclipse product.
What is the best way to do that? What are the classes to be used as a starting point for my explorations?
I could assume that I must update my JvmModelInferrer in order to avoid the generation failures. Should I do more?
Thank you by advance.
Cheers.
Stéphane.
[Updated on: Fri, 12 May 2017 12:22] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03655 seconds