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: 14067
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
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: Sun Sep 26 20:01:47 GMT 2021

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

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

Back to the top