@json-lisp/core
v0.1.1
Published
Portable JSON LISP language core: parser, validator, evaluator, actions, and state helpers.
Downloads
333
Readme
@json-lisp/core
Portable JSON LISP language core.
Includes:
- document parsing and validation
- expression evaluator
- standard library built-ins
- action dispatcher
- state path helpers
- JSON LISP errors
Install
npm install @json-lisp/coreExample
import { evaluate } from "@json-lisp/core"
const result = evaluate(
["+", 1, ["expt", 2, 3]],
{ state: {} }
)
console.log(result) // 9See the full language manual:
https://github.com/Cause-of-a-Kind/json-lisp/blob/main/docs/manual.md
