~hanna/mocha

An elegant configuration language for humans

309cec8 build: update version in build.zig.zon

~hanna pushed to ~hanna/mocha git

a day ago

8f49efa build: update build system and ci for parallel tests

~hanna pushed to ~hanna/mocha git

2 days ago

#Mocha license build

An elegant, simple human and machine readable configuration language.

#Specification

The language and format specification can be found in the docs folder, here.

#Running Tests

To run the library tests you'll need to install Zig first, afterwords, you can test the library by doing the following:

git clone https://git.sr.ht/~hanna/mocha
cd mocha && zig build test

#Examples

Mocha is based on YAML, JSON, and a tiny bit of Nix, it aims to be readable for both humans and machines, while also only providing the minimal amount of features to prevent edge cases all while keeping a small footprint.

hello: {
  id: 1024
  admin: true
  # this is an example comment
  inventory: ['apple' 'cake' 'sword']
  metadata: {
    heck: false
  }
}

There is more examples of the format in the examples folder.