Code Monkey home page Code Monkey logo

clj-toml's Introduction

clj-toml

clj-toml is TOML for Clojure. TOML is Tom's Obvious, Minimal Language.

TOML is like INI, only better (Tom Preston-Werner)

clj-toml uses Kern for parsing. Kern does all the heavy lifting, we're just sitting pretty.

clj-toml comes with a decent collection of tests.

Supported TOML version: 00f11b019406531c8c7989846b1c1a54e9b8d8bb.

Usage

Leiningen:

[clj-toml "0.2.0"]

Test:

lein test

Use:

(use 'clj-toml.core)

(parse-string "
title = \"TOML\"
[Foo]
bar=[1,2,3]")
;; {"title" "TOML" "foo" {"bar" [1 2 3]}}

TODO

The parser is pretty solid (thanks to Kern) and complete.

In a way it implements a superset of TOML, since it successfully parses

  • non-homogeneous arrays
  • TOML with duplicate keys
  • multiline strings

As the TOML specification stabilizes, we'll raise errors according to specification.

License

Copyright © 2013 Luca Antiga.

Distributed under the Eclipse Public License, the same as Clojure.

clj-toml's People

Contributors

lantiga avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.