0.1.0 • Published 11 years ago

sexp-parser v0.1.0

Weekly downloads
5
License
-
Repository
bitbucket
Last release
11 years ago

Sexp-Parser - parsing symbolic expression.

Install

npm install sexp-parser

Usage

var sexp = require('sexp-parser');
sexp.parse('1'); // ==> [ 1 ]
sexp.parse('(abc (def 1 2 "test"))') // ==> [ {symbo: 'abc'}, [ {symbol: 'def'}, 1, 2, 'test' ]]

Symbols are represented as an object with the key symbol mapped to the name of the symbol.

List are represented as Javascript array.

0.1.0

11 years ago