Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext with Java as code generator(Looking for a tutorial on Xtext with Java)
Xtext with Java as code generator [message #1848482] Sat, 04 December 2021 12:58 Go to next message
Niloy Ray is currently offline Niloy RayFriend
Messages: 1
Registered: December 2021
Junior Member
Hi,
I am new to Xtext and was looking for a short tutorial on Xtext with Java as language generator. Not sure if this is the right way, but trying to avoid Xtend if possible.

Thanks/
Re: Xtext with Java as code generator [message #1848483 is a reply to message #1848482] Sat, 04 December 2021 14:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14263
Registered: July 2009
Senior Member
hi, changing the workflow to

			generator = {
				generateXtendStub = false
			}


should do the trick

the traverse over resource.getContents and the AST with java means, calculate the output string can call fileSystemAccess.generateFile


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

[Updated on: Sat, 04 December 2021 15:37]

Report message to a moderator

Re: Xtext with Java as code generator [message #1849352 is a reply to message #1848482] Thu, 13 January 2022 13:05 Go to previous message
Abdelgafar  Elkhaoui is currently offline Abdelgafar ElkhaouiFriend
Messages: 5
Registered: January 2022
Junior Member
https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#code-generation.
check this
Previous Topic:Validator context based
Next Topic:XText model to XMI model
Goto Forum:
  


Current Time: Mon May 23 18:29:13 GMT 2022

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

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

Back to the top