I'm pleased to announce FnParse, a monadic functional parsing library for Clojure, half a year in the making. I started on FnParse in December as my first Clojure project, and now it has matured to something that I believe is very and immediately useful. Currently, I'm writing a YAML parser using FnParse.
With FnParse, you can easily parse a string or any sequence of tokens into native data structures. FnParse is based on the concept of the rule, a self-contained function that accepts a state data structure, containing a sequence of tokens, and either consumes some tokens— turning them into new data—or fails. Rules correspond nicely to EBNF productions and productions in other sort of grammars. FnParse provides common rules, functions that create new rules, and functions that facilitate using rules. A sample JSON parser is at http://wiki.github.com/joshua-choi/fnparse/sample-json-parser. Online documentation is available at: http://wiki.github.com/joshua-choi/fnparse. The source is at: http://github.com/joshua-choi/fnparse. If you are confused about anything or find any bugs, please create an issue on GitHub (http://github.com/joshua-choi/fnparse/issues) or send me a message on GitHub. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---