Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (18 sloc) 906 Bytes
http://www.antlr.org/
https://github.com/antlr
https://github.com/antlr/grammars-v4/
https://github.com/antlr/grammars-v4/tree/master/clojure
Converted to ANTLR 4 by Terence Parr. Unsure of provence. I see
it commited by matthias.koester for clojure-eclipse project on
Oct 5, 2009:
https://code.google.com/p/clojure-eclipse/
Seems to me Laurent Petit had a version of this. I also see
Jingguo Yao submitting a link to a now-dead github project on
Jan 1, 2011.
https://github.com/laurentpetit/ccw/tree/master/clojure-antlr-grammar
Regardless, there are some issues perhaps related to "sugar";
I've tried to fix them.
This parses https://github.com/weavejester/compojure project.
I also note this is hardly a grammar; more like "match a bunch of
crap in parens" but I guess that is LISP for you ;)
Grammar in a broad sense fetched on 1 October 2014 by Vadim Zaytsev, http://grammarware.net