Referencing generated code from other DSL files. [message #870479] |
Tue, 08 May 2012 11:42 |
Felix Feisst Messages: 20 Registered: February 2012 Location: Germany |
Junior Member |
|
|
Hi,
in my DSL it is possible to define functions within a module:
begin module m:
begin function func1:
...
end
begin function func2:
...
end
end
Such a module is compiled to JVM byte code (where each function becomes a method).
Now I implemented support for linking to other modules, so that a user of my DSL can use a function from one Module in another Module. However, when I generate the byte code I need to compile against the byte code from the referenced module.
Is there a suggested way to compile all available modules in background and hold the generated bytecode? And how can the compiled bytecode be referenced when compiling the current module?
Regards,
Felix
|
|
|
Powered by
FUDForum. Page generated in 0.01874 seconds