Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Terminal rule for any text(Terminal rule for any text)
Terminal rule for any text [message #1733201] Wed, 25 May 2016 11:12
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

Can anybody tell any how to write a terminal rule starts with 'start' followed by any text but once a newline entered that should be end that rule?

terminal NOTE: 'NOTES' -> ('\r'? '\n')+

terminal WS : (' '|'\t'| ('\\'(' '* '\r'? '\n')))+;

NOTES hgajgjhfgjg fgsuakghjkbdfgh ngjdhgasj dgh

I have entered enter after 'dgh' then that should be end of that rule.

I can have continue of text in the next line like

NOTES hgajgjhfgjg fgsuakghjkbdfgh ngjdhgasj \
hegfhajkfhjdfgn fjohgkdslj dgh \
hfjdhjhf

Here in this case 'hfjdhjhf' is ending of the terminal rule.
Previous Topic:Eclipse Che and XText
Next Topic:How to solve multiple inheritance within a DSL
Goto Forum:
  


Current Time: Tue Dec 10 07:25:24 GMT 2019

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

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

Back to the top