I'm trying to use Antlr for some text IDE-like functions -- specifically parsing a file to identify the points for code folding, and for applying syntax highlighting.
First question - is Antlr ...
I'm currently pondering how best to take an AST generated using Antlr and convert it into useful objects which I can use in my program.
The purpose of my grammar ...
I'm presently gluing together ANTLR and Clojure, trying to create a Clojure zipper over the abstract syntax tree that ANTLR returns.
The AST is a very Java-flavored set of objects, using
tree structure build by from java code passed to clojure REPL and then using that data structure work on it. this tree is formed by ANTLR after parsing the code.
I'm looking for ANTLR grammars which are ready for printing tree in readable format. When I try to print Java.g (http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g) the results were inconvenient. But I find one grammar(including java ...