A Parser for the Internet Message Format (RFC 5322)
There's a nice little prompt when you start up a REPL:
$ lein repl
To demo the code, try the following:
(demo-lite)
(source demo-lite)
(source parsed-lite)
parsed-lite
(demo-full)
(source demo-full)
(source parsed-full)
parsed-full
(test-message)
...
[rfc5322.repl] λ=>
Try those out, then look at the source code in the following locations:
dev-resources/src/rfc5322/repl.clj
src/rfc5322/core.clj
src/rfc5322/parser.clj
src/rfc5322/xform.clj
The test message used in repl.clj
is here:
test/rfc5322/core/test.clj
Copyright © 2013, Zachary Kuhn
Copyright © 2017-2019, Clojure-Aided Enrichment Center
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.