Linking grammer with nodes for Irregular Heterogeneous AST
16 Mar 2012, 17:44
Todd Nine (1 post)
Hi all, I’m working on a query engine for Usergrid. I’m updating our grammer and our logic so that antlr returns an AST for the where clause. In doing this, I’m running into some issues. I’ve read chapter 11, however it never actually shows how to link the grammer to the code that comprises the nodes. My code is here.
Can you please provide an example on how I would go about creating a LessThan node in my simple grammer and objects? I’m using java and antlr 3.4
|You must be logged in to comment|