Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 11:56 Go to next message
Andy Carpenter is currently offline Andy CarpenterFriend
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 13:14 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
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.
>
Re: [Xpand] properties with the same name as keywords [message #599770 is a reply to message #378055] Tue, 29 May 2007 13:14 Go to previous message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
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.
>
Previous Topic:[TCS] running samples, compiler, runtime
Next Topic:Dynamic Expand
Goto Forum:
  


Current Time: Thu Apr 25 14:36:44 GMT 2024

Powered by FUDForum. Page generated in 0.02818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top