I'm a little apprehensive about sharing this project with others, but I
thought I might as well try.

I'm very interested in any feedback, but for now the license is a
bit-non-open.
There are modifications that I'm still wanting to make to the core before I
fully open the license.

Here's a bit of info:
 - clj-peg is intended to eventually support Parser Expression
Grammars<http://en.wikipedia.org/wiki/Parsing_expression_grammar>(it
does a good job as is).
 - It's released as an AOT compiled pair of JARs (I'd love feedback on this
approach to distributing a Clojure library).
 - It is in _no_ way optimized. (I'm pretty sure current runtimes are
exponential in the worst case.)
 - The project page is at: http://www.lithinos.com/clj-peg/
 - An intro post is at: http://www.lithinos.com/Intro-to-clj-peg.html

A sample of the syntax that I'm currently using (though I'm really not happy
with it yet):
Expr      <- (=ast expr-ast (=s Sum (=e)))
Sum       <- (=ast sum-ast (=s Product (=* (=s SumOp Product))))
Product   <- (=ast product-ast (=s Value (=* (=s ProductOp Value))))
Value     <- (=ast value-ast (=o Num (=s LParen Expr RParen)))
Num       <- (=ast num-ast (=+ NumChar))
SumOp     <- #"^[+-]"
ProductOp <- #"^[*/]"
LParen    <- "("
RParen    <- ")"
NumChar   <- #"^[0-9]"

What does everyone think?

-Rich

--~--~---------~--~----~------------~-------~--~----~
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