UNPKG

@khanacademy/kas

Version:

A lightweight JavaScript CAS for comparing expressions and equations.

46 lines (45 loc) 1.22 kB
#!/usr/bin/env node declare const fs: any; declare const path: any; declare const jison: any; declare const grammar: { lex: { rules: string[][]; options: { flex: boolean; }; }; operators: string[][]; start: string; bnf: { equation: string[][]; expression: string[][]; additive: (string | { prec: string; })[][]; multiplicative: string[][]; negative: (string | { prec: string; })[][]; trig: string[][]; trigfunc: string[][]; logbase: string[][]; triglog: string[][]; power: string[][]; variable: string[][]; subscriptable: string[][]; function: string[][]; invocation: string[][]; primitive: string[][]; }; }; declare const prelude: string; declare let parser: any; declare const postlude = "\n\nexport {parser};\n"; declare const unitPrelude: string; declare const unitEpilogue = "\n\nexport const unitParser = parser;\n"; declare const unitParserInfile: any; declare const unitParserOutfile: any; declare const unitParserSource: any; declare const unitParser: any; declare let generatedParser: any;