Bug 543777 - keywords cannot be used in the metamodel
Summary: keywords cannot be used in the metamodel
Status: UNCONFIRMED
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: UI (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-24 05:16 EST by Jeremy Buisson CLA
Modified: 2019-12-05 16:25 EST (History)
2 users (show)

See Also:


Attachments
a sample project that triggers the issue (1.81 KB, application/x-zip-compressed)
2019-01-24 05:16 EST, Jeremy Buisson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Buisson CLA 2019-01-24 05:16:54 EST
Created attachment 277265 [details]
a sample project that triggers the issue

How to trigger:
- create an Ecore metamodel that contains, e.g., a metaclass named String
- create an ATL transformation
- create a rule, e.g., a matched rule that attempts to transform a source model element of class String into anything

The ATL compiler reports syntax error "Mismatch input 'String', expecting NAME".

See the attached project archive for a simple example.
Comment 1 Frederic Jouault CLA 2019-01-24 08:49:51 EST
You should be able to escape keywords using double quotes in order to use them as identifiers (see https://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#ATL_Keywords).

Can you please check this and report here if this solves your problem or not?