Permalink
Browse files

Better documentation

  • Loading branch information...
ericnormand committed Jan 27, 2012
1 parent d376848 commit ce32fffed985d22330d2ff4fa1dad3924039986a
Showing with 526 additions and 118 deletions.
  1. +3 −3 README.md
  2. +326 −89 docs/uberdoc.html
  3. +2 −2 project.clj
  4. +195 −24 src/squarepeg/core.clj
View
@@ -144,7 +144,7 @@ Combinators are functions that generate rules.
####Built-in combinators
-Combinators are defined in src/squarepeg/combinators.clj
+Combinators are defined in src/squarepeg/core.clj
<code>mknot</code> inverts a rule. Given a rule, mknot returns a new
rule that fails when the given rule succeeds, and vice versa. It never
@@ -189,8 +189,8 @@ Example:
;; parse digit characters as an int
(def integer (mkret (mkbind (mk1om (mkpr #(Character/isDigit %)))
- :digits) #(Integer/parseInt
- (:digits %))))
+ :digits)
+ #(Integer/parseInt (:digits %))))
<code>mknothing</code> makes a rule return nothing.
Oops, something went wrong.

0 comments on commit ce32fff

Please sign in to comment.