@tokens-studio/tokenscript-interpreter 0.36.0 → 0.36.1
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-HHCPY4WI.js +6456 -0
- package/dist/chunk-HHCPY4WI.js.map +1 -0
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +1 -1
- package/dist/compliance-suite.js +1 -1
- package/dist/lib/{chunk-ZURBS3EE.cjs → chunk-IQ5YGWZK.cjs} +7 -3
- package/dist/lib/chunk-IQ5YGWZK.cjs.map +1 -0
- package/dist/lib/{chunk-6FR6JBDM.js → chunk-QAHGKPQ4.js} +7 -3
- package/dist/lib/chunk-QAHGKPQ4.js.map +1 -0
- package/dist/lib/index.cjs +50 -50
- package/dist/lib/index.js +1 -1
- package/dist/lib/interpreter.cjs +32 -32
- package/dist/lib/interpreter.js +1 -1
- package/dist/lib/processor-node.cjs +3 -3
- package/dist/lib/processor-node.js +1 -1
- package/dist/lib/processor.cjs +15 -15
- package/dist/lib/processor.js +1 -1
- package/dist/lib/schema.cjs +3 -3
- package/dist/lib/schema.js +1 -1
- package/dist/processor/index.js +1 -1
- package/dist/repl.js +1 -1
- package/package.json +1 -1
- package/dist/lib/chunk-6FR6JBDM.js.map +0 -1
- package/dist/lib/chunk-ZURBS3EE.cjs.map +0 -1
package/dist/lib/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIQ5YGWZK_cjs = require('./chunk-IQ5YGWZK.cjs');
|
|
4
4
|
var chunkLMGHS2NP_cjs = require('./chunk-LMGHS2NP.cjs');
|
|
5
5
|
var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
6
6
|
|
|
@@ -8,199 +8,199 @@ var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ASTNodes", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkIQ5YGWZK_cjs.ASTNodes; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ColorManager", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkIQ5YGWZK_cjs.ColorManager; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "ColorSpecificationSchema", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkIQ5YGWZK_cjs.ColorSpecificationSchema; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "Config", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkIQ5YGWZK_cjs.Config; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "ConstantsSpecificationSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkIQ5YGWZK_cjs.ConstantsSpecificationSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE_OPTIONS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkIQ5YGWZK_cjs.DEFAULT_LANGUAGE_OPTIONS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "FunctionSpecificationSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkIQ5YGWZK_cjs.FunctionSpecificationSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FunctionsManager", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkIQ5YGWZK_cjs.FunctionsManager; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "IncompleteType", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkIQ5YGWZK_cjs.IncompleteType; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "Interpreter", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkIQ5YGWZK_cjs.Interpreter; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Lexer", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkIQ5YGWZK_cjs.Lexer; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ParseState", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkIQ5YGWZK_cjs.ParseState; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "Parser", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkIQ5YGWZK_cjs.Parser; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PartialBinOpNode", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialBinOpNode; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PartialFunctionCallNode", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialFunctionCallNode; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "PartialParenNode", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialParenNode; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "PartialReferenceNode", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialReferenceNode; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "PartialStringNode", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialStringNode; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "PartialUnaryOpNode", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialUnaryOpNode; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "TokenResolver", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkIQ5YGWZK_cjs.TokenResolver; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "UnitManager", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkIQ5YGWZK_cjs.UnitManager; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "UnitSpecificationSchema", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkIQ5YGWZK_cjs.UnitSpecificationSchema; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ValidationSeverity", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkIQ5YGWZK_cjs.ValidationSeverity; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "buildTokens", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkIQ5YGWZK_cjs.buildTokens; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "builders", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkIQ5YGWZK_cjs.builders_exports; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "collectAllReferences", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkIQ5YGWZK_cjs.collectAllReferences; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "collectReferenceNodes", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkIQ5YGWZK_cjs.collectReferenceNodes; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "errorClasses", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkIQ5YGWZK_cjs.errorClasses; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "errorHelpers", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkIQ5YGWZK_cjs.errorHelpers; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "evaluateExpression", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkIQ5YGWZK_cjs.evaluateExpression; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "fetchAndRegisterSchemas", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkIQ5YGWZK_cjs.fetchAndRegisterSchemas; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "fetchTokenScriptSchema", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkIQ5YGWZK_cjs.fetchTokenScriptSchema; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "filterAST", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkIQ5YGWZK_cjs.filterAST; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "flattenChildrenMap", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkIQ5YGWZK_cjs.flattenChildrenMap; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "flattenChildrenObject", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkIQ5YGWZK_cjs.flattenChildrenObject; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "getAffectedTokens", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkIQ5YGWZK_cjs.getAffectedTokens; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "getBrokenReferences", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkIQ5YGWZK_cjs.getBrokenReferences; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "getModifiedDependants", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkIQ5YGWZK_cjs.getModifiedDependants; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "getRenamedReferences", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkIQ5YGWZK_cjs.getRenamedReferences; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "hasPartialNodes", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkIQ5YGWZK_cjs.hasPartialNodes; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "parseExpression", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkIQ5YGWZK_cjs.parseExpression; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "parseTolerantly", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkIQ5YGWZK_cjs.parseTolerantly; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "processTokenSets", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkIQ5YGWZK_cjs.processTokenSets; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "processTokens", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkIQ5YGWZK_cjs.processTokens; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "renameReferences", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkIQ5YGWZK_cjs.renameReferences; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "tokenizeTolerantly", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkIQ5YGWZK_cjs.tokenizeTolerantly; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "validateTokenName", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkIQ5YGWZK_cjs.validateTokenName; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "validateTokenPath", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkIQ5YGWZK_cjs.validateTokenPath; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "walkAST", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkIQ5YGWZK_cjs.walkAST; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "BaseSymbolType", {
|
|
206
206
|
enumerable: true,
|
package/dist/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-QAHGKPQ4.js';
|
|
2
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
3
|
export { Operations, ReservedKeyword, SupportedFormats, TokenType, UNINTERPRETED_KEYWORDS } from './chunk-ODVWXGOM.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/interpreter.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIQ5YGWZK_cjs = require('./chunk-IQ5YGWZK.cjs');
|
|
4
4
|
var chunkLMGHS2NP_cjs = require('./chunk-LMGHS2NP.cjs');
|
|
5
5
|
var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
6
6
|
|
|
@@ -8,127 +8,127 @@ var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ASTNodes", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkIQ5YGWZK_cjs.ASTNodes; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ColorManager", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkIQ5YGWZK_cjs.ColorManager; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "ColorSpecificationSchema", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkIQ5YGWZK_cjs.ColorSpecificationSchema; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "Config", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkIQ5YGWZK_cjs.Config; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "ConstantsSpecificationSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkIQ5YGWZK_cjs.ConstantsSpecificationSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE_OPTIONS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkIQ5YGWZK_cjs.DEFAULT_LANGUAGE_OPTIONS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "FunctionSpecificationSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkIQ5YGWZK_cjs.FunctionSpecificationSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FunctionsManager", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkIQ5YGWZK_cjs.FunctionsManager; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "IncompleteType", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkIQ5YGWZK_cjs.IncompleteType; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "Interpreter", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkIQ5YGWZK_cjs.Interpreter; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Lexer", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkIQ5YGWZK_cjs.Lexer; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ParseState", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkIQ5YGWZK_cjs.ParseState; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "Parser", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkIQ5YGWZK_cjs.Parser; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PartialBinOpNode", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialBinOpNode; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PartialFunctionCallNode", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialFunctionCallNode; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "PartialParenNode", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialParenNode; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "PartialReferenceNode", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialReferenceNode; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "PartialStringNode", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialStringNode; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "PartialUnaryOpNode", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkIQ5YGWZK_cjs.PartialUnaryOpNode; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "UnitManager", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkIQ5YGWZK_cjs.UnitManager; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "UnitSpecificationSchema", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkIQ5YGWZK_cjs.UnitSpecificationSchema; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "collectAllReferences", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkIQ5YGWZK_cjs.collectAllReferences; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "collectReferenceNodes", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkIQ5YGWZK_cjs.collectReferenceNodes; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "evaluateExpression", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkIQ5YGWZK_cjs.evaluateExpression; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "filterAST", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkIQ5YGWZK_cjs.filterAST; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "hasPartialNodes", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkIQ5YGWZK_cjs.hasPartialNodes; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "parseExpression", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkIQ5YGWZK_cjs.parseExpression; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "parseTolerantly", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkIQ5YGWZK_cjs.parseTolerantly; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "renameReferences", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkIQ5YGWZK_cjs.renameReferences; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "tokenizeTolerantly", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkIQ5YGWZK_cjs.tokenizeTolerantly; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "walkAST", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkIQ5YGWZK_cjs.walkAST; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "BaseSymbolType", {
|
|
134
134
|
enumerable: true,
|
package/dist/lib/interpreter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, UnitManager, UnitSpecificationSchema, collectAllReferences, collectReferenceNodes, evaluateExpression, filterAST, hasPartialNodes, parseExpression, parseTolerantly, renameReferences, tokenizeTolerantly, walkAST } 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, UnitManager, UnitSpecificationSchema, collectAllReferences, collectReferenceNodes, evaluateExpression, filterAST, hasPartialNodes, parseExpression, parseTolerantly, renameReferences, tokenizeTolerantly, walkAST } from './chunk-QAHGKPQ4.js';
|
|
2
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
3
|
export { Operations, ReservedKeyword, SupportedFormats, TokenType, UNINTERPRETED_KEYWORDS } from './chunk-ODVWXGOM.js';
|
|
4
4
|
//# sourceMappingURL=interpreter.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIQ5YGWZK_cjs = require('./chunk-IQ5YGWZK.cjs');
|
|
4
4
|
require('./chunk-LMGHS2NP.cjs');
|
|
5
5
|
var chunkLEYHQJTL_cjs = require('./chunk-LEYHQJTL.cjs');
|
|
6
6
|
var fs = require('fs/promises');
|
|
@@ -175,10 +175,10 @@ async function processTokensFromFiles({
|
|
|
175
175
|
activeTheme,
|
|
176
176
|
builder
|
|
177
177
|
}) {
|
|
178
|
-
await
|
|
178
|
+
await chunkIQ5YGWZK_cjs.fetchAndRegisterSchemas(schemas ?? []);
|
|
179
179
|
const jsonFiles = await collectJsonFiles(inputPath);
|
|
180
180
|
const normalizedFiles = normalizeJsonFiles(jsonFiles);
|
|
181
|
-
return
|
|
181
|
+
return chunkIQ5YGWZK_cjs.processTokenSets(normalizedFiles, {
|
|
182
182
|
activeSets,
|
|
183
183
|
activeTheme,
|
|
184
184
|
builder
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fetchAndRegisterSchemas, processTokenSets } from './chunk-
|
|
1
|
+
import { fetchAndRegisterSchemas, processTokenSets } from './chunk-QAHGKPQ4.js';
|
|
2
2
|
import './chunk-LSTH2XJ4.js';
|
|
3
3
|
import { __name } from './chunk-ODVWXGOM.js';
|
|
4
4
|
import fs from 'fs/promises';
|
package/dist/lib/processor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIQ5YGWZK_cjs = require('./chunk-IQ5YGWZK.cjs');
|
|
4
4
|
require('./chunk-LMGHS2NP.cjs');
|
|
5
5
|
require('./chunk-LEYHQJTL.cjs');
|
|
6
6
|
|
|
@@ -8,59 +8,59 @@ require('./chunk-LEYHQJTL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "TokenResolver", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkIQ5YGWZK_cjs.TokenResolver; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ValidationSeverity", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkIQ5YGWZK_cjs.ValidationSeverity; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "buildTokens", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkIQ5YGWZK_cjs.buildTokens; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "builders", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkIQ5YGWZK_cjs.builders_exports; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "flattenChildrenMap", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkIQ5YGWZK_cjs.flattenChildrenMap; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "flattenChildrenObject", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkIQ5YGWZK_cjs.flattenChildrenObject; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "getAffectedTokens", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkIQ5YGWZK_cjs.getAffectedTokens; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "getBrokenReferences", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkIQ5YGWZK_cjs.getBrokenReferences; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "getModifiedDependants", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkIQ5YGWZK_cjs.getModifiedDependants; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "getRenamedReferences", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkIQ5YGWZK_cjs.getRenamedReferences; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "processTokenSets", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkIQ5YGWZK_cjs.processTokenSets; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "processTokens", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkIQ5YGWZK_cjs.processTokens; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "validateTokenName", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkIQ5YGWZK_cjs.validateTokenName; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "validateTokenPath", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkIQ5YGWZK_cjs.validateTokenPath; }
|
|
64
64
|
});
|
|
65
65
|
//# sourceMappingURL=processor.cjs.map
|
|
66
66
|
//# sourceMappingURL=processor.cjs.map
|
package/dist/lib/processor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { TokenResolver, ValidationSeverity, buildTokens, builders_exports as builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './chunk-
|
|
1
|
+
export { TokenResolver, ValidationSeverity, buildTokens, builders_exports as builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './chunk-QAHGKPQ4.js';
|
|
2
2
|
import './chunk-LSTH2XJ4.js';
|
|
3
3
|
import './chunk-ODVWXGOM.js';
|
|
4
4
|
//# sourceMappingURL=processor.js.map
|
package/dist/lib/schema.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIQ5YGWZK_cjs = require('./chunk-IQ5YGWZK.cjs');
|
|
4
4
|
require('./chunk-LMGHS2NP.cjs');
|
|
5
5
|
require('./chunk-LEYHQJTL.cjs');
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ require('./chunk-LEYHQJTL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "fetchAndRegisterSchemas", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkIQ5YGWZK_cjs.fetchAndRegisterSchemas; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "fetchTokenScriptSchema", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkIQ5YGWZK_cjs.fetchTokenScriptSchema; }
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=schema.cjs.map
|
|
18
18
|
//# sourceMappingURL=schema.cjs.map
|
package/dist/lib/schema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { fetchAndRegisterSchemas, fetchTokenScriptSchema } from './chunk-
|
|
1
|
+
export { fetchAndRegisterSchemas, fetchTokenScriptSchema } from './chunk-QAHGKPQ4.js';
|
|
2
2
|
import './chunk-LSTH2XJ4.js';
|
|
3
3
|
import './chunk-ODVWXGOM.js';
|
|
4
4
|
//# sourceMappingURL=schema.js.map
|
package/dist/processor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NumberWithUnitSymbol, isLanguageError, ProcessorError, isObject, isNumber, isString, renameReferences, parseExpression, DictionarySymbol, serializeInterpreterResult, stringifyInterpreterResult, StringSymbol, NumberSymbol, isBoolean, BooleanSymbol, isNull, NullSymbol, isArray, TokenSymbol, ListSymbol, isTokenscriptSymbol, Interpreter, jsValueToSymbolType, getKeyAlt } from '../chunk-
|
|
1
|
+
import { NumberWithUnitSymbol, isLanguageError, ProcessorError, isObject, isNumber, isString, renameReferences, parseExpression, DictionarySymbol, serializeInterpreterResult, stringifyInterpreterResult, StringSymbol, NumberSymbol, isBoolean, BooleanSymbol, isNull, NullSymbol, isArray, TokenSymbol, ListSymbol, isTokenscriptSymbol, Interpreter, jsValueToSymbolType, getKeyAlt } from '../chunk-HHCPY4WI.js';
|
|
2
2
|
import { UNINTERPRETED_KEYWORDS } from '../chunk-AXH5N7KV.js';
|
|
3
3
|
import { z } from '@tokens-studio/schema-validation';
|
|
4
4
|
|
package/dist/repl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lexer, Parser, Interpreter, Config, getAssignmentInfo, getReassignmentInfo, isNone, parseColorSpec, parseFunctionSpec } from './chunk-
|
|
1
|
+
import { Lexer, Parser, Interpreter, Config, getAssignmentInfo, getReassignmentInfo, isNone, parseColorSpec, parseFunctionSpec } from './chunk-HHCPY4WI.js';
|
|
2
2
|
import './chunk-AXH5N7KV.js';
|
|
3
3
|
import { ZodError } from '@tokens-studio/schema-validation';
|
|
4
4
|
import * as readlineSync from 'readline-sync';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokens-studio/tokenscript-interpreter",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.1",
|
|
4
4
|
"description": "A TypeScript interpreter for TokenScript, a domain-specific language for design token manipulation and computation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib/index.js",
|