UNPKG

subscript

Version:

Fast and tiny expression evaluator with minimal syntax.

6 lines (4 loc) 194 B
import { token } from "../src/parse.js" import { PREC_TOKEN } from "../src/const.js" token('true', PREC_TOKEN, a => a ? err() : [, true]) token('false', PREC_TOKEN, a => a ? err() : [, false])