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.
- Host: GitHub
- URL: https://github.com/yorkie/node-sexp
- Owner: yorkie
- Created: 2017-06-13T07:18:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-13T07:46:50.000Z (almost 8 years ago)
- Last Synced: 2025-03-15T15:02:32.973Z (about 2 months ago)
- Topics: builder, javascript, s-expression, s-expressions
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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