|javadoc for generated artifacts [message #895851]
||Mon, 16 July 2012 06:11
| Olivier Petri
Registered: July 2012
Xtext generated grammar elements start with javadoc like this:
* <!-- begin-user-doc -->
* ...there really should be more of a description here...
* <!-- end-user-doc -->
Is there a way to actually set the "user-doc"?
I've been trying to add comments to the grammar file in serval ways, searched the xtext and antlr documentation, and, of course, asked google. But no success so far.
Any hint is appreciated.
[Updated on: Mon, 16 July 2012 07:39]
Report message to a moderator
|Re: javadoc for generated artifacts [message #987366 is a reply to message #987365]
||Mon, 26 November 2012 05:12
| Barrie Treloar
Registered: July 2009
Jan Kohnlein wrote on Mon, 26 November 2012 05:04|
It should be as simple as
-Copy the ecore file and the genmodel file from the src-gen to the src
-Adapt the mwe2 workflow as described in
-Change your EPackage declaration in the grammar from 'generate' to 'import'
I'll be giving that a go once I finish the grammar.
I'm super happy with how easy it has been so far, obviously there are learning curve issues and having a knowledge of ANTLRs internals made my life a bit easier.
I've read the docs through once, but its not until you try to do something that you appreciate having enough detail to get the job done.
Unit testing is making incremental development of grammar quick and safe.
Including getting cross references working!
Powered by FUDForum
. Page generated in 0.06482 seconds