A parser for the ZIG data format.
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
data
lib
test
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
zig.gemspec

README.md

ZIG

Zig is a simple data format. It is designed to be edited by hand. It is also pretty easy to parse and generate, though. You can think of Zig as an alternate, indentation-based syntax for JSON.

Here is a short example that shows all data structures:

{
  type: 'error'
  subtype: nil
  description: "
    Check your Internet connection. Restart any router, modem,
    or other network devices you may be using.
  color: {
    r: 255
    g: 192
    b: 0
  # TODO: do we need these any more?
  flags: [
    true
    false
    true

In order of appearance: hash, string, nil, multiline string, number, comment, list, boolean.