@khanacademy/kas 0.3.9 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ declare const fs: any;
3
+ declare const path: any;
4
+ declare const jison: any;
5
+ declare const grammar: {
6
+ lex: {
7
+ rules: string[][];
8
+ options: {
9
+ flex: boolean;
10
+ };
11
+ };
12
+ operators: string[][];
13
+ start: string;
14
+ bnf: {
15
+ equation: string[][];
16
+ expression: string[][];
17
+ additive: (string | {
18
+ prec: string;
19
+ })[][];
20
+ multiplicative: string[][];
21
+ negative: (string | {
22
+ prec: string;
23
+ })[][];
24
+ trig: string[][];
25
+ trigfunc: string[][];
26
+ logbase: string[][];
27
+ triglog: string[][];
28
+ power: string[][];
29
+ variable: string[][];
30
+ subscriptable: string[][];
31
+ function: string[][];
32
+ invocation: string[][];
33
+ primitive: string[][];
34
+ };
35
+ };
36
+ declare const prelude: string;
37
+ declare let parser: any;
38
+ declare const postlude = "\n\nexport {parser};\n";
39
+ declare const unitPrelude: string;
40
+ declare const unitEpilogue = "\n\nexport const unitParser = parser;\n";
41
+ declare const unitParserInfile: any;
42
+ declare const unitParserOutfile: any;
43
+ declare const unitParserSource: any;
44
+ declare const unitParser: any;
45
+ declare let generatedParser: any;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A lightweight JavaScript CAS for comparing expressions and equations.",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "0.3.9",
6
+ "version": "0.3.11",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -22,15 +22,15 @@
22
22
  "dist"
23
23
  ],
24
24
  "scripts": {
25
- "gen:parsers": "node src/parser-generator.js",
25
+ "gen:parsers": "node src/parser-generator.ts",
26
26
  "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
27
27
  },
28
28
  "dependencies": {
29
- "@khanacademy/perseus-core": "1.4.2"
29
+ "@khanacademy/perseus-core": "1.5.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "jison": "0.4.15",
33
- "perseus-build-settings": "^0.3.0",
33
+ "perseus-build-settings": "^0.4.1",
34
34
  "underscore": "1.4.4"
35
35
  },
36
36
  "peerDependencies": {