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] Tue, 25 September 2012 01:55 Go to next message
John McGuinness is currently offline John McGuinnessFriend
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 14:40 Go to previous message
Aaron Digulla is currently offline Aaron DigullaFriend
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: Mon Nov 24 00:32:49 GMT 2014

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

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