UNPKG

subscript

Version:

Fast and tiny expression evaluator with minimal syntax.

7 lines (5 loc) 239 B
import { unary } from "../src/parse.js" import { PREC_PREFIX } from "../src/const.js" import { operator, compile } from "../src/compile.js" unary('...', PREC_PREFIX) operator('...', (a) => (a = compile(a), ctx => Object.entries(a(ctx))))