Skip to main content



      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 07:47 Go to next message
Eclipse UserFriend
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 08:23 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: CanTerminal rules be available as EObjects in the generated model? [message #1132727 is a reply to message #1131298] Fri, 11 October 2013 06:54 Go to previous message
Eclipse UserFriend
If your intention is to access the comments for processing, check out the IEObjectDocumentationProvider.
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 Jul 04 22:59:12 EDT 2025

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

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

Back to the top