whoozle / json-with-classes

JSON with classes specification and reference implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON with classes: Javascript Object Notation with Classes

Specification and reference implementation of sax style parser

Motivation

Simplier and cleaner language for declaring structures of platform-independent abstract data, similar to JSON.

Simple Examples

//simple example and c-style comment
Build {

  dir: Directory {
    name: 'src'; readable: true; scan: true
  },

  target: Target {
    name: 'test';
    sources: [null, false, true, 1, 2.45e-38, 'string', { /*plain json object*/ }, Target { /*named object is fine too*/ } ]
  },

  effect: Effect { 'shadow': 1 } //json-style properties are fine too
}

About

JSON with classes specification and reference implementation

License:MIT License


Languages

Language:C++ 50.3%Language:Yacc 39.8%Language:CMake 9.9%