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

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 \

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 Sep 22 18:05:38 GMT 2020

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

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

Back to the top