Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Standalone command-line compiler
Standalone command-line compiler [message #1725976] Tue, 08 March 2016 18:26 Go to next message
Marina Andric is currently offline Marina AndricFriend
Messages: 7
Registered: March 2016
Junior Member
Dear all,
I have using a book on implementing a DSL with Xtext and Xtend. I ran into a problem when I tried to create a standalone command-line compiler. Steps in the book say I should first add
fragment = generator.GeneratorFragment {
generateJavaMain = true
}
to my mwe2 file, but this simply reports a mistake.
I assume things don't work like this anymore.
Can someone please help?
Thanks a lot,
Marina
Re: Standalone command-line compiler [message #1726013 is a reply to message #1725976] Wed, 09 March 2016 04:38 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14067
Registered: July 2009
Senior Member
hi,

with xtext 2.9 there is a new xtext generator which makes the workflow syntax different

....
language = StandardLanguage {
			....
			generator = {
				generateJavaMain = true
			}
....
		}


....


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Problem: Validator/Generator cannot navigate through AST/Index/ResourceSet from Unit-Tests
Next Topic:Using NeoEMF with Xtext
Goto Forum:
  


Current Time: Mon Sep 27 10:51:14 GMT 2021

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

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

Back to the top