Permalink
Browse files

fixed bug where calling many with a recursive parser would cause stac…

…koverflow.
  • Loading branch information...
Jason Jackson
Jason Jackson committed Jun 2, 2011
1 parent 2fa67b0 commit 4e8b9fcce094332ca93af78cba8da08c6560e3f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/eu/dnetlib/clojure/clarsec.clj
@@ -104,7 +104,7 @@
(def many1)
(defn many [parser]
- (>>== (optional (many1 parser))
+ (>>== (optional (delay (many1 parser)))
#(if (nil? %) () %)))
(defn many1 [parser]

0 comments on commit 4e8b9fc

Please sign in to comment.