@cobol-ts/cel 0.0.3 → 0.0.4
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/index.js.map +1 -0
- package/dist/src/cel.evaluate.d.ts +4 -0
- package/dist/src/cel.evaluate.js +9 -0
- package/dist/src/cel.evaluate.js.map +1 -0
- package/dist/src/cel.identifiers.d.ts +27 -0
- package/dist/src/cel.identifiers.js +66 -0
- package/dist/src/cel.identifiers.js.map +1 -0
- package/dist/src/cel.identifiers.spec.d.ts +1 -0
- package/dist/src/cel.identifiers.spec.js +110 -0
- package/dist/src/cel.identifiers.spec.js.map +1 -0
- package/dist/src/cel.interpreter.d.ts +31 -0
- package/dist/src/cel.interpreter.js +3 -0
- package/dist/src/cel.interpreter.js.map +1 -0
- package/dist/src/cel.interpreter.spec.d.ts +1 -0
- package/dist/src/cel.interpreter.spec.js +291 -0
- package/dist/src/cel.interpreter.spec.js.map +1 -0
- package/dist/src/cel.lexer.d.ts +26 -0
- package/dist/src/cel.lexer.js +185 -0
- package/dist/src/cel.lexer.js.map +1 -0
- package/dist/src/cel.normaliser.interpreter.d.ts +24 -0
- package/dist/src/cel.normaliser.interpreter.js +102 -0
- package/dist/src/cel.normaliser.interpreter.js.map +1 -0
- package/dist/src/cel.normaliser.interpreter.spec.d.ts +1 -0
- package/dist/src/cel.normaliser.interpreter.spec.js +230 -0
- package/dist/src/cel.normaliser.interpreter.spec.js.map +1 -0
- package/dist/src/cel.parser.d.ts +4 -0
- package/dist/src/cel.parser.js +387 -0
- package/dist/src/cel.parser.js.map +1 -0
- package/dist/src/cel.parser.spec.d.ts +1 -0
- package/dist/src/cel.parser.spec.js +296 -0
- package/dist/src/cel.parser.spec.js.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseCel = parseCel;
|
|
4
|
+
const cel_lexer_1 = require("./cel.lexer");
|
|
5
|
+
const precedence = {
|
|
6
|
+
'||': 1, '&&': 2,
|
|
7
|
+
'==': 3, '!=': 3,
|
|
8
|
+
'<': 4, '<=': 4, '>': 4, '>=': 4, in: 4,
|
|
9
|
+
'+': 5, '-': 5,
|
|
10
|
+
'*': 6, '/': 6, '%': 6
|
|
11
|
+
};
|
|
12
|
+
function isFailure(result) {
|
|
13
|
+
return 'errors' in result;
|
|
14
|
+
}
|
|
15
|
+
/** Converts lexer tokens to typed CEL literals, without knowing about interpreters. */
|
|
16
|
+
class CelLiteralReader {
|
|
17
|
+
readNumber(token) {
|
|
18
|
+
const raw = token.text;
|
|
19
|
+
const unsigned = /u$/i.test(raw);
|
|
20
|
+
const digits = unsigned ? raw.slice(0, -1) : raw;
|
|
21
|
+
if (!/^0x/i.test(digits) && /[.eE]/.test(digits)) {
|
|
22
|
+
if (unsigned) {
|
|
23
|
+
throw new cel_lexer_1.CelSyntaxError('Unsigned suffix is not allowed on floating-point values', token.line, token.column);
|
|
24
|
+
}
|
|
25
|
+
const value = Number(digits);
|
|
26
|
+
if (!Number.isFinite(value)) {
|
|
27
|
+
throw new cel_lexer_1.CelSyntaxError('Invalid floating-point number', token.line, token.column);
|
|
28
|
+
}
|
|
29
|
+
return { type: 'double', value };
|
|
30
|
+
}
|
|
31
|
+
const value = BigInt(digits);
|
|
32
|
+
return unsigned ? { type: 'uint', value } : { type: 'int', value };
|
|
33
|
+
}
|
|
34
|
+
readString(token) {
|
|
35
|
+
const raw = token.text;
|
|
36
|
+
const quote = raw[0];
|
|
37
|
+
const triple = raw.startsWith(quote.repeat(3));
|
|
38
|
+
const markLength = triple ? 3 : 1;
|
|
39
|
+
const body = raw.slice(markLength, -markLength);
|
|
40
|
+
let value = '';
|
|
41
|
+
for (let i = 0; i < body.length; i++) {
|
|
42
|
+
if (body[i] !== '\\') {
|
|
43
|
+
value += body[i];
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
const escape = body[++i];
|
|
47
|
+
const simple = {
|
|
48
|
+
n: '\n', r: '\r', t: '\t', b: '\b', f: '\f', v: '\v',
|
|
49
|
+
'\\': '\\', '"': '"', "'": "'", a: '\x07', '?': '?'
|
|
50
|
+
};
|
|
51
|
+
if (Object.prototype.hasOwnProperty.call(simple, escape)) {
|
|
52
|
+
value += simple[escape];
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (escape === 'x' || escape === 'u' || escape === 'U') {
|
|
56
|
+
const length = escape === 'x' ? 2 : escape === 'u' ? 4 : 8;
|
|
57
|
+
const digits = body.slice(i + 1, i + 1 + length);
|
|
58
|
+
if (!new RegExp(`^[0-9a-fA-F]{${length}}$`).test(digits)) {
|
|
59
|
+
throw new cel_lexer_1.CelSyntaxError('Invalid string escape', token.line, token.column);
|
|
60
|
+
}
|
|
61
|
+
const codepoint = parseInt(digits, 16);
|
|
62
|
+
if (codepoint > 0x10ffff) {
|
|
63
|
+
throw new cel_lexer_1.CelSyntaxError('Invalid Unicode code point', token.line, token.column);
|
|
64
|
+
}
|
|
65
|
+
value += String.fromCodePoint(codepoint);
|
|
66
|
+
i += length;
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
throw new cel_lexer_1.CelSyntaxError(`Unknown string escape \\${escape ?? ''}`, token.line, token.column);
|
|
70
|
+
}
|
|
71
|
+
return { type: 'string', value };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Parses syntax and delegates meaning to CelInterpreter<T>.
|
|
76
|
+
*
|
|
77
|
+
* Each parser instance belongs to one evaluation: cursor and diagnostics never
|
|
78
|
+
* leak into another call. No AST or second traversal is constructed.
|
|
79
|
+
*/
|
|
80
|
+
class CelParser {
|
|
81
|
+
tokens;
|
|
82
|
+
interpreter;
|
|
83
|
+
cursor = 0;
|
|
84
|
+
syntaxErrors;
|
|
85
|
+
semanticErrors = [];
|
|
86
|
+
literals = new CelLiteralReader();
|
|
87
|
+
constructor(tokens, lexicalErrors, interpreter) {
|
|
88
|
+
this.tokens = tokens;
|
|
89
|
+
this.interpreter = interpreter;
|
|
90
|
+
this.syntaxErrors = [...lexicalErrors];
|
|
91
|
+
this.lexicalErrorCount = lexicalErrors.length;
|
|
92
|
+
}
|
|
93
|
+
lexicalErrorCount;
|
|
94
|
+
parse() {
|
|
95
|
+
let result;
|
|
96
|
+
try {
|
|
97
|
+
result = this.expression(0);
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
this.recordSyntaxError(error);
|
|
101
|
+
}
|
|
102
|
+
this.recoverTopLevel();
|
|
103
|
+
const errors = [...this.syntaxErrors, ...this.semanticErrors];
|
|
104
|
+
if (errors.length > 0)
|
|
105
|
+
return { errors };
|
|
106
|
+
if (result === undefined || isFailure(result)) {
|
|
107
|
+
return { errors: ['CEL parsing did not produce a result'] };
|
|
108
|
+
}
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
peek() { return this.tokens[this.cursor]; }
|
|
112
|
+
advance() { return this.tokens[this.cursor++]; }
|
|
113
|
+
is(text) { return this.peek().text === text; }
|
|
114
|
+
fail(message, token = this.peek()) {
|
|
115
|
+
throw new cel_lexer_1.CelSyntaxError(message, token.line, token.column);
|
|
116
|
+
}
|
|
117
|
+
consume(text) {
|
|
118
|
+
if (!this.is(text)) {
|
|
119
|
+
this.fail(`Expected ${JSON.stringify(text)}, found ${JSON.stringify(this.peek().text)}`);
|
|
120
|
+
}
|
|
121
|
+
this.advance();
|
|
122
|
+
}
|
|
123
|
+
readIdentifier() {
|
|
124
|
+
if (this.peek().kind !== 'identifier') {
|
|
125
|
+
this.fail(`Expected identifier, found ${JSON.stringify(this.peek().text)}`);
|
|
126
|
+
}
|
|
127
|
+
return this.advance().text;
|
|
128
|
+
}
|
|
129
|
+
/** Records errors only at their origin; propagation never adds duplicates. */
|
|
130
|
+
interpret(operation) {
|
|
131
|
+
const result = operation();
|
|
132
|
+
if (isFailure(result))
|
|
133
|
+
this.semanticErrors.push(...result.errors);
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
/** Parent operations cannot receive failed children. */
|
|
137
|
+
combine(operands, operation) {
|
|
138
|
+
if (operands.some(isFailure))
|
|
139
|
+
return { errors: [] };
|
|
140
|
+
const values = operands.map(operand => operand.value);
|
|
141
|
+
return this.interpret(() => operation(...values));
|
|
142
|
+
}
|
|
143
|
+
expression(minimum) {
|
|
144
|
+
let left = this.prefix();
|
|
145
|
+
while (true) {
|
|
146
|
+
if (this.is('?') && minimum === 0) {
|
|
147
|
+
this.advance();
|
|
148
|
+
const whenTrue = this.expression(0);
|
|
149
|
+
this.consume(':');
|
|
150
|
+
const whenFalse = this.expression(0);
|
|
151
|
+
left = this.combine([left, whenTrue, whenFalse], (condition, yes, no) => this.interpreter.conditional(condition, yes, no));
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
const operator = this.peek().text;
|
|
155
|
+
const priority = precedence[operator];
|
|
156
|
+
if (priority === undefined || priority < minimum)
|
|
157
|
+
break;
|
|
158
|
+
this.advance();
|
|
159
|
+
const right = this.expression(priority + 1);
|
|
160
|
+
left = this.combine([left, right], (a, b) => this.interpreter.binary(operator, a, b));
|
|
161
|
+
}
|
|
162
|
+
return left;
|
|
163
|
+
}
|
|
164
|
+
prefix() {
|
|
165
|
+
if (this.is('!') || this.is('-') || this.is('+')) {
|
|
166
|
+
const operator = this.advance().text;
|
|
167
|
+
return this.combine([this.prefix()], value => this.interpreter.unary(operator, value));
|
|
168
|
+
}
|
|
169
|
+
let result = this.atom();
|
|
170
|
+
while (true) {
|
|
171
|
+
if (this.is('.')) {
|
|
172
|
+
this.advance();
|
|
173
|
+
const name = this.readIdentifier();
|
|
174
|
+
if (this.is('(')) {
|
|
175
|
+
const args = this.arguments_();
|
|
176
|
+
result = this.combine([result, ...args], (target, ...values) => this.interpreter.call(target, name, values));
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
result = this.combine([result], target => this.interpreter.member(target, name));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
else if (this.is('[')) {
|
|
183
|
+
this.advance();
|
|
184
|
+
const index = this.expression(0);
|
|
185
|
+
this.consume(']');
|
|
186
|
+
result = this.combine([result, index], (target, value) => this.interpreter.index(target, value));
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
atom() {
|
|
195
|
+
const token = this.peek();
|
|
196
|
+
if (token.kind === 'identifier')
|
|
197
|
+
return this.identifierOrKeyword();
|
|
198
|
+
if (token.kind === 'string') {
|
|
199
|
+
this.advance();
|
|
200
|
+
const literal = this.literals.readString(token);
|
|
201
|
+
return this.interpret(() => this.interpreter.literal(literal));
|
|
202
|
+
}
|
|
203
|
+
if (token.kind === 'number') {
|
|
204
|
+
this.advance();
|
|
205
|
+
const literal = this.literals.readNumber(token);
|
|
206
|
+
return this.interpret(() => this.interpreter.literal(literal));
|
|
207
|
+
}
|
|
208
|
+
if (this.is('(')) {
|
|
209
|
+
this.advance();
|
|
210
|
+
const value = this.expression(0);
|
|
211
|
+
this.consume(')');
|
|
212
|
+
return value;
|
|
213
|
+
}
|
|
214
|
+
if (this.is('['))
|
|
215
|
+
return this.list();
|
|
216
|
+
if (this.is('{'))
|
|
217
|
+
return this.map();
|
|
218
|
+
return this.fail(`Expected expression, found ${JSON.stringify(token.text)}`);
|
|
219
|
+
}
|
|
220
|
+
identifierOrKeyword() {
|
|
221
|
+
const name = this.advance().text;
|
|
222
|
+
if (name === 'true' || name === 'false') {
|
|
223
|
+
return this.interpret(() => this.interpreter.literal({ type: 'bool', value: name === 'true' }));
|
|
224
|
+
}
|
|
225
|
+
if (name === 'null') {
|
|
226
|
+
return this.interpret(() => this.interpreter.literal({ type: 'null' }));
|
|
227
|
+
}
|
|
228
|
+
if (this.is('(')) {
|
|
229
|
+
const args = this.arguments_();
|
|
230
|
+
return this.combine(args, (...values) => this.interpreter.call(undefined, name, values));
|
|
231
|
+
}
|
|
232
|
+
return this.interpret(() => this.interpreter.identifier(name));
|
|
233
|
+
}
|
|
234
|
+
arguments_() {
|
|
235
|
+
this.consume('(');
|
|
236
|
+
const args = [];
|
|
237
|
+
if (!this.is(')')) {
|
|
238
|
+
while (true) {
|
|
239
|
+
const argument = this.tryElement(')', () => this.expression(0));
|
|
240
|
+
args.push(argument === undefined ? { errors: [] } : argument.value);
|
|
241
|
+
if (!this.is(','))
|
|
242
|
+
break;
|
|
243
|
+
this.advance();
|
|
244
|
+
if (this.is(')'))
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
this.consume(')');
|
|
249
|
+
return args;
|
|
250
|
+
}
|
|
251
|
+
list() {
|
|
252
|
+
this.consume('[');
|
|
253
|
+
const elements = [];
|
|
254
|
+
if (!this.is(']')) {
|
|
255
|
+
while (true) {
|
|
256
|
+
const element = this.tryElement(']', () => this.expression(0));
|
|
257
|
+
elements.push(element === undefined ? { errors: [] } : element.value);
|
|
258
|
+
if (!this.is(','))
|
|
259
|
+
break;
|
|
260
|
+
this.advance();
|
|
261
|
+
if (this.is(']'))
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
this.consume(']');
|
|
266
|
+
return this.combine(elements, (...values) => this.interpreter.list(values));
|
|
267
|
+
}
|
|
268
|
+
map() {
|
|
269
|
+
this.consume('{');
|
|
270
|
+
const entries = [];
|
|
271
|
+
let invalid = false;
|
|
272
|
+
if (!this.is('}')) {
|
|
273
|
+
while (true) {
|
|
274
|
+
const entry = this.tryElement('}', () => {
|
|
275
|
+
const key = this.expression(0);
|
|
276
|
+
this.consume(':');
|
|
277
|
+
const value = this.expression(0);
|
|
278
|
+
return [key, value];
|
|
279
|
+
});
|
|
280
|
+
if (entry === undefined)
|
|
281
|
+
invalid = true;
|
|
282
|
+
else
|
|
283
|
+
entries.push(entry.value);
|
|
284
|
+
if (!this.is(','))
|
|
285
|
+
break;
|
|
286
|
+
this.advance();
|
|
287
|
+
if (this.is('}'))
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
this.consume('}');
|
|
292
|
+
if (invalid)
|
|
293
|
+
return { errors: [] };
|
|
294
|
+
const operands = entries.flatMap(([key, value]) => [key, value]);
|
|
295
|
+
return this.combine(operands, (...values) => {
|
|
296
|
+
const pairs = [];
|
|
297
|
+
for (let i = 0; i < values.length; i += 2)
|
|
298
|
+
pairs.push([values[i], values[i + 1]]);
|
|
299
|
+
return this.interpreter.map(pairs);
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
/** Recover to a separator or matching collection closer, respecting nesting. */
|
|
303
|
+
recover(closing, start) {
|
|
304
|
+
let round = 0;
|
|
305
|
+
let square = 0;
|
|
306
|
+
let curly = 0;
|
|
307
|
+
while (this.peek().kind !== 'eof') {
|
|
308
|
+
const text = this.peek().text;
|
|
309
|
+
if (round === 0 && square === 0 && curly === 0 && (text === ',' || text === closing))
|
|
310
|
+
return;
|
|
311
|
+
if (text === '(')
|
|
312
|
+
round++;
|
|
313
|
+
if (text === '[')
|
|
314
|
+
square++;
|
|
315
|
+
if (text === '{')
|
|
316
|
+
curly++;
|
|
317
|
+
if (text === ')') {
|
|
318
|
+
if (round === 0)
|
|
319
|
+
return;
|
|
320
|
+
round--;
|
|
321
|
+
}
|
|
322
|
+
if (text === ']') {
|
|
323
|
+
if (square === 0)
|
|
324
|
+
return;
|
|
325
|
+
square--;
|
|
326
|
+
}
|
|
327
|
+
if (text === '}') {
|
|
328
|
+
if (curly === 0)
|
|
329
|
+
return;
|
|
330
|
+
curly--;
|
|
331
|
+
}
|
|
332
|
+
this.advance();
|
|
333
|
+
}
|
|
334
|
+
if (this.cursor === start && this.peek().kind !== 'eof')
|
|
335
|
+
this.advance();
|
|
336
|
+
}
|
|
337
|
+
tryElement(closing, operation) {
|
|
338
|
+
const start = this.cursor;
|
|
339
|
+
try {
|
|
340
|
+
return { value: operation() };
|
|
341
|
+
}
|
|
342
|
+
catch (error) {
|
|
343
|
+
this.recordSyntaxError(error);
|
|
344
|
+
this.recover(closing, start);
|
|
345
|
+
return undefined;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
recordSyntaxError(error) {
|
|
349
|
+
if (!(error instanceof cel_lexer_1.CelSyntaxError))
|
|
350
|
+
throw error;
|
|
351
|
+
this.syntaxErrors.push(error.message);
|
|
352
|
+
}
|
|
353
|
+
recoverTopLevel() {
|
|
354
|
+
if (this.syntaxErrors.length > this.lexicalErrorCount) {
|
|
355
|
+
while (this.peek().kind !== 'eof') {
|
|
356
|
+
const before = this.cursor;
|
|
357
|
+
if (this.is('&&') || this.is('||') || this.is(',')) {
|
|
358
|
+
this.advance();
|
|
359
|
+
try {
|
|
360
|
+
this.expression(0);
|
|
361
|
+
}
|
|
362
|
+
catch (error) {
|
|
363
|
+
this.recordSyntaxError(error);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
this.advance();
|
|
368
|
+
}
|
|
369
|
+
if (this.cursor === before)
|
|
370
|
+
this.advance();
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
else if (this.peek().kind !== 'eof') {
|
|
374
|
+
const token = this.peek();
|
|
375
|
+
this.syntaxErrors.push(new cel_lexer_1.CelSyntaxError(`Unexpected token ${JSON.stringify(token.text)}`, token.line, token.column).message);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
/** Parse a CEL expression directly through the given interpreter. */
|
|
380
|
+
function parseCel(source, interpreter) {
|
|
381
|
+
const lexed = (0, cel_lexer_1.lexCelWithDiagnostics)(source);
|
|
382
|
+
if (lexed.errors.length > 0 && lexed.tokens.length === 1) {
|
|
383
|
+
return { errors: lexed.errors };
|
|
384
|
+
}
|
|
385
|
+
return new CelParser(lexed.tokens, lexed.errors, interpreter).parse();
|
|
386
|
+
}
|
|
387
|
+
//# sourceMappingURL=cel.parser.js.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