Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Can XText compile to bytecode without generating java source
Can XText compile to bytecode without generating java source [message #922412] Mon, 24 September 2012 21:55 Go to next message
John McGuinness is currently offline John McGuinness
Messages: 1
Registered: September 2012
Junior Member
Can XText compile to bytecode without generating java source. I don't understand why I would want to generate the Java source if I was creating my own language.

In short can I compile a file called MyClass.mylang to MyClass.class without creating MyClass.java.
Re: Can XText compile to bytecode without generating java source [message #923015 is a reply to message #922412] Tue, 25 September 2012 10:40 Go to previous message
Aaron Digulla is currently offline Aaron Digulla
Messages: 258
Registered: July 2009
Location: Switzerland
Senior Member
Yes, by writing your own generator.

In fact Xtext doesn't generate any code by default; you always have to write a code generator for this. Xtend (which is a DSL written with the help of the Xtext framework) compiles to Java but most other DSLs don't.
Previous Topic:Language Integration Survey
Next Topic:registered resource factory is needed
Goto Forum:
  


Current Time: Wed Jul 30 07:25:42 EDT 2014

Powered by FUDForum. Page generated in 0.01525 seconds