Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Standalone command-line compiler
Standalone command-line compiler [message #1725976] Tue, 08 March 2016 13:26 Go to next message
Eclipse UserFriend
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] Tue, 08 March 2016 23:38 Go to previous message
Eclipse UserFriend
hi,

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

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


....
Previous Topic:Problem: Validator/Generator cannot navigate through AST/Index/ResourceSet from Unit-Tests
Next Topic:Using NeoEMF with Xtext
Goto Forum:
  


Current Time: Tue Jul 01 09:13:21 EDT 2025

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

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

Back to the top