Embedded languages [message #1573041] |
Mon, 19 January 2015 13:47 |
Lutz Wrage Messages: 181 Registered: July 2009 |
Senior Member |
|
|
I am implementing editor support for AADL (http://www.aadl.info). AADL allows additional languages (called annex languages) to be embedded into the core AADL language. The annex language text is contained in a special syntactic construct in core AADL.
annex <annexname> {**
<annex language text>
**};
Annex languages are not nested and cannot reference elements from other annex languages, but they can reference elements of the core language. Currently I am trying to figure out how content assist inside an annex could be implemented.
A while ago there was a thread on this topic (https://www.eclipse.org/forums/index.php?t=msg&th=367936&goto=897294&#msg_897294) where the code template editor was mentioned as an example to look at.
I hava a couple of questions:
- Is it still true that there is no built-in Xtext support for embedded languages?
- Is this still the best example to look at, or is there a simpler one available?
- For understanding the code template implementation: Why are there two languages defined (Codetemplates and SingleCodetemplate)?
Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.02751 seconds