UNPKG

subscript

Version:

Modular expression parser & evaluator

15 lines (11 loc) 270 B
/** * Logical operators (base) - parse half * * ! && || */ import { binary, unary } from '../../parse.js'; const LOR = 30, LAND = 40, PREFIX = 140; // ! registered before != and !== (chain order matters) unary('!', PREFIX); binary('||', LOR); binary('&&', LAND);