|
|
|
Re: Literals class is not created [message #485122 is a reply to message #485096] |
Thu, 10 September 2009 14:56 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Dana,
assuming you are talking about the inner class Literals of a generated
EPackage:
I expect your metamodel to be quite large and I can imagine some fancy
optimizations in the genmodel generator that will produce other code
than usual.
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
something similar?
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.
Regards,
Sebastian
--
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;
> red;
>
> works.
>
> 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,
> Dana
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.11534 seconds