solve-engine 1.1.1 → 1.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/{EngineError-B61GS1jp.d.cts → EngineError-CNA_rHY-.d.cts} +6 -0
- package/dist/{EngineError-B61GS1jp.d.ts → EngineError-CNA_rHY-.d.ts} +6 -0
- package/dist/{Lexer-BOs7euZe.d.cts → Lexer-B4C1qHXu.d.cts} +1 -1
- package/dist/{Lexer-CSI_lwbW.d.ts → Lexer-DKMlj7Sy.d.ts} +1 -1
- package/dist/{PackageCompatibility-B-7rK1TD.d.cts → PackageCompatibility-B6NX9IaN.d.cts} +1 -1
- package/dist/{PackageCompatibility-Dh59eF-X.d.ts → PackageCompatibility-Ceg5XdAp.d.ts} +1 -1
- package/dist/{PackageRegistry-BHWJP83F.d.cts → PackageRegistry-DnJYVw9G.d.cts} +55 -8
- package/dist/{PackageRegistry-_8rDlvxI.d.ts → PackageRegistry-DrCPQNyy.d.ts} +55 -8
- package/dist/{Parselet-BBT8riYh.d.ts → Parselet-Bhf7d0_W.d.ts} +2 -2
- package/dist/{Parselet-BHcgK9S7.d.cts → Parselet-Cv7S7KRt.d.cts} +2 -2
- package/dist/{ScopeManager-CxA24W5n.d.ts → ScopeManager-Bzq87GfA.d.ts} +10 -3
- package/dist/{ScopeManager-8vf02dwj.d.cts → ScopeManager-DRDBVfan.d.cts} +10 -3
- package/dist/{Token-B1hdkedD.d.cts → Token-CbP_OutD.d.cts} +9 -0
- package/dist/{Token-B1hdkedD.d.ts → Token-CbP_OutD.d.ts} +9 -0
- package/dist/{TokenNormalizer-C6VzZgHa.d.ts → TokenNormalizer-DCWdZjGz.d.ts} +1 -1
- package/dist/{TokenNormalizer-DRc1Js1V.d.cts → TokenNormalizer-DnlL7_8c.d.cts} +1 -1
- package/dist/{VMCheckpoints-MK--EBH2.d.ts → VMCheckpoints-C6c17Hbo.d.ts} +2 -2
- package/dist/{VMCheckpoints-ELYqITdF.d.cts → VMCheckpoints-dZxSMGHG.d.cts} +2 -2
- package/dist/{Value-BUi1RA3S.d.cts → Value-DZNQ_PU7.d.cts} +32 -5
- package/dist/{Value-BUi1RA3S.d.ts → Value-DZNQ_PU7.d.ts} +32 -5
- package/dist/{WorkerError-_-RkoQ5P.d.ts → WorkerError-B7t7R2-m.d.ts} +1 -1
- package/dist/{WorkerError-gzmaopj2.d.cts → WorkerError-Djd7GGGa.d.cts} +1 -1
- package/dist/{chunk-SSV46KFA.cjs → chunk-4K5W7EH2.cjs} +6 -6
- package/dist/{chunk-SSV46KFA.cjs.map → chunk-4K5W7EH2.cjs.map} +1 -1
- package/dist/{chunk-267JPOTF.js → chunk-5EFKSKMA.js} +11 -4
- package/dist/chunk-5EFKSKMA.js.map +1 -0
- package/dist/{chunk-536WPM2V.cjs → chunk-7AXJNQMF.cjs} +17 -3
- package/dist/chunk-7AXJNQMF.cjs.map +1 -0
- package/dist/{chunk-LHZ6VOA7.js → chunk-7JM3F4KL.js} +39 -8
- package/dist/chunk-7JM3F4KL.js.map +1 -0
- package/dist/{chunk-N5NNW4VG.cjs → chunk-7USV76HV.cjs} +6 -6
- package/dist/{chunk-N5NNW4VG.cjs.map → chunk-7USV76HV.cjs.map} +1 -1
- package/dist/{chunk-HIQ5HSZL.cjs → chunk-A2DZ5BEJ.cjs} +53 -46
- package/dist/{chunk-HIQ5HSZL.cjs.map → chunk-A2DZ5BEJ.cjs.map} +1 -1
- package/dist/{chunk-CKQMXMHR.cjs → chunk-AKNGX4TZ.cjs} +28 -11
- package/dist/chunk-AKNGX4TZ.cjs.map +1 -0
- package/dist/{chunk-I4GAWIPW.js → chunk-AOH6UR2L.js} +6 -6
- package/dist/{chunk-I4GAWIPW.js.map → chunk-AOH6UR2L.js.map} +1 -1
- package/dist/{chunk-T6ZYQJ63.cjs → chunk-BESTLPRK.cjs} +326 -214
- package/dist/chunk-BESTLPRK.cjs.map +1 -0
- package/dist/{chunk-Z7XGGLI2.js → chunk-BSPXMGIS.js} +3 -3
- package/dist/{chunk-Z7XGGLI2.js.map → chunk-BSPXMGIS.js.map} +1 -1
- package/dist/{chunk-SRGQ72IR.cjs → chunk-C2OMO3WN.cjs} +376 -370
- package/dist/chunk-C2OMO3WN.cjs.map +1 -0
- package/dist/{chunk-GLA4JXBO.js → chunk-CSDQMDU2.js} +4 -4
- package/dist/{chunk-GLA4JXBO.js.map → chunk-CSDQMDU2.js.map} +1 -1
- package/dist/{chunk-7KYSUDQO.js → chunk-F4UB4XIL.js} +4 -4
- package/dist/{chunk-7KYSUDQO.js.map → chunk-F4UB4XIL.js.map} +1 -1
- package/dist/{chunk-WXEHD6TT.js → chunk-FE4RC37D.js} +15 -9
- package/dist/chunk-FE4RC37D.js.map +1 -0
- package/dist/{chunk-7ZX6B7SY.cjs → chunk-FR7RNOPT.cjs} +637 -556
- package/dist/chunk-FR7RNOPT.cjs.map +1 -0
- package/dist/{chunk-QFTDTX6K.cjs → chunk-G2YPPLGX.cjs} +29 -2
- package/dist/chunk-G2YPPLGX.cjs.map +1 -0
- package/dist/{chunk-HVRVSI2Z.cjs → chunk-GDEU72RG.cjs} +86 -86
- package/dist/{chunk-HVRVSI2Z.cjs.map → chunk-GDEU72RG.cjs.map} +1 -1
- package/dist/{chunk-MN3LHRGV.cjs → chunk-HKTQCQ4Z.cjs} +860 -489
- package/dist/chunk-HKTQCQ4Z.cjs.map +1 -0
- package/dist/{chunk-XA4CKRML.cjs → chunk-HWHU642X.cjs} +2 -2
- package/dist/{chunk-XA4CKRML.cjs.map → chunk-HWHU642X.cjs.map} +1 -1
- package/dist/{chunk-CUR2WLI4.cjs → chunk-ICEKS6YC.cjs} +11 -11
- package/dist/{chunk-CUR2WLI4.cjs.map → chunk-ICEKS6YC.cjs.map} +1 -1
- package/dist/{chunk-NNZAEUDW.js → chunk-IJGOFP2J.js} +138 -26
- package/dist/chunk-IJGOFP2J.js.map +1 -0
- package/dist/{chunk-ENKKJYD3.js → chunk-IQJGDZOP.js} +4 -4
- package/dist/{chunk-ENKKJYD3.js.map → chunk-IQJGDZOP.js.map} +1 -1
- package/dist/{chunk-2TZKENDH.cjs → chunk-IT74O4BE.cjs} +15 -7
- package/dist/chunk-IT74O4BE.cjs.map +1 -0
- package/dist/{chunk-ZVTWQLK4.cjs → chunk-KXDQKVNX.cjs} +10 -10
- package/dist/{chunk-ZVTWQLK4.cjs.map → chunk-KXDQKVNX.cjs.map} +1 -1
- package/dist/{chunk-BYJBUL7U.js → chunk-L5YHV6BQ.js} +5 -5
- package/dist/{chunk-BYJBUL7U.js.map → chunk-L5YHV6BQ.js.map} +1 -1
- package/dist/{chunk-E23GZEWL.cjs → chunk-LO7HU5WB.cjs} +8 -8
- package/dist/{chunk-E23GZEWL.cjs.map → chunk-LO7HU5WB.cjs.map} +1 -1
- package/dist/{chunk-UO6BUV6K.js → chunk-LSALB3IN.js} +17 -3
- package/dist/chunk-LSALB3IN.js.map +1 -0
- package/dist/{chunk-J45BCEZ4.cjs → chunk-MI7OTUHL.cjs} +27 -27
- package/dist/{chunk-J45BCEZ4.cjs.map → chunk-MI7OTUHL.cjs.map} +1 -1
- package/dist/{chunk-B4HBEFTB.cjs → chunk-MIGXCBXT.cjs} +8 -2
- package/dist/chunk-MIGXCBXT.cjs.map +1 -0
- package/dist/{chunk-ERCOHGXD.js → chunk-N7OA4WPJ.js} +8 -2
- package/dist/chunk-N7OA4WPJ.js.map +1 -0
- package/dist/{chunk-4D6NIHE2.js → chunk-NAWZATKT.js} +29 -2
- package/dist/chunk-NAWZATKT.js.map +1 -0
- package/dist/{chunk-JG6ZJ2WU.js → chunk-ORM7CHYZ.js} +23 -5
- package/dist/chunk-ORM7CHYZ.js.map +1 -0
- package/dist/{chunk-B7NLZMQ3.cjs → chunk-PCZVMMWU.cjs} +8 -8
- package/dist/{chunk-B7NLZMQ3.cjs.map → chunk-PCZVMMWU.cjs.map} +1 -1
- package/dist/{chunk-DLEBSLF4.js → chunk-RNKDIXDV.js} +4 -4
- package/dist/{chunk-DLEBSLF4.js.map → chunk-RNKDIXDV.js.map} +1 -1
- package/dist/{chunk-YRIKITGF.cjs → chunk-TC6BTUSU.cjs} +55 -24
- package/dist/chunk-TC6BTUSU.cjs.map +1 -0
- package/dist/{chunk-4HQKTMWG.js → chunk-TPOK3UNI.js} +387 -17
- package/dist/chunk-TPOK3UNI.js.map +1 -0
- package/dist/{chunk-CCBZZQAE.js → chunk-UF6JG5SG.js} +2 -2
- package/dist/{chunk-CCBZZQAE.js.map → chunk-UF6JG5SG.js.map} +1 -1
- package/dist/{chunk-NKW7LKYU.js → chunk-WMQRJTAO.js} +88 -7
- package/dist/chunk-WMQRJTAO.js.map +1 -0
- package/dist/{chunk-ZMW6NU2K.cjs → chunk-YJHY7CMN.cjs} +95 -77
- package/dist/chunk-YJHY7CMN.cjs.map +1 -0
- package/dist/{chunk-3OWCDIPN.js → chunk-YNIWOYW6.js} +21 -4
- package/dist/chunk-YNIWOYW6.js.map +1 -0
- package/dist/{chunk-WWQEY7BV.js → chunk-ZN6YYPIW.js} +3 -3
- package/dist/{chunk-WWQEY7BV.js.map → chunk-ZN6YYPIW.js.map} +1 -1
- package/dist/{chunk-NNQ2TYDF.js → chunk-ZNFFTYWH.js} +11 -5
- package/dist/chunk-ZNFFTYWH.js.map +1 -0
- package/dist/constants.cjs +5 -5
- package/dist/constants.js +2 -2
- package/dist/engine.cjs +33 -33
- package/dist/engine.d.cts +27 -11
- package/dist/engine.d.ts +27 -11
- package/dist/engine.js +20 -20
- package/dist/errors.cjs +26 -26
- package/dist/errors.d.cts +3 -3
- package/dist/errors.d.ts +3 -3
- package/dist/errors.js +2 -2
- package/dist/format.cjs +7 -7
- package/dist/format.d.cts +1 -1
- package/dist/format.d.ts +1 -1
- package/dist/format.js +4 -4
- package/dist/index.cjs +48 -48
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +21 -21
- package/dist/language.cjs +7 -7
- package/dist/language.d.cts +10 -10
- package/dist/language.d.ts +10 -10
- package/dist/language.js +2 -2
- package/dist/lexer.cjs +16 -16
- package/dist/lexer.d.cts +3 -3
- package/dist/lexer.d.ts +3 -3
- package/dist/lexer.js +5 -5
- package/dist/normalizer.cjs +10 -10
- package/dist/normalizer.d.cts +3 -3
- package/dist/normalizer.d.ts +3 -3
- package/dist/normalizer.js +4 -4
- package/dist/packages.cjs +40 -36
- package/dist/packages.d.cts +37 -11
- package/dist/packages.d.ts +37 -11
- package/dist/packages.js +11 -11
- package/dist/parser.cjs +13 -13
- package/dist/parser.d.cts +4 -4
- package/dist/parser.d.ts +4 -4
- package/dist/parser.js +5 -5
- package/dist/{pipeline-DCd5M6Gk.d.ts → pipeline-D-PS9gVw.d.ts} +3 -3
- package/dist/{pipeline-CtfJtPQc.d.cts → pipeline-DtSBJ8TS.d.cts} +3 -3
- package/dist/resolvers.d.cts +2 -2
- package/dist/resolvers.d.ts +2 -2
- package/dist/testing.cjs +26 -26
- package/dist/testing.d.cts +10 -10
- package/dist/testing.d.ts +10 -10
- package/dist/testing.js +19 -19
- package/dist/uom.cjs +8 -8
- package/dist/uom.d.cts +2 -2
- package/dist/uom.d.ts +2 -2
- package/dist/uom.js +4 -4
- package/dist/vm.cjs +32 -32
- package/dist/vm.d.cts +7 -7
- package/dist/vm.d.ts +7 -7
- package/dist/vm.js +7 -7
- package/dist/worker.cjs +38 -38
- package/dist/worker.d.cts +10 -10
- package/dist/worker.d.ts +10 -10
- package/dist/worker.js +20 -20
- package/package.json +1 -1
- package/dist/chunk-267JPOTF.js.map +0 -1
- package/dist/chunk-2TZKENDH.cjs.map +0 -1
- package/dist/chunk-3OWCDIPN.js.map +0 -1
- package/dist/chunk-4D6NIHE2.js.map +0 -1
- package/dist/chunk-4HQKTMWG.js.map +0 -1
- package/dist/chunk-536WPM2V.cjs.map +0 -1
- package/dist/chunk-7ZX6B7SY.cjs.map +0 -1
- package/dist/chunk-B4HBEFTB.cjs.map +0 -1
- package/dist/chunk-CKQMXMHR.cjs.map +0 -1
- package/dist/chunk-ERCOHGXD.js.map +0 -1
- package/dist/chunk-JG6ZJ2WU.js.map +0 -1
- package/dist/chunk-LHZ6VOA7.js.map +0 -1
- package/dist/chunk-MN3LHRGV.cjs.map +0 -1
- package/dist/chunk-NKW7LKYU.js.map +0 -1
- package/dist/chunk-NNQ2TYDF.js.map +0 -1
- package/dist/chunk-NNZAEUDW.js.map +0 -1
- package/dist/chunk-QFTDTX6K.cjs.map +0 -1
- package/dist/chunk-SRGQ72IR.cjs.map +0 -1
- package/dist/chunk-T6ZYQJ63.cjs.map +0 -1
- package/dist/chunk-UO6BUV6K.js.map +0 -1
- package/dist/chunk-WXEHD6TT.js.map +0 -1
- package/dist/chunk-YRIKITGF.cjs.map +0 -1
- package/dist/chunk-ZMW6NU2K.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./chunk-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
require('./chunk-TC6BTUSU.cjs');
|
|
4
|
+
var chunkBESTLPRK_cjs = require('./chunk-BESTLPRK.cjs');
|
|
5
|
+
var chunkGDEU72RG_cjs = require('./chunk-GDEU72RG.cjs');
|
|
6
6
|
require('./chunk-NGBBNL4K.cjs');
|
|
7
7
|
require('./chunk-X6K3HUOY.cjs');
|
|
8
8
|
require('./chunk-L2TE7PMO.cjs');
|
|
9
9
|
require('./chunk-ENRIK36Q.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-C2OMO3WN.cjs');
|
|
11
|
+
require('./chunk-HWHU642X.cjs');
|
|
12
|
+
require('./chunk-AKNGX4TZ.cjs');
|
|
13
13
|
require('./chunk-N7FNVFXW.cjs');
|
|
14
|
-
require('./chunk-
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
14
|
+
require('./chunk-HKTQCQ4Z.cjs');
|
|
15
|
+
var chunkMI7OTUHL_cjs = require('./chunk-MI7OTUHL.cjs');
|
|
16
|
+
require('./chunk-ICEKS6YC.cjs');
|
|
17
17
|
require('./chunk-ADBA3XBE.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-4K5W7EH2.cjs');
|
|
19
19
|
require('./chunk-Z2XP767T.cjs');
|
|
20
|
-
var
|
|
20
|
+
var chunkFR7RNOPT_cjs = require('./chunk-FR7RNOPT.cjs');
|
|
21
21
|
var chunkFEAIOR7N_cjs = require('./chunk-FEAIOR7N.cjs');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-KXDQKVNX.cjs');
|
|
23
23
|
require('./chunk-XIYYHA65.cjs');
|
|
24
24
|
require('./chunk-VEKIWQ3F.cjs');
|
|
25
25
|
require('./chunk-ALYRJ72W.cjs');
|
|
26
|
-
require('./chunk-
|
|
27
|
-
var
|
|
26
|
+
require('./chunk-A2DZ5BEJ.cjs');
|
|
27
|
+
var chunkIT74O4BE_cjs = require('./chunk-IT74O4BE.cjs');
|
|
28
28
|
require('./chunk-EJ3ILXX6.cjs');
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
require('./chunk-
|
|
32
|
-
require('./chunk-
|
|
33
|
-
require('./chunk-
|
|
29
|
+
var chunkLO7HU5WB_cjs = require('./chunk-LO7HU5WB.cjs');
|
|
30
|
+
var chunk7USV76HV_cjs = require('./chunk-7USV76HV.cjs');
|
|
31
|
+
require('./chunk-7AXJNQMF.cjs');
|
|
32
|
+
require('./chunk-YJHY7CMN.cjs');
|
|
33
|
+
require('./chunk-G2YPPLGX.cjs');
|
|
34
34
|
require('./chunk-OUHT5Z36.cjs');
|
|
35
35
|
require('./chunk-AQNHHJMJ.cjs');
|
|
36
36
|
require('./chunk-AMOJYLG2.cjs');
|
|
37
|
-
var
|
|
37
|
+
var chunkMIGXCBXT_cjs = require('./chunk-MIGXCBXT.cjs');
|
|
38
38
|
require('./chunk-B7LXJ6LC.cjs');
|
|
39
39
|
|
|
40
40
|
// src/api/PackageRegistry.ts
|
|
41
41
|
var PackageRegistry = class {
|
|
42
42
|
constructor() {
|
|
43
|
-
this.Value =
|
|
43
|
+
this.Value = chunkIT74O4BE_cjs.Value;
|
|
44
44
|
}
|
|
45
45
|
registerPrefixParselet(tokenType, parselet) {
|
|
46
|
-
|
|
46
|
+
chunkGDEU72RG_cjs.sharedParseletRegistry.registerPrefix(tokenType, parselet);
|
|
47
47
|
}
|
|
48
48
|
registerInfixParselet(tokenType, parselet) {
|
|
49
|
-
|
|
49
|
+
chunkGDEU72RG_cjs.sharedParseletRegistry.registerInfix(tokenType, parselet);
|
|
50
50
|
}
|
|
51
51
|
registerVariableSource(source) {
|
|
52
52
|
chunkFEAIOR7N_cjs.sharedVariableResolver.registerSource(source);
|
|
53
53
|
}
|
|
54
54
|
registerPackage(pkg) {
|
|
55
|
-
|
|
55
|
+
chunkBESTLPRK_cjs.assertEngineVersionCompatible(pkg);
|
|
56
56
|
if (pkg.lexerVocabulary) {
|
|
57
|
-
|
|
57
|
+
chunk7USV76HV_cjs.sharedLexer.registerVocabulary(pkg.lexerVocabulary);
|
|
58
58
|
}
|
|
59
59
|
if (pkg.prefixParselets) {
|
|
60
60
|
for (const pp of pkg.prefixParselets) {
|
|
@@ -134,7 +134,7 @@ function coerceArgument(value, arg, fnName) {
|
|
|
134
134
|
if (value.type === 10 /* Boolean */) return value.value;
|
|
135
135
|
break;
|
|
136
136
|
}
|
|
137
|
-
throw
|
|
137
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.execution({
|
|
138
138
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_ARGUMENT_TYPE,
|
|
139
139
|
message: `${fnName}() expects "${arg.name}" to be a ${arg.type}, but was given ${describeValueType(value)}`,
|
|
140
140
|
expected: `a ${arg.type}`,
|
|
@@ -145,16 +145,16 @@ function coerceArgument(value, arg, fnName) {
|
|
|
145
145
|
function wrapReturn(result, returns, fnName) {
|
|
146
146
|
switch (returns) {
|
|
147
147
|
case "number":
|
|
148
|
-
if (typeof result === "number") return
|
|
148
|
+
if (typeof result === "number") return chunkIT74O4BE_cjs.numberValue(result);
|
|
149
149
|
break;
|
|
150
150
|
case "string":
|
|
151
|
-
if (typeof result === "string") return
|
|
151
|
+
if (typeof result === "string") return chunkIT74O4BE_cjs.stringValue(result);
|
|
152
152
|
break;
|
|
153
153
|
case "boolean":
|
|
154
|
-
if (typeof result === "boolean") return
|
|
154
|
+
if (typeof result === "boolean") return chunkIT74O4BE_cjs.boolValue(result);
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
|
-
throw
|
|
157
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.internal({
|
|
158
158
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_RETURN_TYPE,
|
|
159
159
|
message: `${fnName}() is declared to return a ${returns}, but its implementation returned ${typeof result}`,
|
|
160
160
|
expected: `a ${returns}`,
|
|
@@ -172,10 +172,10 @@ var DefinedFunctionParselet = class {
|
|
|
172
172
|
parser.consume("LPAREN");
|
|
173
173
|
let argCount = 0;
|
|
174
174
|
if (parser.peek()?.type !== "RPAREN") {
|
|
175
|
-
parser.parseExpression(
|
|
175
|
+
parser.parseExpression(chunkMI7OTUHL_cjs.BindingPower.Lowest, builder);
|
|
176
176
|
argCount++;
|
|
177
177
|
while (parser.match("COMMA")) {
|
|
178
|
-
parser.parseExpression(
|
|
178
|
+
parser.parseExpression(chunkMI7OTUHL_cjs.BindingPower.Lowest, builder);
|
|
179
179
|
argCount++;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
@@ -189,7 +189,7 @@ function makeHandler(spec) {
|
|
|
189
189
|
const arity = spec.args.length;
|
|
190
190
|
return (args) => {
|
|
191
191
|
if (args.length !== arity) {
|
|
192
|
-
throw
|
|
192
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.execution({
|
|
193
193
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_ARITY_MISMATCH,
|
|
194
194
|
message: `${spec.name}() takes ${plural(arity)}, but was given ${args.length === 0 ? "none" : plural(args.length)}`,
|
|
195
195
|
expected: plural(arity),
|
|
@@ -207,7 +207,7 @@ function makeHandler(spec) {
|
|
|
207
207
|
}
|
|
208
208
|
function validateSpec(spec) {
|
|
209
209
|
if (typeof spec?.name !== "string" || !NAME_PATTERN.test(spec.name)) {
|
|
210
|
-
throw
|
|
210
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.config({
|
|
211
211
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_INVALID_NAME,
|
|
212
212
|
message: `defineFunction: name must be a single identifier, got ${JSON.stringify(spec?.name)}`,
|
|
213
213
|
suggestion: 'e.g. "vat" or "net_price"',
|
|
@@ -215,7 +215,7 @@ function validateSpec(spec) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
if (!Array.isArray(spec.args)) {
|
|
218
|
-
throw
|
|
218
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.config({
|
|
219
219
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_INVALID_SPEC,
|
|
220
220
|
message: `defineFunction: "${spec.name}" args must be an array`,
|
|
221
221
|
context: { name: spec.name }
|
|
@@ -223,14 +223,14 @@ function validateSpec(spec) {
|
|
|
223
223
|
}
|
|
224
224
|
for (const arg of spec.args) {
|
|
225
225
|
if (typeof arg?.name !== "string" || arg.name.length === 0) {
|
|
226
|
-
throw
|
|
226
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.config({
|
|
227
227
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_INVALID_SPEC,
|
|
228
228
|
message: `defineFunction: "${spec.name}" has an argument with no name`,
|
|
229
229
|
context: { name: spec.name }
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
if (!SUPPORTED_TYPES.has(arg.type)) {
|
|
233
|
-
throw
|
|
233
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.config({
|
|
234
234
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_INVALID_SPEC,
|
|
235
235
|
message: `defineFunction: "${spec.name}" argument "${arg.name}" has unsupported type ${JSON.stringify(arg.type)}`,
|
|
236
236
|
suggestion: "supported argument types are number, string, boolean",
|
|
@@ -239,7 +239,7 @@ function validateSpec(spec) {
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
if (!SUPPORTED_TYPES.has(spec.returns)) {
|
|
242
|
-
throw
|
|
242
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.config({
|
|
243
243
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_INVALID_SPEC,
|
|
244
244
|
message: `defineFunction: "${spec.name}" has unsupported return type ${JSON.stringify(spec.returns)}`,
|
|
245
245
|
suggestion: "supported return types are number, string, boolean",
|
|
@@ -247,7 +247,7 @@ function validateSpec(spec) {
|
|
|
247
247
|
});
|
|
248
248
|
}
|
|
249
249
|
if (typeof spec.call !== "function") {
|
|
250
|
-
throw
|
|
250
|
+
throw chunkMIGXCBXT_cjs.ErrorFactory.config({
|
|
251
251
|
code: DefineFunctionErrorCodes.DEFINE_FUNCTION_INVALID_SPEC,
|
|
252
252
|
message: `defineFunction: "${spec.name}" is missing a call implementation`,
|
|
253
253
|
context: { name: spec.name }
|
|
@@ -258,7 +258,7 @@ function defineFunction(spec) {
|
|
|
258
258
|
validateSpec(spec);
|
|
259
259
|
const name = spec.name;
|
|
260
260
|
const tokenType = `DEFINE_FN_${name.toUpperCase()}`;
|
|
261
|
-
const index =
|
|
261
|
+
const index = chunkFR7RNOPT_cjs.allocatePluginFunctionIndex();
|
|
262
262
|
return {
|
|
263
263
|
name: `solve-fn-${name}`,
|
|
264
264
|
lexerVocabulary: {
|
|
@@ -277,35 +277,35 @@ function defineFunction(spec) {
|
|
|
277
277
|
|
|
278
278
|
Object.defineProperty(exports, "ExpressionEngine", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkBESTLPRK_cjs.ExpressionEngine; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "SNAPSHOT_FORMAT", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkBESTLPRK_cjs.SNAPSHOT_FORMAT; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "SNAPSHOT_VERSION", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkBESTLPRK_cjs.SNAPSHOT_VERSION; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "SnapshotErrorCodes", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkBESTLPRK_cjs.SnapshotErrorCodes; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "assertEngineVersionCompatible", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkBESTLPRK_cjs.assertEngineVersionCompatible; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "checkEngineVersionCompatibility", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkBESTLPRK_cjs.checkEngineVersionCompatibility; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "checkPackageCompatibility", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkBESTLPRK_cjs.checkPackageCompatibility; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "ENGINE_VERSION", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkLO7HU5WB_cjs.ENGINE_VERSION; }
|
|
309
309
|
});
|
|
310
310
|
exports.DefineFunctionErrorCodes = DefineFunctionErrorCodes;
|
|
311
311
|
exports.PackageRegistry = PackageRegistry;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { I as IEnginePackage } from './PackageRegistry-
|
|
2
|
-
export { a as EngineRestoreOptions, b as EngineSnapshot, c as EvalResults, d as Explanation, e as ExplanationStep, E as ExpressionEngine, f as IPackageRegistry, L as LineEvaluation, P as PackageRegistry, S as SNAPSHOT_FORMAT, g as SNAPSHOT_VERSION, h as SerializedAnonymousBody, i as SerializedBytecode, j as SerializedDecimal, k as SerializedLineCacheEntry, l as SerializedNumber, m as SerializedRational, n as SerializedUserFunction, o as SerializedValue, p as SnapshotErrorCodes, q as packageRegistry } from './PackageRegistry-
|
|
3
|
-
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-
|
|
1
|
+
import { I as IEnginePackage } from './PackageRegistry-DnJYVw9G.cjs';
|
|
2
|
+
export { a as EngineRestoreOptions, b as EngineSnapshot, c as EvalResults, d as Explanation, e as ExplanationStep, E as ExpressionEngine, f as IPackageRegistry, L as LineEvaluation, P as PackageRegistry, S as SNAPSHOT_FORMAT, g as SNAPSHOT_VERSION, h as SerializedAnonymousBody, i as SerializedBytecode, j as SerializedDecimal, k as SerializedLineCacheEntry, l as SerializedNumber, m as SerializedRational, n as SerializedUserFunction, o as SerializedValue, p as SnapshotErrorCodes, q as packageRegistry } from './PackageRegistry-DnJYVw9G.cjs';
|
|
3
|
+
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-B6NX9IaN.cjs';
|
|
4
4
|
export { ENGINE_VERSION } from './constants.cjs';
|
|
5
|
-
import './Parselet-
|
|
5
|
+
import './Parselet-Cv7S7KRt.cjs';
|
|
6
6
|
import './BytecodeBuilder-Bp9xeTmX.cjs';
|
|
7
|
-
import './Token-
|
|
8
|
-
import './pipeline-
|
|
9
|
-
import './Value-
|
|
7
|
+
import './Token-CbP_OutD.cjs';
|
|
8
|
+
import './pipeline-DtSBJ8TS.cjs';
|
|
9
|
+
import './Value-DZNQ_PU7.cjs';
|
|
10
10
|
import './variables.cjs';
|
|
11
|
-
import './Lexer-
|
|
11
|
+
import './Lexer-B4C1qHXu.cjs';
|
|
12
12
|
import './resolvers.cjs';
|
|
13
13
|
import '@tanstack/query-core';
|
|
14
|
-
import './TokenNormalizer-
|
|
15
|
-
import './ScopeManager-
|
|
16
|
-
import './EngineError-
|
|
14
|
+
import './TokenNormalizer-DnlL7_8c.cjs';
|
|
15
|
+
import './ScopeManager-DRDBVfan.cjs';
|
|
16
|
+
import './EngineError-CNA_rHY-.cjs';
|
|
17
17
|
import './Configuration-C9W8tJv_.cjs';
|
|
18
18
|
|
|
19
19
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { I as IEnginePackage } from './PackageRegistry-
|
|
2
|
-
export { a as EngineRestoreOptions, b as EngineSnapshot, c as EvalResults, d as Explanation, e as ExplanationStep, E as ExpressionEngine, f as IPackageRegistry, L as LineEvaluation, P as PackageRegistry, S as SNAPSHOT_FORMAT, g as SNAPSHOT_VERSION, h as SerializedAnonymousBody, i as SerializedBytecode, j as SerializedDecimal, k as SerializedLineCacheEntry, l as SerializedNumber, m as SerializedRational, n as SerializedUserFunction, o as SerializedValue, p as SnapshotErrorCodes, q as packageRegistry } from './PackageRegistry-
|
|
3
|
-
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-
|
|
1
|
+
import { I as IEnginePackage } from './PackageRegistry-DrCPQNyy.js';
|
|
2
|
+
export { a as EngineRestoreOptions, b as EngineSnapshot, c as EvalResults, d as Explanation, e as ExplanationStep, E as ExpressionEngine, f as IPackageRegistry, L as LineEvaluation, P as PackageRegistry, S as SNAPSHOT_FORMAT, g as SNAPSHOT_VERSION, h as SerializedAnonymousBody, i as SerializedBytecode, j as SerializedDecimal, k as SerializedLineCacheEntry, l as SerializedNumber, m as SerializedRational, n as SerializedUserFunction, o as SerializedValue, p as SnapshotErrorCodes, q as packageRegistry } from './PackageRegistry-DrCPQNyy.js';
|
|
3
|
+
export { a as CompatibilityConflict, b as CompatibilityConflictKind, C as CompatibilityReport, c as CompatibilitySeverity, d as checkPackageCompatibility } from './PackageCompatibility-Ceg5XdAp.js';
|
|
4
4
|
export { ENGINE_VERSION } from './constants.js';
|
|
5
|
-
import './Parselet-
|
|
5
|
+
import './Parselet-Bhf7d0_W.js';
|
|
6
6
|
import './BytecodeBuilder-Bp9xeTmX.js';
|
|
7
|
-
import './Token-
|
|
8
|
-
import './pipeline-
|
|
9
|
-
import './Value-
|
|
7
|
+
import './Token-CbP_OutD.js';
|
|
8
|
+
import './pipeline-D-PS9gVw.js';
|
|
9
|
+
import './Value-DZNQ_PU7.js';
|
|
10
10
|
import './variables.js';
|
|
11
|
-
import './Lexer-
|
|
11
|
+
import './Lexer-DKMlj7Sy.js';
|
|
12
12
|
import './resolvers.js';
|
|
13
13
|
import '@tanstack/query-core';
|
|
14
|
-
import './TokenNormalizer-
|
|
15
|
-
import './ScopeManager-
|
|
16
|
-
import './EngineError-
|
|
14
|
+
import './TokenNormalizer-DCWdZjGz.js';
|
|
15
|
+
import './ScopeManager-Bzq87GfA.js';
|
|
16
|
+
import './EngineError-CNA_rHY-.js';
|
|
17
17
|
import './Configuration-C9W8tJv_.js';
|
|
18
18
|
|
|
19
19
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
import { assertEngineVersionCompatible } from './chunk-
|
|
3
|
-
export { ExpressionEngine, SNAPSHOT_FORMAT, SNAPSHOT_VERSION, SnapshotErrorCodes, assertEngineVersionCompatible, checkEngineVersionCompatibility, checkPackageCompatibility } from './chunk-
|
|
4
|
-
import { sharedParseletRegistry } from './chunk-
|
|
1
|
+
import './chunk-7JM3F4KL.js';
|
|
2
|
+
import { assertEngineVersionCompatible } from './chunk-IJGOFP2J.js';
|
|
3
|
+
export { ExpressionEngine, SNAPSHOT_FORMAT, SNAPSHOT_VERSION, SnapshotErrorCodes, assertEngineVersionCompatible, checkEngineVersionCompatibility, checkPackageCompatibility } from './chunk-IJGOFP2J.js';
|
|
4
|
+
import { sharedParseletRegistry } from './chunk-AOH6UR2L.js';
|
|
5
5
|
import './chunk-2RWAXT6O.js';
|
|
6
6
|
import './chunk-3VGDNEE3.js';
|
|
7
7
|
import './chunk-5ON7PUAZ.js';
|
|
8
8
|
import './chunk-FD5ZZHEU.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
9
|
+
import './chunk-FE4RC37D.js';
|
|
10
|
+
import './chunk-UF6JG5SG.js';
|
|
11
|
+
import './chunk-YNIWOYW6.js';
|
|
12
12
|
import './chunk-UKQHXPGW.js';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import { BindingPower } from './chunk-
|
|
15
|
-
import './chunk-
|
|
13
|
+
import './chunk-TPOK3UNI.js';
|
|
14
|
+
import { BindingPower } from './chunk-IQJGDZOP.js';
|
|
15
|
+
import './chunk-L5YHV6BQ.js';
|
|
16
16
|
import './chunk-3BOK2LDK.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-F4UB4XIL.js';
|
|
18
18
|
import './chunk-NLNDMWZC.js';
|
|
19
|
-
import { allocatePluginFunctionIndex } from './chunk-
|
|
19
|
+
import { allocatePluginFunctionIndex } from './chunk-WMQRJTAO.js';
|
|
20
20
|
import { sharedVariableResolver } from './chunk-GCM5JHMX.js';
|
|
21
|
-
import './chunk-
|
|
21
|
+
import './chunk-BSPXMGIS.js';
|
|
22
22
|
import './chunk-BLI4NIQY.js';
|
|
23
23
|
import './chunk-Z4X2RWOF.js';
|
|
24
24
|
import './chunk-5HRB36DK.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import { Value, boolValue, stringValue, numberValue } from './chunk-
|
|
25
|
+
import './chunk-ZNFFTYWH.js';
|
|
26
|
+
import { Value, boolValue, stringValue, numberValue } from './chunk-5EFKSKMA.js';
|
|
27
27
|
import './chunk-MVTOCRV2.js';
|
|
28
|
-
export { ENGINE_VERSION } from './chunk-
|
|
29
|
-
import { sharedLexer } from './chunk-
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
28
|
+
export { ENGINE_VERSION } from './chunk-CSDQMDU2.js';
|
|
29
|
+
import { sharedLexer } from './chunk-RNKDIXDV.js';
|
|
30
|
+
import './chunk-LSALB3IN.js';
|
|
31
|
+
import './chunk-ORM7CHYZ.js';
|
|
32
|
+
import './chunk-NAWZATKT.js';
|
|
33
33
|
import './chunk-XBTEO4OB.js';
|
|
34
34
|
import './chunk-SBUFNJVE.js';
|
|
35
35
|
import './chunk-V4XG5QF6.js';
|
|
36
|
-
import { ErrorFactory } from './chunk-
|
|
36
|
+
import { ErrorFactory } from './chunk-N7OA4WPJ.js';
|
|
37
37
|
import './chunk-YLJ4XMA6.js';
|
|
38
38
|
|
|
39
39
|
// src/api/PackageRegistry.ts
|
package/dist/language.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkEJ3ILXX6_cjs = require('./chunk-EJ3ILXX6.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7AXJNQMF_cjs = require('./chunk-7AXJNQMF.cjs');
|
|
5
5
|
var chunkAQNHHJMJ_cjs = require('./chunk-AQNHHJMJ.cjs');
|
|
6
6
|
require('./chunk-AMOJYLG2.cjs');
|
|
7
7
|
require('./chunk-B7LXJ6LC.cjs');
|
|
@@ -125,7 +125,7 @@ var LanguageService = class {
|
|
|
125
125
|
offset: token.offset,
|
|
126
126
|
col: token.col,
|
|
127
127
|
length: end - token.offset,
|
|
128
|
-
category:
|
|
128
|
+
category: chunk7AXJNQMF_cjs.getTokenCategory(token.type)
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
return out;
|
|
@@ -228,7 +228,7 @@ var LanguageService = class {
|
|
|
228
228
|
if (this.staticCompletionCandidates) return this.staticCompletionCandidates;
|
|
229
229
|
const items = [];
|
|
230
230
|
for (const [word, tokenType] of Object.entries(this.engine.getLexer().getKeywords())) {
|
|
231
|
-
const category =
|
|
231
|
+
const category = chunk7AXJNQMF_cjs.getTokenCategory(tokenType);
|
|
232
232
|
if (!category) continue;
|
|
233
233
|
items.push({ label: word, category });
|
|
234
234
|
}
|
|
@@ -347,19 +347,19 @@ function completionItemToOption(item) {
|
|
|
347
347
|
|
|
348
348
|
Object.defineProperty(exports, "UNCATEGORIZED_TOKEN_TYPES", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunk7AXJNQMF_cjs.UNCATEGORIZED_TOKEN_TYPES; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "getTokenCategory", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunk7AXJNQMF_cjs.getTokenCategory; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "registerTokenCategory", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunk7AXJNQMF_cjs.registerTokenCategory; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "unregisterTokenCategory", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunk7AXJNQMF_cjs.unregisterTokenCategory; }
|
|
363
363
|
});
|
|
364
364
|
exports.DEFAULT_TOKEN_CLASS_PREFIX = DEFAULT_TOKEN_CLASS_PREFIX;
|
|
365
365
|
exports.LanguageService = LanguageService;
|
package/dist/language.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { H as CompletionItem } from './PackageRegistry-
|
|
2
|
-
export { J as LanguageService, K as LanguageServiceOptions, M as SemanticToken } from './PackageRegistry-
|
|
3
|
-
import { e as TokenCategory } from './Lexer-
|
|
4
|
-
import './Parselet-
|
|
1
|
+
import { H as CompletionItem } from './PackageRegistry-DnJYVw9G.cjs';
|
|
2
|
+
export { J as LanguageService, K as LanguageServiceOptions, M as SemanticToken } from './PackageRegistry-DnJYVw9G.cjs';
|
|
3
|
+
import { e as TokenCategory } from './Lexer-B4C1qHXu.cjs';
|
|
4
|
+
import './Parselet-Cv7S7KRt.cjs';
|
|
5
5
|
import './BytecodeBuilder-Bp9xeTmX.cjs';
|
|
6
|
-
import './Token-
|
|
7
|
-
import './pipeline-
|
|
8
|
-
import './Value-
|
|
6
|
+
import './Token-CbP_OutD.cjs';
|
|
7
|
+
import './pipeline-DtSBJ8TS.cjs';
|
|
8
|
+
import './Value-DZNQ_PU7.cjs';
|
|
9
9
|
import './variables.cjs';
|
|
10
10
|
import './resolvers.cjs';
|
|
11
11
|
import '@tanstack/query-core';
|
|
12
|
-
import './TokenNormalizer-
|
|
13
|
-
import './ScopeManager-
|
|
14
|
-
import './EngineError-
|
|
12
|
+
import './TokenNormalizer-DnlL7_8c.cjs';
|
|
13
|
+
import './ScopeManager-DRDBVfan.cjs';
|
|
14
|
+
import './EngineError-CNA_rHY-.cjs';
|
|
15
15
|
import './Configuration-C9W8tJv_.cjs';
|
|
16
16
|
|
|
17
17
|
/**
|
package/dist/language.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { H as CompletionItem } from './PackageRegistry-
|
|
2
|
-
export { J as LanguageService, K as LanguageServiceOptions, M as SemanticToken } from './PackageRegistry-
|
|
3
|
-
import { e as TokenCategory } from './Lexer-
|
|
4
|
-
import './Parselet-
|
|
1
|
+
import { H as CompletionItem } from './PackageRegistry-DrCPQNyy.js';
|
|
2
|
+
export { J as LanguageService, K as LanguageServiceOptions, M as SemanticToken } from './PackageRegistry-DrCPQNyy.js';
|
|
3
|
+
import { e as TokenCategory } from './Lexer-DKMlj7Sy.js';
|
|
4
|
+
import './Parselet-Bhf7d0_W.js';
|
|
5
5
|
import './BytecodeBuilder-Bp9xeTmX.js';
|
|
6
|
-
import './Token-
|
|
7
|
-
import './pipeline-
|
|
8
|
-
import './Value-
|
|
6
|
+
import './Token-CbP_OutD.js';
|
|
7
|
+
import './pipeline-D-PS9gVw.js';
|
|
8
|
+
import './Value-DZNQ_PU7.js';
|
|
9
9
|
import './variables.js';
|
|
10
10
|
import './resolvers.js';
|
|
11
11
|
import '@tanstack/query-core';
|
|
12
|
-
import './TokenNormalizer-
|
|
13
|
-
import './ScopeManager-
|
|
14
|
-
import './EngineError-
|
|
12
|
+
import './TokenNormalizer-DCWdZjGz.js';
|
|
13
|
+
import './ScopeManager-Bzq87GfA.js';
|
|
14
|
+
import './EngineError-CNA_rHY-.js';
|
|
15
15
|
import './Configuration-C9W8tJv_.js';
|
|
16
16
|
|
|
17
17
|
/**
|
package/dist/language.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getMeasure } from './chunk-MVTOCRV2.js';
|
|
2
|
-
import { getTokenCategory } from './chunk-
|
|
3
|
-
export { UNCATEGORIZED_TOKEN_TYPES, getTokenCategory, registerTokenCategory, unregisterTokenCategory } from './chunk-
|
|
2
|
+
import { getTokenCategory } from './chunk-LSALB3IN.js';
|
|
3
|
+
export { UNCATEGORIZED_TOKEN_TYPES, getTokenCategory, registerTokenCategory, unregisterTokenCategory } from './chunk-LSALB3IN.js';
|
|
4
4
|
import { knownUnits } from './chunk-SBUFNJVE.js';
|
|
5
5
|
import './chunk-V4XG5QF6.js';
|
|
6
6
|
import './chunk-YLJ4XMA6.js';
|
package/dist/lexer.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunk7USV76HV_cjs = require('./chunk-7USV76HV.cjs');
|
|
4
|
+
require('./chunk-7AXJNQMF.cjs');
|
|
5
|
+
var chunkYJHY7CMN_cjs = require('./chunk-YJHY7CMN.cjs');
|
|
6
|
+
var chunkG2YPPLGX_cjs = require('./chunk-G2YPPLGX.cjs');
|
|
7
7
|
require('./chunk-OUHT5Z36.cjs');
|
|
8
8
|
var chunkAQNHHJMJ_cjs = require('./chunk-AQNHHJMJ.cjs');
|
|
9
9
|
require('./chunk-AMOJYLG2.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-MIGXCBXT.cjs');
|
|
11
11
|
require('./chunk-B7LXJ6LC.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "Lexer", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7USV76HV_cjs.Lexer; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "LexerState", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7USV76HV_cjs.LexerState; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "buildTokenLookup", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7USV76HV_cjs.buildTokenLookup; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "sharedLexer", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7USV76HV_cjs.sharedLexer; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ExpressionLexer", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkYJHY7CMN_cjs.ExpressionLexer; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "LexerToken", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkYJHY7CMN_cjs.LexerToken; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "TokenTypes", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkG2YPPLGX_cjs.TokenTypes; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "registerAllTokenTypes", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkG2YPPLGX_cjs.registerAllTokenTypes; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "registerTokenType", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkG2YPPLGX_cjs.registerTokenType; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "tokenTypeId", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkG2YPPLGX_cjs.tokenTypeId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "tokenTypeName", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkG2YPPLGX_cjs.tokenTypeName; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "knownUnits", {
|
|
60
60
|
enumerable: true,
|
package/dist/lexer.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TokenLookup } from './Lexer-
|
|
2
|
-
export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-
|
|
3
|
-
export { T as Token, a as TokenType, b as TokenTypes, r as registerAllTokenTypes, c as registerTokenType, t as tokenTypeId, d as tokenTypeName } from './Token-
|
|
1
|
+
import { T as TokenLookup } from './Lexer-B4C1qHXu.cjs';
|
|
2
|
+
export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-B4C1qHXu.cjs';
|
|
3
|
+
export { T as Token, a as TokenType, b as TokenTypes, r as registerAllTokenTypes, c as registerTokenType, t as tokenTypeId, d as tokenTypeName } from './Token-CbP_OutD.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The set of unit identifiers the lexer will turn into a UNIT token.
|
package/dist/lexer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TokenLookup } from './Lexer-
|
|
2
|
-
export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-
|
|
3
|
-
export { T as Token, a as TokenType, b as TokenTypes, r as registerAllTokenTypes, c as registerTokenType, t as tokenTypeId, d as tokenTypeName } from './Token-
|
|
1
|
+
import { T as TokenLookup } from './Lexer-DKMlj7Sy.js';
|
|
2
|
+
export { E as ExpressionLexer, I as InlineSolveSpan, L as Lexer, a as LexerState, b as LexerToken, c as LexerVocabulary, d as LineClassification, M as MarkdownLineType, S as ScanLineResult, s as sharedLexer } from './Lexer-DKMlj7Sy.js';
|
|
3
|
+
export { T as Token, a as TokenType, b as TokenTypes, r as registerAllTokenTypes, c as registerTokenType, t as tokenTypeId, d as tokenTypeName } from './Token-CbP_OutD.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The set of unit identifiers the lexer will turn into a UNIT token.
|
package/dist/lexer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { Lexer, LexerState, buildTokenLookup, sharedLexer } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
export { ExpressionLexer, LexerToken } from './chunk-
|
|
4
|
-
export { TokenTypes, registerAllTokenTypes, registerTokenType, tokenTypeId, tokenTypeName } from './chunk-
|
|
1
|
+
export { Lexer, LexerState, buildTokenLookup, sharedLexer } from './chunk-RNKDIXDV.js';
|
|
2
|
+
import './chunk-LSALB3IN.js';
|
|
3
|
+
export { ExpressionLexer, LexerToken } from './chunk-ORM7CHYZ.js';
|
|
4
|
+
export { TokenTypes, registerAllTokenTypes, registerTokenType, tokenTypeId, tokenTypeName } from './chunk-NAWZATKT.js';
|
|
5
5
|
import './chunk-XBTEO4OB.js';
|
|
6
6
|
export { knownUnits } from './chunk-SBUFNJVE.js';
|
|
7
7
|
import './chunk-V4XG5QF6.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-N7OA4WPJ.js';
|
|
9
9
|
import './chunk-YLJ4XMA6.js';
|
|
10
10
|
//# sourceMappingURL=lexer.js.map
|
|
11
11
|
//# sourceMappingURL=lexer.js.map
|