Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Syntactic predicates(Difference between operators for syntactic predicates)
Syntactic predicates [message #1623051] Wed, 18 February 2015 22:47 Go to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi guys,

Currently I have one grammar which is recursive and it is using a lot of syntactic predicates, I am only using the operator => because I read about the operator -> but I am not sure about its behaviour.

Could you help me to understand the main difference between these operators? Also I wanted to ask you if there is a way of avoiding using predicates in my alternatives because I have one rule which was written in this way

Atomic returns Expression:
=>Literal | =>Variable | =>ObjectExpression | =>Array | EnclosedExpression;

It does not look good for sure there is a better way of writing this.

Thanks in advance.

Regards,
Luis
Re: Syntactic predicates [message #1624168 is a reply to message #1623051] Thu, 19 February 2015 16:02 Go to previous messageGo to next message
Luis De Bello is currently offline Luis De BelloFriend
Messages: 95
Registered: January 2015
Member
Hi guys,

Anyone has any idea about this?

Thanks

Best Regards
Re: Syntactic predicates [message #1624174 is a reply to message #1624168] Thu, 19 February 2015 16:05 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
The General usage and the difference between => and -> is decribed in the docs under "Syntactic Predicates"
why you have that lot predicates i cannot see.
in all literal rules i have seen so for non of them is used (dont know your grammar so hard to say)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Adding comments to the node model for the converted model
Next Topic:Adding comments to the node model of converted Xtext model
Goto Forum:
  


Current Time: Wed Sep 25 14:03:38 GMT 2024

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

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

Back to the top