|Re: Literals class is not created [message #485122 is a reply to message #485096]
||Thu, 10 September 2009 14:56
| Sebastian Zarnekow
Registered: July 2009
assuming you are talking about the inner class Literals of a generated
I expect your metamodel to be quite large and I can imagine some fancy
optimizations in the genmodel generator that will produce other code
Can you try to generate the model code manually for your metamodel and
confirm, that generation works even if you add another literal value or
If you refer to EnumLiterals .. well I've no idea what might cause this
behaviour. If it would be possible for you to send me your metamodel or
a sample grammar, I'll have a look at it.
Regarding your first question:
There is no limit for the number of grammar elements, that I'm aware of.
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Dana Wong schrieb:
> Hello Xtext Team
> Our grammar is now quite large and I have hit an unusual problem with
> the generation.
> When I generate the grammar, the Literals variable in the MyDslPackage
> is not created.
> This error occurred while adding in another grammar element. For
> instance, adding a new enum type.
> e.g. If I try and add one more grammar element:
> enum ColourEnum:
> red | blue;
> The literals variable is not generated, however removing one enum option:
> enum ColourEnum;
> 1. Is there a limit in the number of grammar elements allowed? 2.
> Would you have any ideas what could be the reason?
> Thank you
> Kind regards,
Powered by FUDForum
. Page generated in 0.03003 seconds