clojure-pg is a parser generator written in Clojure.
It is very much a work in progress and lacks documentation in any form.
- Open a Clojure REPL in the src directory. Make sure the CLASSPATH includes the current working directory (i.e. "
- Load the
- Change into the
- Generate a state machine for the lexer based on a small subset of Java tokens:
(generate-state-machine *java-tokens* *java-meta-tokens*)
clojure-pg is dual-licensed under the BSD License (see file
COPYING) and the Eclipse Public License v1.0 (see file
The code under
eu.philjordan.util is (c) 2009-2010 Phillip Jordan, and is licensed under the same terms as clojure-pg.