hello list,

I am currently reading Language Implementation Patterns and I'm quite
confused by ASTs in chapter 4 and 5. This is what's happening.

Chapter 4 talked about Parse Trees and ASTs. Parse Trees were constructed by
adding tree-construction statements to parsing rules. But ASTs were
constructed manually.

So when I got to chapter 5 and I wanted to implement a visitor for my tree I
got stuck. I'm sorry I can't use the examples; I had to translate every
example to Python, the language I use.

I don't really know how and most importantly when to construct the AST. The
book does not say it precisely. I'm thinking if it's done during parsing,
isn't it really a Parse Tree?

Thanks

-- 
victor

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to