Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » EMap support
EMap support [message #872500] Wed, 16 May 2012 08:33
Aaron Digulla is currently offline Aaron DigullaFriend
Messages: 258
Registered: July 2009
Location: Switzerland
Senior Member
In all grammars that I wrote so far, I needed "get by name", usually in several places. Unfortunately, the Xtext developers refuse to support the more natural EMap feature (https://bugs.eclipse.org/bugs/show_bug.cgi?id=354799)

Ed Merks created the Xcore project which contains the same boiler plate code in its example (http://ed-merks.blogspot.com/2011/08/xcore-coolness-reborn.html):

op Book getBook( String title ) { ... }

Who else is writing silly "for x in list { if x.name == name return x }" loops and wants to get rid of it? Or has to get rid of it because of the runtime cost?
Previous Topic:Xtext generator grammar from Ecore model
Next Topic:generation of an Xtext grammar
Goto Forum:
  


Current Time: Sat Dec 05 00:44:14 GMT 2020

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

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

Back to the top