Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext apply terminal rule only on selected parser rule(xtext apply terminal rule only on selected parser rule)
xtext apply terminal rule only on selected parser rule [message #1739624] Wed, 03 August 2016 11:18 Go to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

Is there any way to avoid applying terminal rule on all the parser rules and apply on only selected parser rule?
Re: xtext apply terminal rule only on selected parser rule [message #1739625 is a reply to message #1739624] Wed, 03 August 2016 11:25 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
the only way is to replace the default lexer with a custom / handwritten one.

xtext custom or stateful lexer may be some search terms to google for


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Getting all dsl objects from a specific file from current workspace
Next Topic:XML model to DSL syntax transformation
Goto Forum:
  


Current Time: Tue Apr 23 12:40:31 GMT 2024

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

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

Back to the top