Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Embedded languages
Embedded languages [message #1573041] Mon, 19 January 2015 13:47
Lutz Wrage is currently offline Lutz WrageFriend
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!
Previous Topic:Getting comments from the node model
Next Topic:Kepler TypeNotFoundException
Goto Forum:
  


Current Time: Fri Apr 19 22:10:55 GMT 2024

Powered by FUDForum. Page generated in 0.02751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top