Skip to content

Commit

Permalink
0.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Young committed Feb 8, 2011
1 parent 114e626 commit f058e1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ be defined as follows:
(between (char \[) (char \]) (many (instruction)))))

(defparser bf []
(many (instruction)))
(many (instruction))
(eof))

The `defparser` forms create new parsers that you can combine into other, more
complex parsers. As you can see in this example, those parsers can be recursive.
Expand Down Expand Up @@ -55,7 +56,7 @@ Parsatron offers you facilities for interacting with and operating on the things
you parse via sequencing of multiple parsers and binding their results. The
macros `>>` and `p-let` embody this facility.

As an example, bencoded strings, are prefixed by their length and a colon:
As an example, [bencoded strings](http://en.wikipedia.org/wiki/Bencode) are prefixed by their length and a colon:

(defparser ben-string []
(p-let [length (integer)]
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject the/parsatron "0.0.1-SNAPSHOT"
(defproject the/parsatron "0.0.1"
:description "Clojure parser combinators"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]]
Expand Down

0 comments on commit f058e1d

Please sign in to comment.