[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [xtext-dev] Problems with Scoping
|
Hi,
please ask such questions in the tmf newsgroup. This mailing list is for communication regarding the Xtext development.
You have to have a look at your qualified name provider. You're referring to Module01.Module01Statement from the different namespace Module01.myApplication.
Regards
Jan
Am 28.06.2011 um 15:51 schrieb Michael Wiedau:
> 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 MyGeneralStatement
> end
>
> statement Module01Statement
> end
> end
> ---------------------------------------------
>
>
>
> By default I 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.
>
> The xText-User-Guide didn't help me in what I was looking for. (Nevertheless
> it is a very good Guide!)
> Could you give me some hint what to do? Use another ScopeProvider? Write my
> own?
>
> Hope you can help me.
>
> Best regards,
> Michael
>
> _______________________________________________
> xtext-dev mailing list
> xtext-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/xtext-dev
--
Dr. Jan Köhnlein
Senior Software Architekt
Mobile: +49 (0) 151 / 17396687
Telefon: +49 (0) 431 / 99026870
Fax: +49 (0) 431 / 99026872
http://www.itemis.de
jan.koehnlein@xxxxxxxxx
https://www.xing.com/profile/Jan_Koehnlein
itemis AG
Niederlassung Kiel
Am Germaniahafen 1
24143 Kiel
http://www.itemis.de/
Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus, Dr. Georg Pietrek, Jens Trompeter, Sebastian Neus
Aufsichtsrat: Dr. Burkhard Igel (Vors.), Stephan Grollmann, Michael Neuhaus