Sorry to reply to my own messeage... On 01/11/2012 10:29 PM, John B. Brodie wrote: > Greetings! > > Have you looked at the mechanism of the BNF Converter? > see http://www.cse.chalmers.se/research/group/Language-technology/BNFC/ > > yes it is based around YACC-like lalr parser generators > > but i like its mechanic for tree generation > > i have only used it for generating Haskell > > it claims to produce Java (and C and C++ and ...)
I do not mean to advocate the data structure it generates (altho the generated Haskell is not so bad). I am more suggesting its meta syntax used in the grammar input that in turn drives creation of a tree. So use BNFC's meta-syntax and create a data structure you are comfortable with from that... > > hope this is not tooooo off base > > thankx > -jbb > _______________________________________________ antlr-dev mailing list antlr-dev@antlr.org http://www.antlr.org/mailman/listinfo/antlr-dev