desmost 0.1.1 → 0.2.0
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.
- package/dist/compiler/compile.d.ts.map +1 -0
- package/dist/compiler/compile.js.map +1 -0
- package/dist/compiler/evaluate.d.ts.map +1 -0
- package/dist/compiler/evaluate.js.map +1 -0
- package/dist/compiler/index.d.ts.map +1 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/compiler/options.d.ts.map +1 -0
- package/dist/compiler/options.js.map +1 -0
- package/dist/desmos.d.ts.map +1 -0
- package/dist/desmos.js.map +1 -0
- package/dist/{src/errors.d.ts → errors.d.ts} +6 -7
- package/dist/errors.d.ts.map +1 -0
- package/dist/{src/errors.js → errors.js} +1 -3
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.internal.d.ts.map +1 -0
- package/dist/index.internal.js.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/magic/expr/index.d.ts.map +1 -0
- package/dist/magic/expr/index.js.map +1 -0
- package/dist/magic/expr/latex.d.ts.map +1 -0
- package/dist/magic/expr/latex.js.map +1 -0
- package/dist/magic/expr/text.d.ts.map +1 -0
- package/dist/magic/expr/text.js.map +1 -0
- package/dist/magic/global/dark-mode.d.ts.map +1 -0
- package/dist/magic/global/dark-mode.js.map +1 -0
- package/dist/magic/global/desmos.d.ts.map +1 -0
- package/dist/magic/global/desmos.js.map +1 -0
- package/dist/magic/global/index.d.ts.map +1 -0
- package/dist/magic/global/index.js.map +1 -0
- package/dist/magic/global/viewport.d.ts.map +1 -0
- package/dist/magic/global/viewport.js.map +1 -0
- package/dist/magic/incantation.d.ts.map +1 -0
- package/dist/magic/incantation.js.map +1 -0
- package/dist/magic/index.d.ts.map +1 -0
- package/dist/magic/index.js.map +1 -0
- package/dist/magic/local/anim.d.ts.map +1 -0
- package/dist/magic/local/anim.js.map +1 -0
- package/dist/magic/local/colour.d.ts.map +1 -0
- package/dist/magic/local/colour.js.map +1 -0
- package/dist/magic/local/dashed.d.ts.map +1 -0
- package/dist/magic/local/dashed.js.map +1 -0
- package/dist/magic/local/fill.d.ts.map +1 -0
- package/dist/magic/local/fill.js.map +1 -0
- package/dist/magic/local/hide.d.ts.map +1 -0
- package/dist/magic/local/hide.js.map +1 -0
- package/dist/magic/local/index.d.ts.map +1 -0
- package/dist/magic/local/index.js.map +1 -0
- package/dist/magic/local/line.d.ts.map +1 -0
- package/dist/magic/local/line.js.map +1 -0
- package/dist/magic/local/no-line.d.ts.map +1 -0
- package/dist/magic/local/no-line.js.map +1 -0
- package/dist/magic/local/point.d.ts.map +1 -0
- package/dist/magic/local/point.js.map +1 -0
- package/dist/magic/local/secret.d.ts.map +1 -0
- package/dist/magic/local/secret.js.map +1 -0
- package/dist/magic/local/slider.d.ts.map +1 -0
- package/dist/magic/local/slider.js.map +1 -0
- package/dist/parser/ast.d.ts.map +1 -0
- package/dist/parser/ast.js.map +1 -0
- package/dist/{src/parser → parser}/desmost-parser.d.ts +4 -4
- package/dist/parser/desmost-parser.d.ts.map +1 -0
- package/dist/{src/parser → parser}/desmost-parser.js +50 -66
- package/dist/parser/desmost-parser.js.map +1 -0
- package/dist/{src/parser → parser}/generic-parser.d.ts +5 -4
- package/dist/parser/generic-parser.d.ts.map +1 -0
- package/dist/{src/parser → parser}/generic-parser.js +20 -23
- package/dist/parser/generic-parser.js.map +1 -0
- package/dist/parser/index.d.ts.map +1 -0
- package/dist/parser/index.js.map +1 -0
- package/package.json +7 -2
- package/src/errors.ts +6 -6
- package/src/parser/desmost-parser.ts +61 -78
- package/src/parser/generic-parser.ts +33 -32
- package/dist/src/compiler/compile.d.ts.map +0 -1
- package/dist/src/compiler/compile.js.map +0 -1
- package/dist/src/compiler/evaluate.d.ts.map +0 -1
- package/dist/src/compiler/evaluate.js.map +0 -1
- package/dist/src/compiler/index.d.ts.map +0 -1
- package/dist/src/compiler/index.js.map +0 -1
- package/dist/src/compiler/options.d.ts.map +0 -1
- package/dist/src/compiler/options.js.map +0 -1
- package/dist/src/desmos.d.ts.map +0 -1
- package/dist/src/desmos.js.map +0 -1
- package/dist/src/errors.d.ts.map +0 -1
- package/dist/src/errors.js.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.internal.d.ts.map +0 -1
- package/dist/src/index.internal.js.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/magic/expr/index.d.ts.map +0 -1
- package/dist/src/magic/expr/index.js.map +0 -1
- package/dist/src/magic/expr/latex.d.ts.map +0 -1
- package/dist/src/magic/expr/latex.js.map +0 -1
- package/dist/src/magic/expr/text.d.ts.map +0 -1
- package/dist/src/magic/expr/text.js.map +0 -1
- package/dist/src/magic/global/dark-mode.d.ts.map +0 -1
- package/dist/src/magic/global/dark-mode.js.map +0 -1
- package/dist/src/magic/global/desmos.d.ts.map +0 -1
- package/dist/src/magic/global/desmos.js.map +0 -1
- package/dist/src/magic/global/index.d.ts.map +0 -1
- package/dist/src/magic/global/index.js.map +0 -1
- package/dist/src/magic/global/viewport.d.ts.map +0 -1
- package/dist/src/magic/global/viewport.js.map +0 -1
- package/dist/src/magic/incantation.d.ts.map +0 -1
- package/dist/src/magic/incantation.js.map +0 -1
- package/dist/src/magic/index.d.ts.map +0 -1
- package/dist/src/magic/index.js.map +0 -1
- package/dist/src/magic/local/anim.d.ts.map +0 -1
- package/dist/src/magic/local/anim.js.map +0 -1
- package/dist/src/magic/local/colour.d.ts.map +0 -1
- package/dist/src/magic/local/colour.js.map +0 -1
- package/dist/src/magic/local/dashed.d.ts.map +0 -1
- package/dist/src/magic/local/dashed.js.map +0 -1
- package/dist/src/magic/local/fill.d.ts.map +0 -1
- package/dist/src/magic/local/fill.js.map +0 -1
- package/dist/src/magic/local/hide.d.ts.map +0 -1
- package/dist/src/magic/local/hide.js.map +0 -1
- package/dist/src/magic/local/index.d.ts.map +0 -1
- package/dist/src/magic/local/index.js.map +0 -1
- package/dist/src/magic/local/line.d.ts.map +0 -1
- package/dist/src/magic/local/line.js.map +0 -1
- package/dist/src/magic/local/no-line.d.ts.map +0 -1
- package/dist/src/magic/local/no-line.js.map +0 -1
- package/dist/src/magic/local/point.d.ts.map +0 -1
- package/dist/src/magic/local/point.js.map +0 -1
- package/dist/src/magic/local/secret.d.ts.map +0 -1
- package/dist/src/magic/local/secret.js.map +0 -1
- package/dist/src/magic/local/slider.d.ts.map +0 -1
- package/dist/src/magic/local/slider.js.map +0 -1
- package/dist/src/parser/ast.d.ts.map +0 -1
- package/dist/src/parser/ast.js.map +0 -1
- package/dist/src/parser/desmost-parser.d.ts.map +0 -1
- package/dist/src/parser/desmost-parser.js.map +0 -1
- package/dist/src/parser/generic-parser.d.ts.map +0 -1
- package/dist/src/parser/generic-parser.js.map +0 -1
- package/dist/src/parser/index.d.ts.map +0 -1
- package/dist/src/parser/index.js.map +0 -1
- /package/dist/{src/compiler → compiler}/compile.d.ts +0 -0
- /package/dist/{src/compiler → compiler}/compile.js +0 -0
- /package/dist/{src/compiler → compiler}/evaluate.d.ts +0 -0
- /package/dist/{src/compiler → compiler}/evaluate.js +0 -0
- /package/dist/{src/compiler → compiler}/index.d.ts +0 -0
- /package/dist/{src/compiler → compiler}/index.js +0 -0
- /package/dist/{src/compiler → compiler}/options.d.ts +0 -0
- /package/dist/{src/compiler → compiler}/options.js +0 -0
- /package/dist/{src/desmos.d.ts → desmos.d.ts} +0 -0
- /package/dist/{src/desmos.js → desmos.js} +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.internal.d.ts → index.internal.d.ts} +0 -0
- /package/dist/{src/index.internal.js → index.internal.js} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/magic → magic}/expr/index.d.ts +0 -0
- /package/dist/{src/magic → magic}/expr/index.js +0 -0
- /package/dist/{src/magic → magic}/expr/latex.d.ts +0 -0
- /package/dist/{src/magic → magic}/expr/latex.js +0 -0
- /package/dist/{src/magic → magic}/expr/text.d.ts +0 -0
- /package/dist/{src/magic → magic}/expr/text.js +0 -0
- /package/dist/{src/magic → magic}/global/dark-mode.d.ts +0 -0
- /package/dist/{src/magic → magic}/global/dark-mode.js +0 -0
- /package/dist/{src/magic → magic}/global/desmos.d.ts +0 -0
- /package/dist/{src/magic → magic}/global/desmos.js +0 -0
- /package/dist/{src/magic → magic}/global/index.d.ts +0 -0
- /package/dist/{src/magic → magic}/global/index.js +0 -0
- /package/dist/{src/magic → magic}/global/viewport.d.ts +0 -0
- /package/dist/{src/magic → magic}/global/viewport.js +0 -0
- /package/dist/{src/magic → magic}/incantation.d.ts +0 -0
- /package/dist/{src/magic → magic}/incantation.js +0 -0
- /package/dist/{src/magic → magic}/index.d.ts +0 -0
- /package/dist/{src/magic → magic}/index.js +0 -0
- /package/dist/{src/magic → magic}/local/anim.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/anim.js +0 -0
- /package/dist/{src/magic → magic}/local/colour.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/colour.js +0 -0
- /package/dist/{src/magic → magic}/local/dashed.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/dashed.js +0 -0
- /package/dist/{src/magic → magic}/local/fill.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/fill.js +0 -0
- /package/dist/{src/magic → magic}/local/hide.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/hide.js +0 -0
- /package/dist/{src/magic → magic}/local/index.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/index.js +0 -0
- /package/dist/{src/magic → magic}/local/line.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/line.js +0 -0
- /package/dist/{src/magic → magic}/local/no-line.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/no-line.js +0 -0
- /package/dist/{src/magic → magic}/local/point.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/point.js +0 -0
- /package/dist/{src/magic → magic}/local/secret.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/secret.js +0 -0
- /package/dist/{src/magic → magic}/local/slider.d.ts +0 -0
- /package/dist/{src/magic → magic}/local/slider.js +0 -0
- /package/dist/{src/parser → parser}/ast.d.ts +0 -0
- /package/dist/{src/parser → parser}/ast.js +0 -0
- /package/dist/{src/parser → parser}/index.d.ts +0 -0
- /package/dist/{src/parser → parser}/index.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FAIL, UnrecoverableError } from "../errors.js";
|
|
2
2
|
const IGNORED_CHARACTERS = new Set([
|
|
3
3
|
"\r",
|
|
4
4
|
]);
|
|
@@ -19,44 +19,48 @@ export class GenericParser {
|
|
|
19
19
|
next() {
|
|
20
20
|
return this.source.at(this.i + 1);
|
|
21
21
|
}
|
|
22
|
-
preview() {
|
|
23
|
-
|
|
22
|
+
preview(idx) {
|
|
23
|
+
idx ??= this.i;
|
|
24
|
+
return this.source.slice(idx, idx + 20) + "...";
|
|
24
25
|
}
|
|
25
26
|
advance(error_msg) {
|
|
26
27
|
if (this.out_of_bounds()) {
|
|
27
28
|
throw new UnrecoverableError.UnexpectedEnd(error_msg ?? "Unexpected end of input");
|
|
28
29
|
}
|
|
29
|
-
this
|
|
30
|
-
if (IGNORED_CHARACTERS.has(this.current)) {
|
|
31
|
-
this.advance();
|
|
32
|
-
}
|
|
30
|
+
this.#advance();
|
|
33
31
|
}
|
|
34
32
|
try_advance() {
|
|
35
|
-
|
|
33
|
+
if (this.out_of_bounds())
|
|
34
|
+
return FAIL;
|
|
35
|
+
this.#advance();
|
|
36
|
+
}
|
|
37
|
+
#advance() {
|
|
38
|
+
this.i++;
|
|
39
|
+
if (IGNORED_CHARACTERS.has(this.current)) {
|
|
36
40
|
this.advance();
|
|
37
41
|
}
|
|
38
|
-
catch {
|
|
39
|
-
throw new RecoverableFail();
|
|
40
|
-
}
|
|
41
42
|
}
|
|
42
43
|
consume(raw, error_msg) {
|
|
43
44
|
if (this.out_of_bounds()) {
|
|
44
45
|
throw new UnrecoverableError.UnexpectedEnd(`Unexpected end of input while trying to consume: \`${raw}\``);
|
|
45
46
|
}
|
|
47
|
+
let init = this.i;
|
|
46
48
|
let ii = 0;
|
|
47
49
|
while (this.current === raw[ii]) {
|
|
48
|
-
this.advance(`Unexpected end of input while trying to consume: \`${raw}\``);
|
|
50
|
+
this.advance(`Unexpected end of input while trying to consume: \`${raw}\`, at: \`${this.preview(init)}\``);
|
|
49
51
|
ii++;
|
|
50
52
|
if (ii === raw.length)
|
|
51
53
|
return;
|
|
52
54
|
}
|
|
53
|
-
throw new UnrecoverableError.UnexpectedInput(error_msg ?? `Expected: \`${raw}\`, but found: \`${this.preview()}\``);
|
|
55
|
+
throw new UnrecoverableError.UnexpectedInput(error_msg ?? `Expected: \`${raw}\`, but found: \`${this.preview(init)}\``);
|
|
54
56
|
}
|
|
55
57
|
try_consume(raw) {
|
|
56
58
|
let init = this.i;
|
|
57
59
|
let ii = 0;
|
|
58
60
|
while (this.current === raw[ii]) {
|
|
59
|
-
this.try_advance();
|
|
61
|
+
let r = this.try_advance();
|
|
62
|
+
if (r === FAIL)
|
|
63
|
+
return FAIL;
|
|
60
64
|
ii++;
|
|
61
65
|
if (ii === raw.length)
|
|
62
66
|
return;
|
|
@@ -64,7 +68,7 @@ export class GenericParser {
|
|
|
64
68
|
break;
|
|
65
69
|
}
|
|
66
70
|
this.i = init;
|
|
67
|
-
|
|
71
|
+
return FAIL;
|
|
68
72
|
}
|
|
69
73
|
consume_spaces() {
|
|
70
74
|
if (this.out_of_bounds())
|
|
@@ -84,14 +88,7 @@ export class GenericParser {
|
|
|
84
88
|
if (this.i >= this.length)
|
|
85
89
|
return;
|
|
86
90
|
this.consume_spaces();
|
|
87
|
-
|
|
88
|
-
this.try_consume("\n");
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
if (!(e instanceof RecoverableFail))
|
|
92
|
-
throw e;
|
|
93
|
-
throw new UnrecoverableError.ExcessInput(error_msg ?? `Expected end of block, but found: \`${this.preview()}\``);
|
|
94
|
-
}
|
|
91
|
+
this.consume("\n", error_msg ?? `Expected end of block, but found: \`${this.preview()}\``);
|
|
95
92
|
}
|
|
96
93
|
}
|
|
97
94
|
//# sourceMappingURL=generic-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-parser.js","sourceRoot":"","sources":["../../src/parser/generic-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAIrD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,IAAI;CACL,CAAC,CAAC;AAQH,MAAM,OAAO,aAAa;IAGd,MAAM,CAAS;IAGf,CAAC,GAAW,CAAC,CAAC;IAGd,MAAM,CAAS;IAIzB,YAAY,MAAc;QAExB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9B,CAAC;IAMS,aAAa;QAErB,OAAO,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC;IAC/B,CAAC;IAKD,IAAc,OAAO;QAEnB,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IAKS,IAAI;QAEZ,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,CAAC;IAOM,OAAO,CAAC,GAAY;QAEzB,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;IAClD,CAAC;IAOS,OAAO,CAAC,SAAkB;QAElC,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC;YACzB,MAAM,IAAI,kBAAkB,CAAC,aAAa,CAAC,SAAS,IAAI,yBAAyB,CAAC,CAAC;QACrF,CAAC;QAED,IAAI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ot":"","sources":["../../src/parser/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desmost",
|
|
3
3
|
"author": "Sup#2.0",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
|
|
7
7
|
"description": "A tiny DSL for compiling LaTeX to Desmos",
|
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
"json5": "^2.2"
|
|
52
52
|
},
|
|
53
53
|
|
|
54
|
+
"peerDependencies":
|
|
55
|
+
{
|
|
56
|
+
"@types/desmos": "1.11"
|
|
57
|
+
},
|
|
58
|
+
|
|
54
59
|
"devDependencies":
|
|
55
60
|
{
|
|
56
61
|
"@types/desmos": "1.11",
|
|
@@ -58,7 +63,7 @@
|
|
|
58
63
|
"oxlint": "^1.78",
|
|
59
64
|
"oxlint-tsgolint": "^7.0",
|
|
60
65
|
"tsc-alias": "^1.9",
|
|
61
|
-
"typescript": "^
|
|
66
|
+
"typescript": "^6.0",
|
|
62
67
|
"vitest": "^4.0"
|
|
63
68
|
}
|
|
64
69
|
}
|
package/src/errors.ts
CHANGED
|
@@ -29,18 +29,18 @@ export namespace UnrecoverableError
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
/** The compiler encountered a non-fatal recoverable failure (usually during speculative parsing), which only results in internal backtracking. */
|
|
32
|
-
export
|
|
32
|
+
export const FAIL = Symbol("fail");
|
|
33
33
|
|
|
34
|
+
/** The compiler encountered a non-fatal recoverable failure (usually during speculative parsing), which only results in internal backtracking. */
|
|
35
|
+
export type RecoverableFail = typeof FAIL & { readonly __brand?: unique symbol };
|
|
34
36
|
|
|
35
|
-
/** Indicates that a function may throw a `RecoverableFail`. */
|
|
36
|
-
export type Recoverable<Result> = Result | Result & { readonly __brand?: unique symbol };
|
|
37
37
|
|
|
38
38
|
/** Indicates that a function may throw an `UnrecoverableError`. */
|
|
39
|
-
export type Unrecoverable<Result> = Result | Result & { readonly __brand?: unique symbol }
|
|
39
|
+
export type Unrecoverable<Result> = Result | Result & { readonly __brand?: unique symbol };
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* Indicates that a function may
|
|
42
|
+
* Indicates that a function may either return a `RecoverableFail` *or* throw an `UnrecoverableError`.
|
|
43
43
|
*
|
|
44
44
|
* This is used in potentially ambiguous cases. For instance, the user might have invoked an unknown incantation, in which case we might want to `RecoverableFail` and fallback to parsing it as LaTeX; on the other hand, if they invoked a valid incantation, but did not supply the required argument, that's a definite `UnrecoverableError`.
|
|
45
45
|
*/
|
|
46
|
-
export type MaybeRecoverable<Result> =
|
|
46
|
+
export type MaybeRecoverable<Result> = RecoverableFail | Unrecoverable<Result>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GenericParser } from "./generic-parser";
|
|
2
2
|
import { Ast } from "./ast";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import type {
|
|
4
|
+
import { FAIL, UnrecoverableError } from "../errors";
|
|
5
|
+
import type { RecoverableFail, Unrecoverable, MaybeRecoverable } from "../errors";
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
Incantation, ArgIncantation,
|
|
@@ -48,6 +48,10 @@ export class DesmostParser extends GenericParser
|
|
|
48
48
|
// 1+ locals + 1 expr
|
|
49
49
|
let incantations = r.local;
|
|
50
50
|
|
|
51
|
+
if (incantations.length > 0) {
|
|
52
|
+
this.parse_sep();
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
var expr = this.parse_post_sep();
|
|
52
56
|
|
|
53
57
|
for (let invocation of incantations) {
|
|
@@ -80,34 +84,23 @@ export class DesmostParser extends GenericParser
|
|
|
80
84
|
>
|
|
81
85
|
{
|
|
82
86
|
// 1 global incantation
|
|
83
|
-
|
|
84
|
-
let r = this.try_parse_global_incantation();
|
|
87
|
+
let r = this.try_parse_global_incantation();
|
|
85
88
|
|
|
89
|
+
if (r !== FAIL) {
|
|
86
90
|
this.consume_end_of_block(
|
|
87
91
|
`Received excess input after global incantation /${r.incantation.identifier}`
|
|
88
92
|
);
|
|
89
93
|
|
|
90
94
|
return { global: r };
|
|
91
95
|
}
|
|
92
|
-
catch (e) {
|
|
93
|
-
if (!(e instanceof RecoverableFail)) throw e;
|
|
94
|
-
}
|
|
95
96
|
|
|
97
|
+
// 1+ local incantations
|
|
96
98
|
let incantations = [];
|
|
97
99
|
|
|
98
|
-
// 1+ local incantations
|
|
99
100
|
while (this.current === "/") {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
catch (e) {
|
|
104
|
-
if (!(e instanceof RecoverableFail)) throw e;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (incantations.length > 0) {
|
|
110
|
-
this.parse_sep();
|
|
101
|
+
let invocation = this.try_parse_local_incantation();
|
|
102
|
+
if (invocation === FAIL) break;
|
|
103
|
+
incantations.push(invocation);
|
|
111
104
|
}
|
|
112
105
|
|
|
113
106
|
return { local: incantations };
|
|
@@ -122,6 +115,7 @@ export class DesmostParser extends GenericParser
|
|
|
122
115
|
this.consume("::",
|
|
123
116
|
`Expected \`::\` separator between local incantations and expression, but found: \`${this.preview()}\``
|
|
124
117
|
);
|
|
118
|
+
this.consume_whitespace();
|
|
125
119
|
}
|
|
126
120
|
|
|
127
121
|
/**
|
|
@@ -145,11 +139,9 @@ export class DesmostParser extends GenericParser
|
|
|
145
139
|
|
|
146
140
|
// expr incantation
|
|
147
141
|
case "/":
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
catch (e) {
|
|
152
|
-
if (!(e instanceof RecoverableFail)) throw e;
|
|
142
|
+
let incantation = this.try_parse_expr_incantation();
|
|
143
|
+
if (incantation !== FAIL) return incantation;
|
|
144
|
+
else {
|
|
153
145
|
// plain LaTeX (fallback)
|
|
154
146
|
return this.parse_latex_line();
|
|
155
147
|
}
|
|
@@ -176,7 +168,7 @@ export class DesmostParser extends GenericParser
|
|
|
176
168
|
|
|
177
169
|
return {
|
|
178
170
|
kind: Ast.Kind.EXPRESSION,
|
|
179
|
-
data: { latex: this.source.slice(init, this.i) },
|
|
171
|
+
data: { latex: this.source.slice(init, this.i).trimEnd() },
|
|
180
172
|
incantations: [],
|
|
181
173
|
};
|
|
182
174
|
}
|
|
@@ -186,23 +178,18 @@ export class DesmostParser extends GenericParser
|
|
|
186
178
|
* Attempt to parse a global incantation invocation.
|
|
187
179
|
*/
|
|
188
180
|
try_parse_global_incantation():
|
|
189
|
-
Recoverable<
|
|
190
181
|
| Ast.IncantationInvocation<GLOBAL>
|
|
191
182
|
| Ast.InvalidInvocation
|
|
192
|
-
|
|
183
|
+
| RecoverableFail
|
|
193
184
|
{
|
|
194
185
|
let init = this.i;
|
|
195
186
|
|
|
196
|
-
this.try_consume("/");
|
|
187
|
+
if (this.try_consume("/") === FAIL) return FAIL;
|
|
197
188
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
if (e instanceof RecoverableFail) {
|
|
203
|
-
this.i = init;
|
|
204
|
-
}
|
|
205
|
-
throw e;
|
|
189
|
+
let incantation = this.try_parse_identifier(GLOBAL_INCANTATIONS);
|
|
190
|
+
if (incantation === FAIL) {
|
|
191
|
+
this.i = init;
|
|
192
|
+
return FAIL;
|
|
206
193
|
}
|
|
207
194
|
|
|
208
195
|
let data = undefined;
|
|
@@ -224,6 +211,7 @@ export class DesmostParser extends GenericParser
|
|
|
224
211
|
|
|
225
212
|
this.consume_spaces();
|
|
226
213
|
|
|
214
|
+
// @ts-expect-error: FIXME
|
|
227
215
|
return {
|
|
228
216
|
kind: Ast.Kind.INCANTATION_INVOCATION,
|
|
229
217
|
incantation,
|
|
@@ -235,23 +223,18 @@ export class DesmostParser extends GenericParser
|
|
|
235
223
|
* Attempt to parse a local incantation invocation.
|
|
236
224
|
*/
|
|
237
225
|
try_parse_local_incantation():
|
|
238
|
-
Recoverable<
|
|
239
226
|
| Ast.IncantationInvocation<LOCAL>
|
|
240
227
|
| Ast.InvalidInvocation
|
|
241
|
-
|
|
228
|
+
| RecoverableFail
|
|
242
229
|
{
|
|
243
230
|
let init = this.i;
|
|
244
231
|
|
|
245
|
-
this.try_consume("/");
|
|
232
|
+
if (this.try_consume("/") === FAIL) return FAIL;
|
|
246
233
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
if (e instanceof RecoverableFail) {
|
|
252
|
-
this.i = init;
|
|
253
|
-
}
|
|
254
|
-
throw e;
|
|
234
|
+
let incantation = this.try_parse_identifier(LOCAL_INCANTATIONS);
|
|
235
|
+
if (incantation === FAIL) {
|
|
236
|
+
this.i = init;
|
|
237
|
+
return FAIL;
|
|
255
238
|
}
|
|
256
239
|
|
|
257
240
|
let arg_raw = undefined;
|
|
@@ -273,6 +256,7 @@ export class DesmostParser extends GenericParser
|
|
|
273
256
|
|
|
274
257
|
this.consume_whitespace();
|
|
275
258
|
|
|
259
|
+
// @ts-expect-error: FIXME
|
|
276
260
|
return {
|
|
277
261
|
kind: Ast.Kind.INCANTATION_INVOCATION,
|
|
278
262
|
incantation,
|
|
@@ -282,23 +266,18 @@ export class DesmostParser extends GenericParser
|
|
|
282
266
|
|
|
283
267
|
try_parse_expr_incantation(): MaybeRecoverable<Ast.Expression>
|
|
284
268
|
{
|
|
285
|
-
// TODO refactor with `backtrack()` helper
|
|
286
269
|
let init = this.i;
|
|
287
270
|
|
|
288
|
-
this.try_consume("/");
|
|
271
|
+
if (this.try_consume("/") === FAIL) return FAIL;
|
|
289
272
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
// TODO maybe flag to user
|
|
296
|
-
this.i = init;
|
|
297
|
-
}
|
|
298
|
-
throw e;
|
|
273
|
+
let incantation = this.try_parse_identifier(EXPR_INCANTATIONS);
|
|
274
|
+
if (incantation === FAIL) {
|
|
275
|
+
// TODO maybe flag to user
|
|
276
|
+
this.i = init;
|
|
277
|
+
return FAIL;
|
|
299
278
|
}
|
|
300
279
|
|
|
301
|
-
let arg_raw = this.parse_incantation_arg(incantation.arg_type);
|
|
280
|
+
let arg_raw = this.parse_incantation_arg((incantation as ArgIncantation<EXPR>).arg_type);
|
|
302
281
|
|
|
303
282
|
let data = {};
|
|
304
283
|
incantation.apply(data, arg_raw);
|
|
@@ -315,30 +294,20 @@ export class DesmostParser extends GenericParser
|
|
|
315
294
|
*/
|
|
316
295
|
try_parse_identifier<Effect extends Incantation.Effect>(
|
|
317
296
|
incantations: Incantation<Effect>[]
|
|
318
|
-
):
|
|
297
|
+
): Incantation<Effect> | RecoverableFail
|
|
319
298
|
{
|
|
320
299
|
for (let incantation of incantations) {
|
|
321
300
|
// yeah the duplication here is a little meh, unfortunately needing `return` means we can't extract it into a helper
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
return incantation;
|
|
325
|
-
}
|
|
326
|
-
catch (e) {
|
|
327
|
-
if (!(e instanceof RecoverableFail)) throw e;
|
|
328
|
-
}
|
|
301
|
+
let r = this.try_consume(incantation.identifier);
|
|
302
|
+
if (r !== FAIL) return incantation;
|
|
329
303
|
|
|
330
304
|
if (incantation.alias != undefined) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return incantation;
|
|
334
|
-
}
|
|
335
|
-
catch (e) {
|
|
336
|
-
if (!(e instanceof RecoverableFail)) throw e;
|
|
337
|
-
}
|
|
305
|
+
let r = this.try_consume(incantation.alias);
|
|
306
|
+
if (r !== FAIL) return incantation;
|
|
338
307
|
}
|
|
339
308
|
}
|
|
340
309
|
|
|
341
|
-
|
|
310
|
+
return FAIL;
|
|
342
311
|
}
|
|
343
312
|
|
|
344
313
|
/**
|
|
@@ -457,9 +426,23 @@ export class DesmostParser extends GenericParser
|
|
|
457
426
|
|
|
458
427
|
if (arg_type === Incantation.ArgType.OBJECT) {
|
|
459
428
|
switch (this.current) {
|
|
460
|
-
case Ctx.STR_1:
|
|
461
|
-
|
|
462
|
-
|
|
429
|
+
case Ctx.STR_1:
|
|
430
|
+
if (top === Ctx.STR_2) break;
|
|
431
|
+
if (top === Ctx.STR_F) break;
|
|
432
|
+
try_pop(Ctx.STR_1) || stack.push(Ctx.STR_1);
|
|
433
|
+
break;
|
|
434
|
+
|
|
435
|
+
case Ctx.STR_2:
|
|
436
|
+
if (top === Ctx.STR_1) break;
|
|
437
|
+
if (top === Ctx.STR_F) break;
|
|
438
|
+
try_pop(Ctx.STR_2) || stack.push(Ctx.STR_2);
|
|
439
|
+
break;
|
|
440
|
+
|
|
441
|
+
case Ctx.STR_F:
|
|
442
|
+
if (top === Ctx.STR_1) break;
|
|
443
|
+
if (top === Ctx.STR_2) break;
|
|
444
|
+
try_pop(Ctx.STR_F) || stack.push(Ctx.STR_F);
|
|
445
|
+
break;
|
|
463
446
|
}
|
|
464
447
|
}
|
|
465
448
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import { FAIL, UnrecoverableError } from "../errors";
|
|
2
|
+
import type { RecoverableFail, Unrecoverable } from "../errors";
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
const IGNORED_CHARACTERS = new Set([
|
|
@@ -58,10 +58,13 @@ export class GenericParser
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Peek a snippet of the upcoming source text (for error messages).
|
|
61
|
+
*
|
|
62
|
+
* Optionally start from the given `idx`.
|
|
61
63
|
*/
|
|
62
|
-
public preview(): string
|
|
64
|
+
public preview(idx?: number): string
|
|
63
65
|
{
|
|
64
|
-
|
|
66
|
+
idx ??= this.i;
|
|
67
|
+
return this.source.slice(idx, idx + 20) + "...";
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
/**
|
|
@@ -75,25 +78,28 @@ export class GenericParser
|
|
|
75
78
|
throw new UnrecoverableError.UnexpectedEnd(error_msg ?? "Unexpected end of input");
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
this
|
|
79
|
-
|
|
80
|
-
// @ts-expect-error: `this.current == undefined` is a true negative
|
|
81
|
-
if (IGNORED_CHARACTERS.has(this.current)) {
|
|
82
|
-
this.advance();
|
|
83
|
-
}
|
|
81
|
+
this.#advance();
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
/**
|
|
87
85
|
* Attempt to advance to the next character, skipping ignored characters.
|
|
86
|
+
*
|
|
87
|
+
* Fails if the parser is the out-of-bounds *before* advancing.
|
|
88
88
|
*/
|
|
89
|
-
protected try_advance():
|
|
89
|
+
protected try_advance(): void | RecoverableFail
|
|
90
|
+
{
|
|
91
|
+
if (this.out_of_bounds()) return FAIL;
|
|
92
|
+
this.#advance();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#advance(): void
|
|
90
96
|
{
|
|
91
|
-
|
|
97
|
+
this.i++;
|
|
98
|
+
|
|
99
|
+
// @ts-expect-error: `this.current == undefined` is a true negative
|
|
100
|
+
if (IGNORED_CHARACTERS.has(this.current)) {
|
|
92
101
|
this.advance();
|
|
93
102
|
}
|
|
94
|
-
catch {
|
|
95
|
-
throw new RecoverableFail();
|
|
96
|
-
}
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
/**
|
|
@@ -107,11 +113,12 @@ export class GenericParser
|
|
|
107
113
|
);
|
|
108
114
|
}
|
|
109
115
|
|
|
116
|
+
let init = this.i;
|
|
110
117
|
let ii = 0;
|
|
111
118
|
|
|
112
119
|
while (this.current === raw[ii]) {
|
|
113
120
|
this.advance(
|
|
114
|
-
`Unexpected end of input while trying to consume: \`${raw}\``
|
|
121
|
+
`Unexpected end of input while trying to consume: \`${raw}\`, at: \`${this.preview(init)}\``
|
|
115
122
|
);
|
|
116
123
|
|
|
117
124
|
ii++;
|
|
@@ -119,28 +126,29 @@ export class GenericParser
|
|
|
119
126
|
}
|
|
120
127
|
|
|
121
128
|
throw new UnrecoverableError.UnexpectedInput(
|
|
122
|
-
error_msg ?? `Expected: \`${raw}\`, but found: \`${this.preview()}\``
|
|
129
|
+
error_msg ?? `Expected: \`${raw}\`, but found: \`${this.preview(init)}\``
|
|
123
130
|
);
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
/**
|
|
127
|
-
* Attempt to consume `raw`, backtracking
|
|
134
|
+
* Attempt to consume `raw`, backtracking if `raw` was not found.
|
|
128
135
|
*/
|
|
129
|
-
protected try_consume(raw: string):
|
|
136
|
+
protected try_consume(raw: string): void | RecoverableFail
|
|
130
137
|
{
|
|
131
138
|
let init = this.i;
|
|
132
139
|
let ii = 0;
|
|
133
140
|
|
|
134
141
|
while (this.current === raw[ii]) {
|
|
135
|
-
this.try_advance();
|
|
136
|
-
|
|
142
|
+
let r = this.try_advance();
|
|
143
|
+
if (r === FAIL) return FAIL;
|
|
137
144
|
|
|
145
|
+
ii++;
|
|
138
146
|
if (ii === raw.length) return;
|
|
139
147
|
if (this.i === this.length) break;
|
|
140
148
|
}
|
|
141
149
|
|
|
142
150
|
this.i = init;
|
|
143
|
-
|
|
151
|
+
return FAIL;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
/**
|
|
@@ -177,15 +185,8 @@ export class GenericParser
|
|
|
177
185
|
|
|
178
186
|
this.consume_spaces();
|
|
179
187
|
|
|
180
|
-
|
|
181
|
-
this.
|
|
182
|
-
|
|
183
|
-
catch (e) {
|
|
184
|
-
if (!(e instanceof RecoverableFail)) throw e;
|
|
185
|
-
|
|
186
|
-
throw new UnrecoverableError.ExcessInput(
|
|
187
|
-
error_msg ?? `Expected end of block, but found: \`${this.preview()}\``
|
|
188
|
-
);
|
|
189
|
-
}
|
|
188
|
+
this.consume("\n",
|
|
189
|
+
error_msg ?? `Expected end of block, but found: \`${this.preview()}\``
|
|
190
|
+
);
|
|
190
191
|
}
|
|
191
192
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../src/compiler/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAuB,MAAM,WAAW,CAAC;AAGrE,OAAO,EAAiB,GAAG,EAAE,MAAM,WAAW,CAAC;AAqB/C,wBAAgB,OAAO,CAErB,MAAM,EAAE,MAAM,CAAC,UAAU,EAGzB,MAAM,EAAE,MAAM,EAGd,OAAO,CAAC,EAAE,cAAc,GACvB,IAAI,GAAG,YAAY,CAsFrB;AAGD,UAAU,YAAY;IAEpB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,GAAG,EAAE,CAAC;CACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compile.js","sourceRoot":"","sources":["../../../src/compiler/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAExF,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAoB/C,MAAM,UAAU,OAAO,CAErB,MAAyB,EAGzB,MAAc,EAGd,OAAwB;IAGxB,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,CAAC,4EAA4E,CAAC,CAAC;QAC5F,OAAO;IACT,CAAC;IAED,IAAI,MAAM,IAAI,SAAS,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QACzE,OAAO;IACT,CAAC;IAED,IAAI,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;IAC/B,IAAI,GAAG,GAAG,EAAE,CAAC;IAEb,IAAI,IAAI,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;I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GjC,QAAQ,OAAO,CAAC,MAAM,EAAE,CAAC;QACvB,KAAK,OAAO;YACV,MAAM,KAAK,CAAC;QAEd,KAAK,UAAU;YACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACrB,MAAM;QAER,SAAS,QAAQ,OAAO,CAAC,YAAY,EAAE,CAAC;YACtC,KAAK,KAAK,CAAC;YACX,KAAK,OAAO;gBACV,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YAEtC;gBACE,MAAM,CAAC,aAAa,CAAC;oBACnB,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC;iBACnC,CAAC,CAAC;gBACH,MAAM;QACV,CAAC;IACH,CAAC;AACH,CAAC;AAGD,SAAS,YAAY,CACnB,CAAqB,EACrB,OAAiC;IAGjC,IAAI,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAClC,IAAI,GAAG,GAAG,CAAC,MAAM,KAAK,EAAE,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAE9D,OAAO,GAAG,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;AAElD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/compiler/options.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAW7B,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;IASzC,YAAY,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAA;IAKzC,YAAY,CAAC,EAAE,MAAM,CAAA;IAOrB,eAAe,CAAC,EAAE,OAAO,CAAA;IAOzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAO5B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAOhC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAMD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,CAe1G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/compiler/options.ts"],"names":[],"mappings":"AA6DA,MAAM,UAAU,mBAAmB,CAAC,OAA4C;IAE9E,OAAO,KAAK,EAAE,CAAC;IAEf,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC;IAC7B,OAAO,CAAC,YAAY,KAAK,QAAQ,CAAC;IAClC,OAAO,CAAC,YAAY,KAAK,mBAAmB,CAAC;IAE7C,OAAO,CAAC,eAAe,KAAK,KAAK,CAAC;IAClC,OAAO,CAAC,kBAAkB,KAAK,KAAK,CAAC;IACrC,OAAO,CAAC,sBAAsB,KAAK,KAAK,CAAC;IAEzC,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC;IAExB,OAAO,OAAmC,CAAC;AAC7C,CAAC"}
|
package/dist/src/desmos.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desmos.d.ts","sourceRoot":"","sources":["../../src/desmos.ts"],"names":[],"mappings":"AAIA,oBAAY,YAAY;IAEtB,GAAG,YAAe;IAClB,IAAI,YAAc;IAClB,KAAK,YAAa;IAClB,MAAM,YAAY;IAClB,MAAM,YAAY;IAClB,KAAK,YAAa;CACnB"}
|
package/dist/src/desmos.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desmos.js","sourceRoot":"","sources":["../../src/desmos.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IAEtB,+BAAkB,CAAA;IAClB,gCAAkB,CAAA;IAClB,iCAAkB,CAAA;IAClB,kCAAkB,CAAA;IAClB,kCAAkB,CAAA;IAClB,iCAAkB,CAAA;AACpB,CAAC,EARW,YAAY,KAAZ,YAAY,QAQvB"}
|
package/dist/src/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAKA,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,yBAAiB,kBAAkB,CACnC;IAEE,MAAa,aAAc,SAAQ,kBAAkB;KAAG;IAGxD,MAAa,YAAa,SAAQ,kBAAkB;KAAG;IAGvD,MAAa,eAAgB,SAAQ,kBAAkB;KAAG;IAG1D,MAAa,WAAY,SAAQ,kBAAkB;KAAG;IAItD,MAAa,kBAAmB,SAAQ,kBAAkB;KAAG;IAG7D,MAAa,eAAgB,SAAQ,kBAAkB;KAAG;CAC3D;AAID,qBAAa,eAAe;CAAG;AAI/B,MAAM,MAAM,WAAW,CAAC,MAAM,IAAI,MAAM,IAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,MAAM,CAAA;CAAE,CAAA,CAAC;AAGzF,MAAM,MAAM,aAAa,CAAC,MAAM,IAAI,MAAM,IAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,MAAM,CAAA;CAAE,CAAA,CAAC;AAO3F,MAAM,MAAM,gBAAgB,CAAC,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/src/errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,WAAiB,kBAAkB;IAGjC,MAAa,aAAc,SAAQ,kBAAkB;KAAG;IAA3C,mBAAA,aAAa,gBAA8B,CAAA;IAGxD,MAAa,YAAa,SAAQ,kBAAkB;KAAG;IAA1C,mBAAA,YAAY,eAA8B,CAAA;IAGvD,MAAa,eAAgB,SAAQ,kBAAkB;KAAG;IAA7C,mBAAA,eAAe,kBAA8B,CAAA;IAG1D,MAAa,WAAY,SAAQ,kBAAkB;KAAG;IAAzC,mBAAA,WAAW,cAA8B,CAAA;IAItD,MAAa,kBAAmB,SAAQ,kBAAkB;KAAG;IAAhD,mBAAA,kBAAkB,qBAA8B,CAAA;IAG7D,MAAa,eAAgB,SAAQ,kBAAkB;KAAG;IAA7C,mBAAA,eAAe,kBAA8B,CAAA;AAC5D,CAAC,EApBgB,kBAAkB,KAAlB,kBAAkB,QAoBlC;AAID,MAAM,OAAO,eAAe;CAAG;AAO4D,CAAC"}
|
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.internal.d.ts","sourceRoot":"","sources":["../../src/index.internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.internal.js","sourceRoot":"","sources":["../../src/index.internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/magic/expr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAM3D,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,EAInD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/magic/expr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAa,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGzC,MAAM,CAAC,MAAM,iBAAiB,GAC9B;IACE,IAAI,gBAAgB,EAAE;IACtB,IAAI,eAAe,EAAE;CACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"latex.d.ts","sourceRoot":"","sources":["../../../../src/magic/expr/latex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGxE,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,IAAI,CAAC;IAExD,SAAkB,WAAW,+EACkD;IAE/E,SAAkB,UAAU,WAAY;IACxC,SAAkB,YAAY,QAAO;IACrC,SAAkB,QAAQ,6BAAgC;IAE1D,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAKxD;IAEQ,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG1C;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"latex.js","sourceRoot":"","sources":["../../../../src/magic/expr/latex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAa,MAAM,gBAAgB,CAAC;AAGxE,MAAM,OAAO,gBAAiB,SAAQ,cAAoB;IAEtC,WAAW,GACzB,2EAA2E,CAAA;IAE7D,UAAU,GAAK,OAAO,CAAA;IACtB,YAAY,GAAG,IAAI,CAAA;IACnB,QAAQ,GAAO,WAAW,CAAC,OAAO,CAAC,KAAK,CAAA;IAE1D,KAAK,CAAC,MAA8B,EAAE,IAAY;QAEhD,MAAM,CAAC,IAAI,GAAG,YAAY,CAAC;QAE3B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAEQ,YAAY,CAAC,IAAY;QAEhC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/magic/expr/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGxE,qBAAa,eAAgB,SAAQ,cAAc,CAAC,IAAI,CAAC;IAEvD,SAAkB,WAAW,yEACkC;IAE/D,SAAkB,UAAU,UAAW;IACvC,SAAkB,YAAY,QAAO;IACrC,SAAkB,QAAQ,8BAAiC;IAElD,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,eAAe,EAAE,IAAI,EAAE,MAAM,QAK1D;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/magic/expr/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAa,MAAM,gBAAgB,CAAC;AAGxE,MAAM,OAAO,eAAgB,SAAQ,cAAoB;IAErC,WAAW,GACzB,2DAA2D,CAAA;IAE7C,UAAU,GAAK,MAAM,CAAA;IACrB,YAAY,GAAG,IAAI,CAAA;IACnB,QAAQ,GAAO,WAAW,CAAC,OAAO,CAAC,MAAM,CAAA;IAElD,KAAK,CAAC,MAA8B,EAAE,IAAY;QAEzD,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;QAErB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dark-mode.d.ts","sourceRoot":"","sources":["../../../../src/magic/global/dark-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG1D,qBAAa,mBAAoB,SAAQ,WAAW,CAAC,MAAM,CAAC;IAE1D,SAAkB,WAAW,qEACwC;IAErE,SAAkB,UAAU,UAAS;IAErC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,QAK9B;CACF"}
|