Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Abstract Syntax Tree (AST)
Abstract Syntax Tree (AST) [message #1257552] Wed, 26 February 2014 15:08 Go to next message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Hello everyone,

I've implemented a serialization mechanism for serializing my .dsl-files as XMI.
Now I wanted to know wheter it is right so say, that these kind of representation is
the current AST of my parsed textual grammar? The Xtext-Documentation says in chap. 12.1 : Xtext uses EMF models as the in-memory representation of any parsed text files. This in-memory object graph is called the Abstract Syntax Tree (AST)

So it should be the same. As an example I took a screenshot of my serialized .dsl file (instance of my metamodel) and created a AST by hand (the old-school way Smile ).
Maybe someone may tell me if these both representations are equal or not.

Best regards,

Alex

Re: Abstract Syntax Tree (AST) [message #1257671 is a reply to message #1257552] Wed, 26 February 2014 17:35 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13637
Registered: July 2009
Senior Member
They are similar but not equal.

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
Re: Abstract Syntax Tree (AST) [message #1259585 is a reply to message #1257671] Fri, 28 February 2014 15:10 Go to previous message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Ok thanks!
I've chosen an other representation of the AST. I have just created an object-diagram wich represents my expression.

~Alex
Previous Topic:Adding invalid references in Xtext
Next Topic:Transform to lowercase
Goto Forum:
  


Current Time: Mon Oct 26 13:40:31 GMT 2020

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

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

Back to the top