UNPKG

boolean-expressions

Version:

Boolean expression parser and evaluator. Makes use of the Ohm grammar package with grammar rules found [here](https://github.com/avadavat/boolean-expressions/blob/master/src/grammar/grammarRules.ts).

8 lines (7 loc) 196 B
export interface TestCase { expression: string; variableNames: string[]; truthTable: boolean[][]; } declare function generateTestCases(): TestCase[]; export default generateTestCases;