Created
February 15, 2010 22:48
-
-
Save abscondment/305068 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns markymark | |
(:use | |
[clojure.contrib pprint] | |
[com.lithinos.clj-peg core string-wrapper])) | |
(make-parser | |
{:main markdown | |
:doc "blah" | |
:rules ( | |
Doc <- (+ Newline) | |
Newline <- (| NL [CR (? NL)]) | |
NL <- "\n" | |
CR <- "\r" | |
)}) | |
(pprint | |
(markdown | |
(wrap-string "\n\r\r\n"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment