Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Referencing generated code from other DSL files.
Referencing generated code from other DSL files. [message #870479] Tue, 08 May 2012 11:42
Felix Feisst is currently offline Felix FeisstFriend
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
Previous Topic:XText integration with GMF
Next Topic:Copying a whole folder
Goto Forum:
  


Current Time: Thu Jul 09 23:55:55 GMT 2020

Powered by FUDForum. Page generated in 0.01377 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top