Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Expression tree
Expression tree [message #1727040] Fri, 18 March 2016 12:24 Go to next message
Som 2015 is currently offline Som 2015Friend
Messages: 16
Registered: March 2015
Junior Member
Hello

I have a grammar to define arithmetic/logical expressions. I need to get the tree-based representation of these expressions, so that I can compute the results of the expressions by known tree traversal algorithms. I was wondering whether there is any easy way to get such a tree inside my program, since Xtext creates AST from such expressions anyhow.

Thanks
Re: Expression tree [message #1727045 is a reply to message #1727040] Fri, 18 March 2016 12:37 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

am not sure if i get your question
maybe a look at http://typefox.io/parsing-expressions-with-xtext helps


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Upgrading from 2.8 to 2.9
Next Topic:creating objects in the EMF
Goto Forum:
  


Current Time: Thu Apr 25 22:38:28 GMT 2024

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

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

Back to the top