CrossReference Side-effect [message #872982] |
Thu, 17 May 2012 08:32 |
Dmitriy Shishkin Messages: 20 Registered: May 2012 |
Junior Member |
|
|
Hi,
Here is part of my grammar:
Definition:
'(' 'def'
name = ID ')';
Command:
'(' 'command'
name = ID
type = [Definition | ID] ')';
And main trouble is that command must have side-effect: if there is'n reference for type, commant must create this one, and next commands must referens to this.
something like that:
Command:
'(' 'command'
name = ID
(
(type = [Definition | ID]) |
(id = ID)
)
')';
But it does'n work
I will add that I can't use any additional keywords - I trying to define an already existing grammar
Is there any way to do that side-effect on Xtext?
Any advice is greatly appreciated.
Dmitriy.
[Updated on: Thu, 17 May 2012 08:32] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02998 seconds