Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Create "generator code"
Create "generator code" [message #1061151] Thu, 30 May 2013 05:04 Go to next message
Antonio M. Moreno is currently offline Antonio M. Moreno
Messages: 12
Registered: November 2012
Junior Member
Hi all,

Maybe this question has been answered in any post, but in these case I can't find it. In all tutorials that I follow, when they explain the section about "Generate code", they assume that in the New Project wizard I check something like "generator..." but I can't found it, and neither I can't found any like these when the projects are created.

I have installed Xpand also. But the problem has not been solved.

My Xtext version is 2.3.1. I suppose the tutorials are maybe outdate, I don't know.

Thank you in advance,
Antonio
Re: Create "generator code" [message #1061163 is a reply to message #1061151] Thu, 30 May 2013 06:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5843
Registered: July 2009
Senior Member
Hi Since some more whiles ago the Generator is located in the Same Project as the grammar by default
Re: Create "generator code" [message #1061170 is a reply to message #1061163] Thu, 30 May 2013 07:23 Go to previous messageGo to next message
Antonio M. Moreno is currently offline Antonio M. Moreno
Messages: 12
Registered: November 2012
Junior Member
Christian Dietrich wrote on Thu, 30 May 2013 06:24
Hi Since some more whiles ago the Generator is located in the Same Project as the grammar by default


Thank you so much, but I can't find it in the generated projects.

I attach a screencast to show you my project. It has not the *.generator package like, for example, "fowlerdsl example". I have this problem since two days ago.
index.php/fa/15094/0/

Thank you in advance,
Antonio
  • Attachment: Captura.PNG
    (Size: 19.65KB, Downloaded 85 times)
Re: Create "generator code" [message #1061172 is a reply to message #1061170] Thu, 30 May 2013 07:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 5843
Registered: July 2009
Senior Member
Hi how does you workflow Look like? Did you deactvate builderintegration and generatorfragment
Re: Create "generator code" [message #1061204 is a reply to message #1061172] Thu, 30 May 2013 09:59 Go to previous message
Antonio M. Moreno is currently offline Antonio M. Moreno
Messages: 12
Registered: November 2012
Junior Member
Thanks!! Looking the differences between FowlerDSL example and my MWE's code I found that the next fragment was not. I added it and now I have the package *.generator.
fragment = generator.GeneratorFragment {
                generateMwe = true
                generateJavaMain = true
            }


Thank you!
Antonio
Previous Topic:JvmModelInferrer: multiple input files
Next Topic:Dynamic Template Variable Resolvers
Goto Forum:
  


Current Time: Wed Apr 16 15:56:18 EDT 2014

Powered by FUDForum. Page generated in 0.02058 seconds