Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a 'string' convenience function. #10

Merged
merged 3 commits into from

2 participants

@sjl

fixes #8

@sjl

Sorry about the other commits -- github's stupid pull request system screwed me again.

Feel free to merge them if you want though.

@youngnh youngnh merged commit 94feadd into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 13, 2012
  1. @sjl
  2. @sjl

    Replace - in test-trampoline.clj with _.

    sjl authored
    lein test couldn't find the file with the dash in the name.
  3. @sjl

    Add target/ to .gitignore.

    sjl authored
This page is out of date. Refresh to see the latest.
View
3  .gitignore
@@ -2,4 +2,5 @@ pom.xml
*jar
lib
classes
-.lein*
+.lein*
+target/
View
6 src/the/parsatron.clj
@@ -234,6 +234,12 @@
[]
(token #(Character/isLetter %)))
+(defn string
+ "Consume the given string"
+ [s]
+ (reduce nxt (concat (map char s)
+ (list (always s)))))
+
(defn between
"Parse p after parsing open and before parsing close, returning the
value of p and discarding the values of open and close"
View
0  test/parsatron/test-trampoline.clj → test/parsatron/test_trampoline.clj
File renamed without changes
Something went wrong with that request. Please try again.