Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [TCS] playing with km3 metamodel and syntax
[TCS] playing with km3 metamodel and syntax [message #611095] Sat, 22 December 2007 17:35
Eclipse UserFriend
Originally posted by:

Using the TCS wizard, I started to build very simple projects. My setup
seems ok since I successfully injected different textual files to models
(with different metamodels). Eventually I tried to import km3 and tcs
files from the KM3 2007 project available from the TCS ZOO
( /AM3/dsls/KM3-2007/)
in a new TCS language project.
But then, whenever I write a very simple file like try.km3 below

package pack{
class cl {
attribute att : Integer;

the parser produce the following error in the "Problems" tab:
Classifier with name = Integer was not found for type of KM3!Attribute

It seems that primitive types aren't recognized?
I can still inject try.km3 to try.km3.xmi and get the corresponding
model (see below),

<?xml version="1.0" encoding="ISO-8859-1"?>
<Metamodel xmi:version="2.0" xmlns:xmi=""
xmlns:xsi="" xmlns="KM3">
<contents name="pack">
<contents xsi:type="Class" name="cl">
<structuralFeatures xsi:type="Attribute" name="att" lower="1"

but the attribute has no type.

I think I don't precisely get the way PrimitiveTypes are handled in TCS,
and help would be appreciated.

Previous Topic:[MOFScript] Problems with creating and editing a MOFSCript File
Next Topic:[TCS] playing with km3 metamodel and syntax
Goto Forum:

Current Time: Sun May 20 12:18:29 GMT 2018

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

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

Back to the top