Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [Xpand] properties with the same name as keywords
[Xpand] properties with the same name as keywords [message #378055] Fri, 25 May 2007 07:56 Go to next message
Andy Carpenter is currently offline Andy Carpenter
Messages: 145
Registered: July 2009
Senior Member
I'm trying out Xpand to generate a textual rendition of a model
and have come across the situation where the meta-model that
I'm using contains a property named default which appears
to be a keyword in the Xpand language. How should properties
whose names clash with language keywords be accessed?

thanks
Andy.

--
-- ------------------------------------------------------------ -------------
Dr Andy Carpenter
School of Computer Science,
University of Manchester, Manchester M13 9PL, UK
Email: Andy.Carpenter@manchester.ac.uk
Tel: +44 161 275 6168
Fax: +44 161 275 6280
Re: [Xpand] properties with the same name as keywords [message #378062 is a reply to message #378055] Tue, 29 May 2007 09:14 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1755
Registered: July 2009
Senior Member
Identifiers conflicting with a keyword must be escaped with '^' (since
4.1.2)
That is something like <<this.^default>> in your case.

Andy Carpenter wrote:
> I'm trying out Xpand to generate a textual rendition of a model
> and have come across the situation where the meta-model that
> I'm using contains a property named default which appears
> to be a keyword in the Xpand language. How should properties
> whose names clash with language keywords be accessed?
>
> thanks
> Andy.
>


--
Have you heard about XtextCON?
Go to: http://www.xtextcon.org
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: [Xpand] properties with the same name as keywords [message #599770 is a reply to message #378055] Tue, 29 May 2007 09:14 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1755
Registered: July 2009
Senior Member
Identifiers conflicting with a keyword must be escaped with '^' (since
4.1.2)
That is something like <<this.^default>> in your case.

Andy Carpenter wrote:
> I'm trying out Xpand to generate a textual rendition of a model
> and have come across the situation where the meta-model that
> I'm using contains a property named default which appears
> to be a keyword in the Xpand language. How should properties
> whose names clash with language keywords be accessed?
>
> thanks
> Andy.
>


--
Have you heard about XtextCON?
Go to: http://www.xtextcon.org
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:[TCS] running samples, compiler, runtime
Next Topic:Dynamic Expand
Goto Forum:
  


Current Time: Fri Apr 25 02:45:44 EDT 2014

Powered by FUDForum. Page generated in 0.20263 seconds