Ruby TOML parsing library using Parslet. Written as an learning / teaching exercise for a series of blog posts
Ruby Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
script
spec
.gitignore
.rspec
Gemfile
Guardfile
LICENSE.txt
README.md
Rakefile
toml-parslet.gemspec

README.md

toml-parslet

This is a TOML parser for loading a hash from a TOML document.

It supports version 0.1.0 of the TOML spec.

Is it awesome?

Yes.

Right on.

While this is indeed a fully functioning TOML parser, I wrote this as a personal exercise and for a series of blog posts describing how to use Parslet for parsing a simple text file format.

It's set up as a ruby gem, but I'll only release it officially upon request.

Usage

require "toml-parslet"
TOML.load File.read("example.toml")

Contributing

Pull requests with tests, plz.