Problems with Scoping [message #689845] |
Tue, 28 June 2011 13:49 |
java Messages: 2 Registered: June 2011 |
Junior Member |
|
|
Hi everybody.
I am trying to find a possibility to access elements over different modules.
My xText grammar looks like this:
Model :
(imports+=Import)*
(modules+=Module)*
;
Import :
'import' importURI=STRING
;
Module:
'module' name=ID
(statements+=Statement)*
'end'
;
[...]
A test example which should run looks like this:
module General
statement GeneralStatement
end
end
module Module01
application myApplication
statement Module01Statement
statement GeneralStatement
end
statement Module01Statement
end
end
By default my project is using AbstractDeclarativeScopeProvider.
This does not work (it says, that Module01Statement can not be found).
I also tried to use DefaultGlobalScopeProvider. That results in all Statements marked as not been found.
Could you give me some hint what to do? Use another ScopeProvider? Write my own? The xText-User-Guide didn't help me in what I was looking for. (Nevertheless it is a very good Guide!)
[Updated on: Wed, 29 June 2011 10:42] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03458 seconds