|
|
|
|
|
|
Re: Cannot find meta model when reusing parts of XBase [message #694741 is a reply to message #694728] |
Sat, 09 July 2011 14:15 |
Jeppe Cramon Messages: 37 Registered: July 2009 |
Member |
|
|
Hi Christian
I want to reuse XBase due to many of its features, but I don't want the ability to reference Java and there are some language elements that I don't want supported.
So to get started fast I chose to reference the existing meta models (the ecore parts) and then copy, the parts of the the XBase grammar that I needed, directly to my own grammar (I plan on copying the ecore models as well so they're trimmed down, but I'm trying to take one step at a time, so I can keep up with it, not doing a good job at it so far ). The copying of the Xbase grammar seemed to work really well, except that XText complains that it can't find the meta model (and type) for ValidId, OpAdd, OpAnd, OpCompare, etc.
After this failed attempt, I tried to cut down the grammar even more to make the simplest example possible (based on XBase) and it still kept complaining about ValidId... It might be due to how I've shaved the XBase grammer (like removing all references to Java types) so it's no longer valid?
Did this explain my endeavor better?
Also if there's a better way of obtaining this I'm all ears
/Jeppe
[Updated on: Sat, 09 July 2011 14:17] Report message to a moderator
|
|
|
Re: Cannot find meta model when reusing parts of XBase [message #694746 is a reply to message #694741] |
Sat, 09 July 2011 14:22 |
|
Hi,
Right but i doubt this one step after another will work the way you try it.
Once more: the ValidId Problem is that the xbase ecore says that there is a reference to a types::JvmIdentifiableElement.
and that in the model file therefore a validid will be parsed. so you can't easly change that there is a Reference to a Type ValidId
that is nowhere defined nor parsed somewhere in your grammar/metamodels.
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.03854 seconds