Text not verified for kermeta 2 | |
---|---|
Kermeta textual syntax uses several keywords like
class
,
attribute
,
reference
,
result
, etc. (Please
see
Appendix A, Language keywords
at the end of this
document to get the complete list of Kermeta
keywords.)
This doesn't mean you cannot use these words for your own model. Moreover, this is only a textual syntax limitation.
So Kermeta syntax allows you to use the word you want, you simply have to prefix it with a tilda ~.
This example is valid even if we use "class" and "attribute" which are keywords in the language:
class ~class { attribute ~attribute : kermeta::standard::String attribute ~class : kermeta::standard::String }