tag:blogger.com,1999:blog-3822535.post8086665150005706149..comments2023-07-06T01:45:08.751-07:00Comments on Ashwin Jayaprakash's Blog: Diesel - DSL experiments on the JVM (Part 1)Ashwin Jayaprakashhttp://www.blogger.com/profile/14487665820971997426noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-3822535.post-32614617456793668452013-06-19T18:25:24.262-07:002013-06-19T18:25:24.262-07:00Sweet! I was right about ANTLR3's complex tree...Sweet! I was right about ANTLR3's complex tree building syntax.<br /><br />Looks like it has been addressed in V4 - just walk the tree in Java.<br /><br />From the <a href="http://www.antlr.org/wiki/pages/viewpage.action?pageId=29130850" rel="nofollow">ANTLR V4 page</a>:<br /><br />"Q: What are the main design decisions in ANTLR4?<br /><br />A: Ease-of-use over performance. I will worry about performance later. Simplicity over complexity. For example, I have taken out explicit/manual AST construction facilities and the tree grammar facilities. For 20 years I've been trying to get people to go that direction, but I've since decided that it was a mistake. It's much better to give people a parser generator that can automatically build trees and then let them use pure code to do whatever tree walking they want. People are extremely familiar and comfortable with visitors, for example."Ashwin Jayaprakashhttps://www.blogger.com/profile/14487665820971997426noreply@blogger.com