Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A parser for the ZIG data format.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.