|
Re: Question about enum rules [message #557614 is a reply to message #557611] |
Wed, 08 September 2010 10:25 |
|
Hi,
without testing it out but why not:
TagOperator:
'tag''('parameters+=TagOperatorParameters(',' parameters+=TagOperatorParameters)*')';
TagOperatorParameters:
reference=[StreamElement] 'is' (element=[OWL::OWLClass]) | element=[OWL::OWLObjectProperty]);
of course OWL::OWLClass and OWL::OWLObjectProperty have to have a common superclass.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Wed, 08 September 2010 10:26] Report message to a moderator
|
|
|
|
|
|
Re: Question about enum rules [message #557708 is a reply to message #557697] |
Wed, 08 September 2010 15:09 |
Meinte Boersma Messages: 434 Registered: July 2009 Location: Leiden, Netherlands |
Senior Member |
|
|
Michael, it seems as if we're using different languages here and it's not English vs. German being the problem!
Judging from your other posts, you're diving head-first into the whole Xtext ecology, trying to achieve a lot of things at the same time apparently without really having read the Xtext User Guide. As a consequence, you're a bit hard to follow since you're not completely conversant in the local Domain-Specific Language, the domain being "Xtext and its ecology". This is especially problematic as we're travelling across "meta-boundaries" all the time which makes it necessary to formulate everything quite precise to be understandable.
Now, that user guide is certainly not for the faint at heart but the core concepts are generally nearer to the beginning than to the end of the thing: custom scoping and local scope are definitely explained in the earlier chapters.
Word of advice: take it (more) slowly and try to read the User Guide, reflecting that which you know, and branching into the unknown. At the very least, it makes it easier for us to help you.
Xtext blogs: executable models...again? | workshop material | custom scoping with Xtend
|
|
|
Powered by
FUDForum. Page generated in 0.03703 seconds