|
|
|
|
|
Re: xtext syntax question [message #713992 is a reply to message #713891] |
Tue, 09 August 2011 13:36 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Sven,
to begin with, you should either
a) allow only one element in your model rule between the brackets
or
b) make an element consist only of one MixedContent.
Both approaches will lead to a model that contains any number of
MixedContent instances but with a reduced complexity in the structure of
the model.
Does that make sense?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
On 09.08.11 12:07, Sven Krause wrote:
> Am 09.08.2011 09:05, schrieb Sebastian Zarnekow:
>> Hi Sven,
>>
>> I'm surprised. Your solution should suffer from the same problems as
>> your first approach, e.g. rule Element may match the empty input and the
>> parser cannot decide, how often it should descend into Element coming
>> from rule Model.
>>
>> No, there is no difference between 'keyword' and "keyword".
>>
>> Regards,
>> Sebastian
>
> Ok Sebastian,
>
> but what is the proposed syntax model for such a construct >"text"
> something "text"< ?
>
> Sven
|
|
|
Powered by
FUDForum. Page generated in 0.04692 seconds