Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Abstract Syntax Tree (AST)
Abstract Syntax Tree (AST) [message #1257552] Wed, 26 February 2014 10:08 Go to next message
Eclipse UserFriend
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 12:35 Go to previous messageGo to next message
Eclipse UserFriend
They are similar but not equal.
Re: Abstract Syntax Tree (AST) [message #1259585 is a reply to message #1257671] Fri, 28 February 2014 10:10 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 14:01:13 EDT 2025

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

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

Back to the top