@tokens-studio/tokenscript-interpreter 0.32.0 → 0.34.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/chunk-33CDF4L4.js +6444 -0
- package/dist/chunk-33CDF4L4.js.map +1 -0
- package/dist/chunk-AXH5N7KV.js +99 -0
- package/dist/chunk-AXH5N7KV.js.map +1 -0
- package/dist/chunk-QP7M6WUR.js +6227 -0
- package/dist/chunk-QP7M6WUR.js.map +1 -0
- package/dist/cli.js +242 -2
- package/dist/cli.js.map +1 -1
- package/dist/compliance-suite.js +2 -2
- package/dist/config-DtbN3iyg.d.ts +918 -0
- package/dist/lib/{chunk-QYRJ6NSL.cjs → chunk-LEYHQJTL.cjs} +3 -2
- package/dist/lib/chunk-LEYHQJTL.cjs.map +1 -0
- package/dist/lib/{chunk-GKSWF7FF.cjs → chunk-LMGHS2NP.cjs} +102 -100
- package/dist/lib/chunk-LMGHS2NP.cjs.map +1 -0
- package/dist/lib/{chunk-LI2D53SH.js → chunk-LSTH2XJ4.js} +5 -3
- package/dist/lib/chunk-LSTH2XJ4.js.map +1 -0
- package/dist/lib/{chunk-YD3MIYOO.js → chunk-ODVWXGOM.js} +3 -2
- package/dist/lib/chunk-ODVWXGOM.js.map +1 -0
- package/dist/lib/{chunk-UYVHWJIC.js → chunk-RWXDOZAS.js} +250 -5
- package/dist/lib/chunk-RWXDOZAS.js.map +1 -0
- package/dist/lib/{chunk-QGOGK2VP.cjs → chunk-YCIBJDRB.cjs} +790 -543
- package/dist/lib/chunk-YCIBJDRB.cjs.map +1 -0
- package/dist/lib/index.cjs +97 -89
- package/dist/lib/index.d.cts +5 -5
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +3 -3
- package/dist/lib/{interpreter-DNmBc--s.d.ts → interpreter-6QwMkUqD.d.cts} +30 -2
- package/dist/lib/{interpreter-CP7CNwDa.d.cts → interpreter-v7WiwSP9.d.ts} +30 -2
- package/dist/lib/interpreter.cjs +73 -73
- package/dist/lib/interpreter.d.cts +4 -4
- package/dist/lib/interpreter.d.ts +4 -4
- package/dist/lib/interpreter.js +3 -3
- package/dist/lib/processor-node.cjs +12 -12
- package/dist/lib/processor-node.d.cts +3 -3
- package/dist/lib/processor-node.d.ts +3 -3
- package/dist/lib/processor-node.js +3 -3
- package/dist/lib/processor.cjs +23 -15
- package/dist/lib/processor.d.cts +18 -5
- package/dist/lib/processor.d.ts +18 -5
- package/dist/lib/processor.js +3 -3
- package/dist/lib/schema.cjs +5 -5
- package/dist/lib/schema.d.cts +1 -1
- package/dist/lib/schema.d.ts +1 -1
- package/dist/lib/schema.js +3 -3
- package/dist/lib/syntax-highlighting.cjs +15 -15
- package/dist/lib/syntax-highlighting.d.cts +1 -1
- package/dist/lib/syntax-highlighting.d.ts +1 -1
- package/dist/lib/syntax-highlighting.js +2 -2
- package/dist/lib/{types-DHgmzR1Z.d.ts → types-BI0AZ4Ej.d.ts} +2 -2
- package/dist/lib/{types-BimJex2v.d.cts → types-EB8V9c46.d.cts} +1 -0
- package/dist/lib/{types-BimJex2v.d.ts → types-EB8V9c46.d.ts} +1 -0
- package/dist/lib/{types-DsJuwrq3.d.cts → types-cFwP43uv.d.cts} +2 -2
- package/dist/lib/types.cjs +6 -6
- package/dist/lib/types.d.cts +1 -1
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.js +1 -1
- package/dist/processor/index.d.ts +15 -2
- package/dist/processor/index.js +24 -3
- package/dist/processor/index.js.map +1 -1
- package/dist/repl.d.ts +1 -1
- package/dist/repl.js +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/dist/lib/chunk-GKSWF7FF.cjs.map +0 -1
- package/dist/lib/chunk-LI2D53SH.js.map +0 -1
- package/dist/lib/chunk-QGOGK2VP.cjs.map +0 -1
- package/dist/lib/chunk-QYRJ6NSL.cjs.map +0 -1
- package/dist/lib/chunk-UYVHWJIC.js.map +0 -1
- package/dist/lib/chunk-YD3MIYOO.js.map +0 -1
package/dist/lib/index.cjs
CHANGED
|
@@ -1,354 +1,362 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkYCIBJDRB_cjs = require('./chunk-YCIBJDRB.cjs');
|
|
4
|
+
var chunkLMGHS2NP_cjs = require('./chunk-LMGHS2NP.cjs');
|
|
5
|
+
var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ASTNodes", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkYCIBJDRB_cjs.ASTNodes; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ColorManager", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkYCIBJDRB_cjs.ColorManager; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "ColorSpecificationSchema", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkYCIBJDRB_cjs.ColorSpecificationSchema; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "Config", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkYCIBJDRB_cjs.Config; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "ConstantsSpecificationSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkYCIBJDRB_cjs.ConstantsSpecificationSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE_OPTIONS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkYCIBJDRB_cjs.DEFAULT_LANGUAGE_OPTIONS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "FunctionSpecificationSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkYCIBJDRB_cjs.FunctionSpecificationSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FunctionsManager", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkYCIBJDRB_cjs.FunctionsManager; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "IncompleteType", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkYCIBJDRB_cjs.IncompleteType; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "Interpreter", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkYCIBJDRB_cjs.Interpreter; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Lexer", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkYCIBJDRB_cjs.Lexer; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ParseState", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkYCIBJDRB_cjs.ParseState; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "Parser", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkYCIBJDRB_cjs.Parser; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PartialBinOpNode", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkYCIBJDRB_cjs.PartialBinOpNode; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PartialFunctionCallNode", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkYCIBJDRB_cjs.PartialFunctionCallNode; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "PartialParenNode", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkYCIBJDRB_cjs.PartialParenNode; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "PartialReferenceNode", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkYCIBJDRB_cjs.PartialReferenceNode; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "PartialStringNode", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkYCIBJDRB_cjs.PartialStringNode; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "PartialUnaryOpNode", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkYCIBJDRB_cjs.PartialUnaryOpNode; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "TokenResolver", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkYCIBJDRB_cjs.TokenResolver; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "UnitManager", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkYCIBJDRB_cjs.UnitManager; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "UnitSpecificationSchema", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkYCIBJDRB_cjs.UnitSpecificationSchema; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ValidationSeverity", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkYCIBJDRB_cjs.ValidationSeverity; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "buildTokens", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkYCIBJDRB_cjs.buildTokens; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "builders", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkYCIBJDRB_cjs.builders_exports; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "collectAllReferences", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkYCIBJDRB_cjs.collectAllReferences; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "collectReferenceNodes", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkYCIBJDRB_cjs.collectReferenceNodes; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "errorClasses", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkYCIBJDRB_cjs.errorClasses; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "errorHelpers", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkYCIBJDRB_cjs.errorHelpers; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "evaluateExpression", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkYCIBJDRB_cjs.evaluateExpression; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "fetchAndRegisterSchemas", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkYCIBJDRB_cjs.fetchAndRegisterSchemas; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "fetchTokenScriptSchema", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkYCIBJDRB_cjs.fetchTokenScriptSchema; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "filterAST", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkYCIBJDRB_cjs.filterAST; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "flattenChildrenMap", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkYCIBJDRB_cjs.flattenChildrenMap; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "flattenChildrenObject", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkYCIBJDRB_cjs.flattenChildrenObject; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "getAffectedTokens", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkYCIBJDRB_cjs.getAffectedTokens; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "getBrokenReferences", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkYCIBJDRB_cjs.getBrokenReferences; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "getModifiedDependants", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkYCIBJDRB_cjs.getModifiedDependants; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "getRenamedReferences", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkYCIBJDRB_cjs.getRenamedReferences; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "hasPartialNodes", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkYCIBJDRB_cjs.hasPartialNodes; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "parseExpression", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkYCIBJDRB_cjs.parseExpression; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "parseTolerantly", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkYCIBJDRB_cjs.parseTolerantly; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "processTokenSets", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkYCIBJDRB_cjs.processTokenSets; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "processTokens", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkYCIBJDRB_cjs.processTokens; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "renameReferences", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkYCIBJDRB_cjs.renameReferences; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "tokenizeTolerantly", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkYCIBJDRB_cjs.tokenizeTolerantly; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "validateTokenName", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return chunkYCIBJDRB_cjs.validateTokenName; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "validateTokenPath", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return chunkYCIBJDRB_cjs.validateTokenPath; }
|
|
192
200
|
});
|
|
193
201
|
Object.defineProperty(exports, "walkAST", {
|
|
194
202
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkYCIBJDRB_cjs.walkAST; }
|
|
196
204
|
});
|
|
197
205
|
Object.defineProperty(exports, "BaseSymbolType", {
|
|
198
206
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkLMGHS2NP_cjs.BaseSymbolType; }
|
|
200
208
|
});
|
|
201
209
|
Object.defineProperty(exports, "BooleanSymbol", {
|
|
202
210
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkLMGHS2NP_cjs.BooleanSymbol; }
|
|
204
212
|
});
|
|
205
213
|
Object.defineProperty(exports, "ColorErrorCode", {
|
|
206
214
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkLMGHS2NP_cjs.ColorErrorCode; }
|
|
208
216
|
});
|
|
209
217
|
Object.defineProperty(exports, "ColorSymbol", {
|
|
210
218
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkLMGHS2NP_cjs.ColorSymbol; }
|
|
212
220
|
});
|
|
213
221
|
Object.defineProperty(exports, "ConfigErrorCode", {
|
|
214
222
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkLMGHS2NP_cjs.ConfigErrorCode; }
|
|
216
224
|
});
|
|
217
225
|
Object.defineProperty(exports, "DictionarySymbol", {
|
|
218
226
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkLMGHS2NP_cjs.DictionarySymbol; }
|
|
220
228
|
});
|
|
221
229
|
Object.defineProperty(exports, "FunctionsErrorCode", {
|
|
222
230
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkLMGHS2NP_cjs.FunctionsErrorCode; }
|
|
224
232
|
});
|
|
225
233
|
Object.defineProperty(exports, "InterpreterError", {
|
|
226
234
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkLMGHS2NP_cjs.InterpreterError; }
|
|
228
236
|
});
|
|
229
237
|
Object.defineProperty(exports, "InterpreterErrorCode", {
|
|
230
238
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkLMGHS2NP_cjs.InterpreterErrorCode; }
|
|
232
240
|
});
|
|
233
241
|
Object.defineProperty(exports, "LanguageError", {
|
|
234
242
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkLMGHS2NP_cjs.LanguageError; }
|
|
236
244
|
});
|
|
237
245
|
Object.defineProperty(exports, "LexerError", {
|
|
238
246
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkLMGHS2NP_cjs.LexerError; }
|
|
240
248
|
});
|
|
241
249
|
Object.defineProperty(exports, "LexerErrorCode", {
|
|
242
250
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkLMGHS2NP_cjs.LexerErrorCode; }
|
|
244
252
|
});
|
|
245
253
|
Object.defineProperty(exports, "ListSymbol", {
|
|
246
254
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkLMGHS2NP_cjs.ListSymbol; }
|
|
248
256
|
});
|
|
249
257
|
Object.defineProperty(exports, "NullSymbol", {
|
|
250
258
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkLMGHS2NP_cjs.NullSymbol; }
|
|
252
260
|
});
|
|
253
261
|
Object.defineProperty(exports, "NumberSymbol", {
|
|
254
262
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkLMGHS2NP_cjs.NumberSymbol; }
|
|
256
264
|
});
|
|
257
265
|
Object.defineProperty(exports, "NumberWithUnitSymbol", {
|
|
258
266
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkLMGHS2NP_cjs.NumberWithUnitSymbol; }
|
|
260
268
|
});
|
|
261
269
|
Object.defineProperty(exports, "OperationsErrorCode", {
|
|
262
270
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkLMGHS2NP_cjs.OperationsErrorCode; }
|
|
264
272
|
});
|
|
265
273
|
Object.defineProperty(exports, "ParserError", {
|
|
266
274
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkLMGHS2NP_cjs.ParserError; }
|
|
268
276
|
});
|
|
269
277
|
Object.defineProperty(exports, "ParserErrorCode", {
|
|
270
278
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkLMGHS2NP_cjs.ParserErrorCode; }
|
|
272
280
|
});
|
|
273
281
|
Object.defineProperty(exports, "ProcessorError", {
|
|
274
282
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkLMGHS2NP_cjs.ProcessorError; }
|
|
276
284
|
});
|
|
277
285
|
Object.defineProperty(exports, "ProcessorErrorCode", {
|
|
278
286
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkLMGHS2NP_cjs.ProcessorErrorCode; }
|
|
280
288
|
});
|
|
281
289
|
Object.defineProperty(exports, "StringSymbol", {
|
|
282
290
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkLMGHS2NP_cjs.StringSymbol; }
|
|
284
292
|
});
|
|
285
293
|
Object.defineProperty(exports, "SymbolsErrorCode", {
|
|
286
294
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkLMGHS2NP_cjs.SymbolsErrorCode; }
|
|
288
296
|
});
|
|
289
297
|
Object.defineProperty(exports, "TokenSymbol", {
|
|
290
298
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkLMGHS2NP_cjs.TokenSymbol; }
|
|
292
300
|
});
|
|
293
301
|
Object.defineProperty(exports, "UnitErrorCode", {
|
|
294
302
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkLMGHS2NP_cjs.UnitErrorCode; }
|
|
296
304
|
});
|
|
297
305
|
Object.defineProperty(exports, "getMessage", {
|
|
298
306
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkLMGHS2NP_cjs.getMessage; }
|
|
300
308
|
});
|
|
301
309
|
Object.defineProperty(exports, "getResultTypeName", {
|
|
302
310
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkLMGHS2NP_cjs.getResultTypeName; }
|
|
304
312
|
});
|
|
305
313
|
Object.defineProperty(exports, "isInterpreterError", {
|
|
306
314
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkLMGHS2NP_cjs.isInterpreterError; }
|
|
308
316
|
});
|
|
309
317
|
Object.defineProperty(exports, "isLanguageError", {
|
|
310
318
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkLMGHS2NP_cjs.isLanguageError; }
|
|
312
320
|
});
|
|
313
321
|
Object.defineProperty(exports, "isLexerError", {
|
|
314
322
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkLMGHS2NP_cjs.isLexerError; }
|
|
316
324
|
});
|
|
317
325
|
Object.defineProperty(exports, "isParserError", {
|
|
318
326
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkLMGHS2NP_cjs.isParserError; }
|
|
320
328
|
});
|
|
321
329
|
Object.defineProperty(exports, "isProcessorError", {
|
|
322
330
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunkLMGHS2NP_cjs.isProcessorError; }
|
|
324
332
|
});
|
|
325
333
|
Object.defineProperty(exports, "jsValueToSymbolType", {
|
|
326
334
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunkLMGHS2NP_cjs.jsValueToSymbolType; }
|
|
328
336
|
});
|
|
329
337
|
Object.defineProperty(exports, "serializeError", {
|
|
330
338
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunkLMGHS2NP_cjs.serializeError; }
|
|
332
340
|
});
|
|
333
341
|
Object.defineProperty(exports, "Operations", {
|
|
334
342
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunkLEYHQJTL_cjs.Operations; }
|
|
336
344
|
});
|
|
337
345
|
Object.defineProperty(exports, "ReservedKeyword", {
|
|
338
346
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunkLEYHQJTL_cjs.ReservedKeyword; }
|
|
340
348
|
});
|
|
341
349
|
Object.defineProperty(exports, "SupportedFormats", {
|
|
342
350
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunkLEYHQJTL_cjs.SupportedFormats; }
|
|
344
352
|
});
|
|
345
353
|
Object.defineProperty(exports, "TokenType", {
|
|
346
354
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkLEYHQJTL_cjs.TokenType; }
|
|
348
356
|
});
|
|
349
357
|
Object.defineProperty(exports, "UNINTERPRETED_KEYWORDS", {
|
|
350
358
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkLEYHQJTL_cjs.UNINTERPRETED_KEYWORDS; }
|
|
352
360
|
});
|
|
353
361
|
//# sourceMappingURL=index.cjs.map
|
|
354
362
|
//# sourceMappingURL=index.cjs.map
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProcessorError, L as LanguageError, a as LexerError, b as ParserError, I as InterpreterError } from './interpreter-
|
|
2
|
-
export { A as AllErrorCodes, C as ColorErrorCode, c as ColorErrorData, d as ConfigErrorCode, e as ConfigErrorData, E as ErrorOptions, F as FunctionsErrorCode, f as FunctionsErrorData, g as IncompleteInfo, h as IncompleteType, i as Interpreter, j as InterpreterErrorCode, k as InterpreterErrorData, l as InterpreterResult, m as Lexer, n as LexerErrorCode, o as LexerErrorData, O as OperationsErrorCode, p as OperationsErrorData, q as ParseState, r as Parser, s as ParserErrorCode, t as ParserErrorData, u as ProcessorErrorCode, v as ProcessorErrorData, S as SerializedError, w as SymbolsErrorCode, x as SymbolsErrorData, T as TolerantParseResult, U as UnitErrorCode, y as UnitErrorData, z as isInterpreterError, B as isLanguageError, D as isLexerError, G as isParserError, H as isProcessorError, J as parseExpression, K as serializeError } from './interpreter-
|
|
1
|
+
import { P as ProcessorError, L as LanguageError, a as LexerError, b as ParserError, I as InterpreterError } from './interpreter-6QwMkUqD.cjs';
|
|
2
|
+
export { A as AllErrorCodes, C as ColorErrorCode, c as ColorErrorData, d as ConfigErrorCode, e as ConfigErrorData, E as ErrorOptions, F as FunctionsErrorCode, f as FunctionsErrorData, g as IncompleteInfo, h as IncompleteType, i as Interpreter, j as InterpreterErrorCode, k as InterpreterErrorData, l as InterpreterResult, m as Lexer, n as LexerErrorCode, o as LexerErrorData, O as OperationsErrorCode, p as OperationsErrorData, q as ParseState, r as Parser, s as ParserErrorCode, t as ParserErrorData, u as ProcessorErrorCode, v as ProcessorErrorData, S as SerializedError, w as SymbolsErrorCode, x as SymbolsErrorData, T as TolerantParseResult, U as UnitErrorCode, y as UnitErrorData, z as isInterpreterError, B as isLanguageError, D as isLexerError, G as isParserError, H as isProcessorError, J as parseExpression, K as serializeError } from './interpreter-6QwMkUqD.cjs';
|
|
3
3
|
export { ASTNodes, EvalError, EvalOptions, EvalResult, EvalSuccess, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, ReferenceInfo, collectAllReferences, evaluateExpression, getMessage, hasPartialNodes, parseTolerantly, renameReferences, tokenizeTolerantly } from './interpreter.cjs';
|
|
4
|
-
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens } from './processor.cjs';
|
|
5
|
-
export { A as ASTNode, B as BaseSymbolType, a as BooleanSymbol, C as ColorManager, b as ColorSpecification, c as ColorSpecificationSchema, d as ColorSymbol, e as Config, f as ConfigOptions, g as ConstantsSpecification, h as ConstantsSpecificationSchema, D as DEFAULT_LANGUAGE_OPTIONS, i as DictionarySymbol, F as FunctionSpecification, j as FunctionSpecificationSchema, k as FunctionsManager, I as ISymbolType, J as JsValue, L as LanguageOptions, l as ListSymbol, N as NullSymbol, m as NumberSymbol, n as NumberWithUnitSymbol, O as Operations, R as ReferenceRecord, o as ReferenceRecordValue, p as ReservedKeyword, S as StringSymbol, q as SupportedFormats, r as SymbolMetadata, T as Token, s as TokenSymbol, t as TokenType, U as UNINTERPRETED_KEYWORDS, u as UnitManager, v as UnitSpecification, w as UnitSpecificationSchema, x as collectReferenceNodes, y as filterAST, z as getResultTypeName, E as jsValueToSymbolType, G as walkAST } from './types-
|
|
6
|
-
export { B as BuildTokensOptions, C as CreateTokenParams, b as CreateTokenResult, D as DeleteTokenParams, c as DeleteTokenResult, I as IssuesMap, d as ProcessorOutput, e as ProcessorResult, R as ResolveIssue, T as TokenBuilder, f as TokenData, g as TokenDataMap, h as TokenOperationResult, i as TokenResolver, U as UpdateTokenParams, j as UpdateTokenResult, V as ValidationIssue, k as ValidationSeverity, l as buildTokens } from './types-
|
|
4
|
+
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './processor.cjs';
|
|
5
|
+
export { A as ASTNode, B as BaseSymbolType, a as BooleanSymbol, C as ColorManager, b as ColorSpecification, c as ColorSpecificationSchema, d as ColorSymbol, e as Config, f as ConfigOptions, g as ConstantsSpecification, h as ConstantsSpecificationSchema, D as DEFAULT_LANGUAGE_OPTIONS, i as DictionarySymbol, F as FunctionSpecification, j as FunctionSpecificationSchema, k as FunctionsManager, I as ISymbolType, J as JsValue, L as LanguageOptions, l as ListSymbol, N as NullSymbol, m as NumberSymbol, n as NumberWithUnitSymbol, O as Operations, R as ReferenceRecord, o as ReferenceRecordValue, p as ReservedKeyword, S as StringSymbol, q as SupportedFormats, r as SymbolMetadata, T as Token, s as TokenSymbol, t as TokenType, U as UNINTERPRETED_KEYWORDS, u as UnitManager, v as UnitSpecification, w as UnitSpecificationSchema, x as collectReferenceNodes, y as filterAST, z as getResultTypeName, E as jsValueToSymbolType, G as walkAST } from './types-EB8V9c46.cjs';
|
|
6
|
+
export { B as BuildTokensOptions, C as CreateTokenParams, b as CreateTokenResult, D as DeleteTokenParams, c as DeleteTokenResult, I as IssuesMap, d as ProcessorOutput, e as ProcessorResult, R as ResolveIssue, T as TokenBuilder, f as TokenData, g as TokenDataMap, h as TokenOperationResult, i as TokenResolver, U as UpdateTokenParams, j as UpdateTokenResult, V as ValidationIssue, k as ValidationSeverity, l as buildTokens } from './types-cFwP43uv.cjs';
|
|
7
7
|
export { SchemaFetcherOptions, TokenScriptSchemaContent, TokenScriptSchemaResponse, fetchAndRegisterSchemas, fetchTokenScriptSchema } from './schema.cjs';
|
|
8
8
|
import '@tokens-studio/schema-validation';
|
|
9
9
|
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as ProcessorError, L as LanguageError, a as LexerError, b as ParserError, I as InterpreterError } from './interpreter-
|
|
2
|
-
export { A as AllErrorCodes, C as ColorErrorCode, c as ColorErrorData, d as ConfigErrorCode, e as ConfigErrorData, E as ErrorOptions, F as FunctionsErrorCode, f as FunctionsErrorData, g as IncompleteInfo, h as IncompleteType, i as Interpreter, j as InterpreterErrorCode, k as InterpreterErrorData, l as InterpreterResult, m as Lexer, n as LexerErrorCode, o as LexerErrorData, O as OperationsErrorCode, p as OperationsErrorData, q as ParseState, r as Parser, s as ParserErrorCode, t as ParserErrorData, u as ProcessorErrorCode, v as ProcessorErrorData, S as SerializedError, w as SymbolsErrorCode, x as SymbolsErrorData, T as TolerantParseResult, U as UnitErrorCode, y as UnitErrorData, z as isInterpreterError, B as isLanguageError, D as isLexerError, G as isParserError, H as isProcessorError, J as parseExpression, K as serializeError } from './interpreter-
|
|
1
|
+
import { P as ProcessorError, L as LanguageError, a as LexerError, b as ParserError, I as InterpreterError } from './interpreter-v7WiwSP9.js';
|
|
2
|
+
export { A as AllErrorCodes, C as ColorErrorCode, c as ColorErrorData, d as ConfigErrorCode, e as ConfigErrorData, E as ErrorOptions, F as FunctionsErrorCode, f as FunctionsErrorData, g as IncompleteInfo, h as IncompleteType, i as Interpreter, j as InterpreterErrorCode, k as InterpreterErrorData, l as InterpreterResult, m as Lexer, n as LexerErrorCode, o as LexerErrorData, O as OperationsErrorCode, p as OperationsErrorData, q as ParseState, r as Parser, s as ParserErrorCode, t as ParserErrorData, u as ProcessorErrorCode, v as ProcessorErrorData, S as SerializedError, w as SymbolsErrorCode, x as SymbolsErrorData, T as TolerantParseResult, U as UnitErrorCode, y as UnitErrorData, z as isInterpreterError, B as isLanguageError, D as isLexerError, G as isParserError, H as isProcessorError, J as parseExpression, K as serializeError } from './interpreter-v7WiwSP9.js';
|
|
3
3
|
export { ASTNodes, EvalError, EvalOptions, EvalResult, EvalSuccess, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, ReferenceInfo, collectAllReferences, evaluateExpression, getMessage, hasPartialNodes, parseTolerantly, renameReferences, tokenizeTolerantly } from './interpreter.js';
|
|
4
|
-
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens } from './processor.js';
|
|
5
|
-
export { A as ASTNode, B as BaseSymbolType, a as BooleanSymbol, C as ColorManager, b as ColorSpecification, c as ColorSpecificationSchema, d as ColorSymbol, e as Config, f as ConfigOptions, g as ConstantsSpecification, h as ConstantsSpecificationSchema, D as DEFAULT_LANGUAGE_OPTIONS, i as DictionarySymbol, F as FunctionSpecification, j as FunctionSpecificationSchema, k as FunctionsManager, I as ISymbolType, J as JsValue, L as LanguageOptions, l as ListSymbol, N as NullSymbol, m as NumberSymbol, n as NumberWithUnitSymbol, O as Operations, R as ReferenceRecord, o as ReferenceRecordValue, p as ReservedKeyword, S as StringSymbol, q as SupportedFormats, r as SymbolMetadata, T as Token, s as TokenSymbol, t as TokenType, U as UNINTERPRETED_KEYWORDS, u as UnitManager, v as UnitSpecification, w as UnitSpecificationSchema, x as collectReferenceNodes, y as filterAST, z as getResultTypeName, E as jsValueToSymbolType, G as walkAST } from './types-
|
|
6
|
-
export { B as BuildTokensOptions, C as CreateTokenParams, b as CreateTokenResult, D as DeleteTokenParams, c as DeleteTokenResult, I as IssuesMap, d as ProcessorOutput, e as ProcessorResult, R as ResolveIssue, T as TokenBuilder, f as TokenData, g as TokenDataMap, h as TokenOperationResult, i as TokenResolver, U as UpdateTokenParams, j as UpdateTokenResult, V as ValidationIssue, k as ValidationSeverity, l as buildTokens } from './types-
|
|
4
|
+
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './processor.js';
|
|
5
|
+
export { A as ASTNode, B as BaseSymbolType, a as BooleanSymbol, C as ColorManager, b as ColorSpecification, c as ColorSpecificationSchema, d as ColorSymbol, e as Config, f as ConfigOptions, g as ConstantsSpecification, h as ConstantsSpecificationSchema, D as DEFAULT_LANGUAGE_OPTIONS, i as DictionarySymbol, F as FunctionSpecification, j as FunctionSpecificationSchema, k as FunctionsManager, I as ISymbolType, J as JsValue, L as LanguageOptions, l as ListSymbol, N as NullSymbol, m as NumberSymbol, n as NumberWithUnitSymbol, O as Operations, R as ReferenceRecord, o as ReferenceRecordValue, p as ReservedKeyword, S as StringSymbol, q as SupportedFormats, r as SymbolMetadata, T as Token, s as TokenSymbol, t as TokenType, U as UNINTERPRETED_KEYWORDS, u as UnitManager, v as UnitSpecification, w as UnitSpecificationSchema, x as collectReferenceNodes, y as filterAST, z as getResultTypeName, E as jsValueToSymbolType, G as walkAST } from './types-EB8V9c46.js';
|
|
6
|
+
export { B as BuildTokensOptions, C as CreateTokenParams, b as CreateTokenResult, D as DeleteTokenParams, c as DeleteTokenResult, I as IssuesMap, d as ProcessorOutput, e as ProcessorResult, R as ResolveIssue, T as TokenBuilder, f as TokenData, g as TokenDataMap, h as TokenOperationResult, i as TokenResolver, U as UpdateTokenParams, j as UpdateTokenResult, V as ValidationIssue, k as ValidationSeverity, l as buildTokens } from './types-BI0AZ4Ej.js';
|
|
7
7
|
export { SchemaFetcherOptions, TokenScriptSchemaContent, TokenScriptSchemaResponse, fetchAndRegisterSchemas, fetchTokenScriptSchema } from './schema.js';
|
|
8
8
|
import '@tokens-studio/schema-validation';
|
|
9
9
|
|
package/dist/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, TokenResolver, UnitManager, UnitSpecificationSchema, ValidationSeverity, buildTokens, builders_exports as builders, collectAllReferences, collectReferenceNodes, errorClasses, errorHelpers, evaluateExpression, fetchAndRegisterSchemas, fetchTokenScriptSchema, filterAST, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, hasPartialNodes, parseExpression, parseTolerantly, processTokenSets, processTokens, renameReferences, tokenizeTolerantly, walkAST } from './chunk-
|
|
2
|
-
export { BaseSymbolType, BooleanSymbol, ColorErrorCode, ColorSymbol, ConfigErrorCode, DictionarySymbol, FunctionsErrorCode, InterpreterError, InterpreterErrorCode, LanguageError, LexerError, LexerErrorCode, ListSymbol, NullSymbol, NumberSymbol, NumberWithUnitSymbol, OperationsErrorCode, ParserError, ParserErrorCode, ProcessorError, ProcessorErrorCode, StringSymbol, SymbolsErrorCode, TokenSymbol, UnitErrorCode, getMessage, getResultTypeName, isInterpreterError, isLanguageError, isLexerError, isParserError, isProcessorError, jsValueToSymbolType, serializeError } from './chunk-
|
|
3
|
-
export { Operations, ReservedKeyword, SupportedFormats, TokenType, UNINTERPRETED_KEYWORDS } from './chunk-
|
|
1
|
+
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, TokenResolver, UnitManager, UnitSpecificationSchema, ValidationSeverity, buildTokens, builders_exports as builders, collectAllReferences, collectReferenceNodes, errorClasses, errorHelpers, evaluateExpression, fetchAndRegisterSchemas, fetchTokenScriptSchema, filterAST, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, hasPartialNodes, parseExpression, parseTolerantly, processTokenSets, processTokens, renameReferences, tokenizeTolerantly, validateTokenName, validateTokenPath, walkAST } from './chunk-RWXDOZAS.js';
|
|
2
|
+
export { BaseSymbolType, BooleanSymbol, ColorErrorCode, ColorSymbol, ConfigErrorCode, DictionarySymbol, FunctionsErrorCode, InterpreterError, InterpreterErrorCode, LanguageError, LexerError, LexerErrorCode, ListSymbol, NullSymbol, NumberSymbol, NumberWithUnitSymbol, OperationsErrorCode, ParserError, ParserErrorCode, ProcessorError, ProcessorErrorCode, StringSymbol, SymbolsErrorCode, TokenSymbol, UnitErrorCode, getMessage, getResultTypeName, isInterpreterError, isLanguageError, isLexerError, isParserError, isProcessorError, jsValueToSymbolType, serializeError } from './chunk-LSTH2XJ4.js';
|
|
3
|
+
export { Operations, ReservedKeyword, SupportedFormats, TokenType, UNINTERPRETED_KEYWORDS } from './chunk-ODVWXGOM.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Token, A as ASTNode, I as ISymbolType, e as Config, R as ReferenceRecord } from './types-
|
|
1
|
+
import { T as Token, A as ASTNode, I as ISymbolType, e as Config, R as ReferenceRecord } from './types-EB8V9c46.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Union type for serialized error data that can be passed in error data objects.
|
|
@@ -186,6 +186,7 @@ declare enum InterpreterErrorCode {
|
|
|
186
186
|
FOR_EACH_NOT_LIST = "INT_FOR_EACH_NOT_LIST",
|
|
187
187
|
FOR_EACH_VARIABLE_SHADOW = "INT_FOR_EACH_VARIABLE_SHADOW",
|
|
188
188
|
FOR_EACH_DUPLICATE_VARS = "INT_FOR_EACH_DUPLICATE_VARS",
|
|
189
|
+
TEMPLATE_INVALID_TYPE = "INT_TEMPLATE_INVALID_TYPE",
|
|
189
190
|
UNKNOWN_ERROR = "INT_UNKNOWN_ERROR"
|
|
190
191
|
}
|
|
191
192
|
interface InterpreterErrorData {
|
|
@@ -282,6 +283,9 @@ interface InterpreterErrorData {
|
|
|
282
283
|
[InterpreterErrorCode.FOR_EACH_DUPLICATE_VARS]: {
|
|
283
284
|
name: string;
|
|
284
285
|
};
|
|
286
|
+
[InterpreterErrorCode.TEMPLATE_INVALID_TYPE]: {
|
|
287
|
+
valueType: string;
|
|
288
|
+
};
|
|
285
289
|
[InterpreterErrorCode.UNKNOWN_ERROR]: Record<string, never>;
|
|
286
290
|
}
|
|
287
291
|
|
|
@@ -292,7 +296,8 @@ declare enum LexerErrorCode {
|
|
|
292
296
|
EMPTY_VARIABLE_NAME = "LEXER_EMPTY_VARIABLE_NAME",
|
|
293
297
|
INVALID_HEX_COLOR_FORMAT = "LEXER_INVALID_HEX_COLOR_FORMAT",
|
|
294
298
|
EXPECTED_CHARACTER = "LEXER_EXPECTED_CHARACTER",
|
|
295
|
-
MULTIPLE_DECIMAL_POINTS = "LEXER_MULTIPLE_DECIMAL_POINTS"
|
|
299
|
+
MULTIPLE_DECIMAL_POINTS = "LEXER_MULTIPLE_DECIMAL_POINTS",
|
|
300
|
+
UNTERMINATED_TEMPLATE_STRING = "LEXER_UNTERMINATED_TEMPLATE_STRING"
|
|
296
301
|
}
|
|
297
302
|
interface LexerErrorData {
|
|
298
303
|
[LexerErrorCode.INVALID_CHARACTER]: {
|
|
@@ -316,6 +321,7 @@ interface LexerErrorData {
|
|
|
316
321
|
[LexerErrorCode.MULTIPLE_DECIMAL_POINTS]: {
|
|
317
322
|
value: string;
|
|
318
323
|
};
|
|
324
|
+
[LexerErrorCode.UNTERMINATED_TEMPLATE_STRING]: Record<string, never>;
|
|
319
325
|
}
|
|
320
326
|
|
|
321
327
|
declare enum OperationsErrorCode {
|
|
@@ -616,6 +622,13 @@ declare class Lexer {
|
|
|
616
622
|
private stringElement;
|
|
617
623
|
private reference;
|
|
618
624
|
private explicitString;
|
|
625
|
+
/**
|
|
626
|
+
* Read a backtick-delimited template string.
|
|
627
|
+
* Supports escape sequences: \{ \$ \` \\
|
|
628
|
+
* The raw content (with escapes preserved) is stored as the token value.
|
|
629
|
+
* The parser handles splitting into segments.
|
|
630
|
+
*/
|
|
631
|
+
private templateString;
|
|
619
632
|
private hexColor;
|
|
620
633
|
private collectToken;
|
|
621
634
|
nextToken(): Token;
|
|
@@ -765,6 +778,15 @@ declare class Parser {
|
|
|
765
778
|
private factor;
|
|
766
779
|
private attributeAccess;
|
|
767
780
|
private functionCall;
|
|
781
|
+
/**
|
|
782
|
+
* Parse a TEMPLATE_STRING token into a TemplateStringNode.
|
|
783
|
+
* Scans the raw content for:
|
|
784
|
+
* - {ref.path} → ReferenceNode
|
|
785
|
+
* - ${expression} → parsed sub-expression
|
|
786
|
+
* - \{ \${ \` \\ → escaped literals (backslash removed)
|
|
787
|
+
* - everything else → literal StringNode segments
|
|
788
|
+
*/
|
|
789
|
+
private templateString;
|
|
768
790
|
parse(inlineMode?: boolean): ASTNode | null;
|
|
769
791
|
}
|
|
770
792
|
interface ParseExpressionResult {
|
|
@@ -808,6 +830,12 @@ declare class Interpreter {
|
|
|
808
830
|
private visitBinOpNode;
|
|
809
831
|
private visitNumNode;
|
|
810
832
|
private visitStringNode;
|
|
833
|
+
private visitTemplateStringNode;
|
|
834
|
+
/**
|
|
835
|
+
* Validate that a value is a primitive type allowed in template string interpolation.
|
|
836
|
+
* Lists, Dictionaries, and non-hex Colors are rejected.
|
|
837
|
+
*/
|
|
838
|
+
private validateTemplateValue;
|
|
811
839
|
/**
|
|
812
840
|
* Bare identifiers are treated as string literals if not found as variables
|
|
813
841
|
* Check symbol table first (variables override references), then references
|