Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 916 Bytes

readme.md

File metadata and controls

41 lines (29 loc) · 916 Bytes

BuildStatus

NOTE: In development

This is a preliminary version published for use by collaborators.

Teak Tools

Teak is a functional data language used to describe data in the form of scalars, lists, trees, or general graphs. It's grammar draws from LISP and JSON.

LISP grammar elements

  • One composition from, s expressions.
  • Space is separator
  • Symbol definition and reference
  • Comments

JSON grammar elements

  • Name value pairs (optional)
  • UTF8 encoding
  • Unicode escapes

TEAK specific elements

  • IEEE 754 floating point
  • Optional names used as anchor tags

The Teak NPM package provides tools to work with teak expressions in JavaScript.

Installation

 npm install teak

Use

var teak = require('teak');

console.log(teak.parse('(1 2 3 4)'));
// -> [ 1, 2, 3, 4 ]