Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » CanTerminal rules be available as EObjects in the generated model?
CanTerminal rules be available as EObjects in the generated model? [message #1131298] Thu, 10 October 2013 11:47 Go to next message
Latha Shankara is currently offline Latha ShankaraFriend
Messages: 33
Registered: June 2012
Member
Hi,

I have a DSL which extends from org.eclipse.xtext.common.Terminals which has terminal rules from single and multi line comments, also my own DSL has some terminal rules.

The generated model does not contain any of the terminal rules as EObjects in the ecore model unlike the parser rules. Is there a way to get SL_COMMENT, ML_COMMENT also in the generated model? So that corresponding create methods are created in MyDslFactory class, like createSL_COMMENT().

Thanks & Regards,
Latha
Re: CanTerminal rules be available as EObjects in the generated model? [message #1131327 is a reply to message #1131298] Thu, 10 October 2013 12:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
No, the only possibility is to unhide them and assign them to an
attribute

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: CanTerminal rules be available as EObjects in the generated model? [message #1132727 is a reply to message #1131298] Fri, 11 October 2013 10:54 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

If your intention is to access the comments for processing, check out the IEObjectDocumentationProvider.

Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Previous Topic:Assistance requested with very basic project
Next Topic:Constraining custom terminal INT or REAL to a specific range
Goto Forum:
  


Current Time: Fri Mar 29 10:24:21 GMT 2024

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

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

Back to the top