An open API service indexing awesome lists of open source software.

https://github.com/yorkie/node-sexp

Creates symboltic-expression builder in JavaScript.
https://github.com/yorkie/node-sexp

builder javascript s-expression s-expressions

Last synced: about 1 month ago
JSON representation

Creates symboltic-expression builder in JavaScript.

Awesome Lists containing this project

README

        

# node-sexp

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]

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

```js
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

```sh
$ npm install node-sexp --save
```

### License

MIT

[npm-image]: https://img.shields.io/npm/v/node-sexp.svg?style=flat-square
[npm-url]: https://npmjs.org/package/node-sexp
[travis-image]: https://img.shields.io/travis/yorkie/node-sexp.svg?style=flat-square
[travis-url]: https://travis-ci.org/yorkie/node-sexp
[`S-expression`]: https://en.wikipedia.org/wiki/S-expression