|Re: [QVT] not keyword recognized as a keyword [message #839737 is a reply to message #839570]
||Mon, 09 April 2012 05:43
| Ed Willink
Registered: July 2009
This is a problem in almost all languages. Try using 'package' as a
variable name in Java.
AFAIK Java offers no solution other than renaming.
Modeling requires all names to be useable, so there are escaping mechanisms.
In OCL 2.0 and 2.2, and consequently QVT 1.0 and 1.1, a '_' prefix could
In OCL 2.3 this was deprecated since it was ambiguous for already '_'
prefixed names. The preferred escaping is therefore to use an '_'
prefixed string literal, which also allows spaces, backspaces/new-lines
and any other garbage you might like in a name.
Since Eclipse QVTo reuses Eclipse OCL, the enhancement in OCL is present
in QVT as well so you can do model::_'references'::ReferenceType
On 09/04/2012 00:19, sohaib soso wrote:
> hello, I face a problem that may already be familiar to some. When I
> the keywordlike_name is recognized as a Keyword!!! as an exemple, I
> references remains RED is this a qvt incapability of distinction or
Powered by FUDForum
. Page generated in 0.02553 seconds