An EDN format reader/writer for Scala.
Add the following lines in your build.sbt;
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies += "io.github.martintrojer" % "edn-scala_2.10" % "0.1-SNAPSHOT"
Using the console;
scala> import EDN._
import EDN._
scala> Reader.readAll("{:a 1}")
res0: Any = Map(:a -> 1.0)
scala> Writer.writeAll(Map(Vector(1) -> Set(2)))
res1: String = {[1] #{2}}
Also see the tests.
- leading / trailing commas
- use proper symbol regexps
Copyright (C) 2013 Martin Trojer
Distributed under the Eclipse Public License.