Skip to content

martintrojer/edn-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

edn-scala

An EDN format reader/writer for Scala.

Usage

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.

TODO

  • leading / trailing commas
  • use proper symbol regexps

License

Copyright (C) 2013 Martin Trojer

Distributed under the Eclipse Public License.

About

An EDN format reader/writer for Scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages