Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Need to change the return type of a Terminal
Need to change the return type of a Terminal [message #1385304] Thu, 05 June 2014 13:39 Go to next message
Kunal Khaware is currently offline Kunal KhawareFriend
Messages: 41
Registered: December 2013
Location: Hyderabad,India
Member

Hi
I want to create a terminal which is similar to terminal INT (which exists in Xtext Terminal Grammar),below is my code requirement

terminal INT returns ecore::ELong: ('0'..'9')+;


I need to change the return type of terminal INT from EInt to Elong
if i try to create terminal Long with same rule as INT it is throwing me an error.Can you please help me .



Thanks

Kunal

[Updated on: Thu, 05 June 2014 13:41]

Report message to a moderator

Re: Need to change the return type of a Terminal [message #1385320 is a reply to message #1385304] Thu, 05 June 2014 15:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
What about creating a datatyperule

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Need to change the return type of a Terminal [message #1385991 is a reply to message #1385320] Thu, 12 June 2014 17:19 Go to previous message
Yoel Pinhas is currently offline Yoel PinhasFriend
Messages: 17
Registered: October 2013
Junior Member
following on this: http://www.eclipse.org/forums/index.php/t/437702/
I found this xtextcast: http://xtextcasts.org/episodes/11-custom-terminals

perhaps it would help
Previous Topic:proper way to enrich model
Next Topic:Xtext internal error : error(10)
Goto Forum:
  


Current Time: Fri Apr 19 09:30:52 GMT 2024

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

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

Back to the top