[TCS] playing with km3 metamodel and syntax [message #611095] |
Sat, 22 December 2007 17:35 |
Eclipse User |
|
|
|
Originally posted by: awiede01.univ-lr.fr
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
( http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /AM3/dsls/KM3-2007/)
in a new TCS language project.
But then, whenever I write a very simple file like try.km3 below
try.km3:
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),
try.km3.xmi:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3">
<contents name="pack">
<contents xsi:type="Class" name="cl">
<structuralFeatures xsi:type="Attribute" name="att" lower="1"
upper="1"/>
</contents>
</contents>
</Metamodel>
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.
Regards.
Antoine
|
|
|
Powered by
FUDForum. Page generated in 0.02918 seconds