News for hackers. Stuff that matters.
Re:Show HN: How to write a recursive descent parser by electrum on Monday March 20, 2017 @09:00PM (#13918961)
ANTLR4 automatically generates a visitor for your grammar that you can use to translate into your own idiomatic objects: http://jakubdziworski.github.io/java/2016/04/01/antlr_visito...

We use this in Presto for parsing SQL and generating an immutable AST:

https://github.com/prestodb/presto/blob/master/presto-parser...

https://github.com/prestodb/presto/blob/master/presto-parser...

There are no comments on this comment yet.