|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
Registered: July 2009
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
[Updated on: Sat, 09 July 2011 14:17]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02636 seconds