npm.io
1.0.1 • Published 9 years ago

node-sexp

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
3

node-sexp

NPM version Build Status

The S-expression builder written in pure JavaScript, which lets you write a s-expression builder in JavaScript way like the following way:

const sexp = require('node-sexp');
const func = sexp('func');
const memory = sexp('memory', 1);
const program = sexp('program', [memory, func]);

The above example will produce:

(module 
  (memory 1) (func))

S-expression

The S-expression is for symboltic expression that represents a nested list data.

Installation

$ npm install node-sexp --save
License

MIT

Keywords