javadoc for generated artifacts [message #895851] |
Mon, 16 July 2012 06:11  |
Eclipse User |
|
|
|
Hi there,
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.
Olivier
[Updated on: Mon, 16 July 2012 07:39] by Moderator
|
|
|
|
|
|
|
|
Re: javadoc for generated artifacts [message #987366 is a reply to message #987365] |
Mon, 26 November 2012 05:12  |
Eclipse User |
|
|
|
Jan Kohnlein wrote on Mon, 26 November 2012 05:04It should be as simple as
-Copy the ecore file and the genmodel file from the src-gen to the src
folder
-Adapt the mwe2 workflow as described in
http://www.eclipse.org/Xtext/documentation.html#syntax
-Change your EPackage declaration in the grammar from 'generate' to 'import'
Sweet.
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.05293 seconds