I wrote a library on parsing expression grammars (PEGs). Its not completely 
independent from clojurescript since I use java's regular expressions for 
the token component, but technically it works on sequences and its easy to 
rewrite this for js's regexps. Performance hasn't been measured but theres 
less invocations than a general parsec library. The code is heavily 
documented and should at least get you started.

https://github.com/bmillare/dj-peg

On Friday, May 18, 2012 8:46:19 AM UTC-4, Alexsandro Soares wrote:
>
> Hi,
>
>      I'm trying to build a compiler using Clojure. Is there any tools 
> like flex and bison generating Clojure code? 
>      I'm interested in a lexer/parser in pure Clojure because I think
>  in use the same code with Javascript (via ClojureScript) and Java (via 
> Clojure). 
> I already know isolated tools like Jflex, JavaCup and Bison generating 
> Java and
> Jison, JS/CC and friends for Javascript, but I am just interested in a 
> pure Clojure solution.
>
> Thanks in advance for any answer.
>
> Cheers,
> Alex
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to