@cobol-ts/cel 0.0.14 → 0.0.16
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/README.md +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,6 +26,18 @@ const result: string = valueOrThrow(evaluate('input.age + 1', printer))
|
|
|
26
26
|
|
|
27
27
|
`evaluate(cel, interpreter)` is the public convenience function; `parseCel(cel, interpreter)` is also available. Both return `ErrorsOr<T>`.
|
|
28
28
|
|
|
29
|
+
## Quick orientation
|
|
30
|
+
|
|
31
|
+
**Responsibility.** Lex, parse, normalise and inspect CEL syntax, including free-identifier extraction.
|
|
32
|
+
|
|
33
|
+
**Boundary.** This package is intentionally syntax-oriented; `cel/implementation` compiles execution functions.
|
|
34
|
+
|
|
35
|
+
**Public modules.** [cel.lexer.ts](./src/cel.lexer.ts), [cel.parser.ts](./src/cel.parser.ts), [cel.interpreter.ts](./src/cel.interpreter.ts), [cel.evaluate.ts](./src/cel.evaluate.ts), [cel.identifiers.ts](./src/cel.identifiers.ts) (and 1 more exports in [`index.ts`](index.ts)).
|
|
36
|
+
|
|
37
|
+
**Tests.** [cel.identifiers.spec.ts](src/cel.identifiers.spec.ts), [cel.interpreter.spec.ts](src/cel.interpreter.spec.ts), [cel.normaliser.interpreter.spec.ts](src/cel.normaliser.interpreter.spec.ts) (+1 more)
|
|
38
|
+
|
|
39
|
+
**Related packages.** [@cobol-ts/cel-implementation](../../cel/implementation/README.md) · [@cobol-ts/dependency_node](../dependency_node/README.md).
|
|
40
|
+
|
|
29
41
|
## Error composition
|
|
30
42
|
|
|
31
43
|
- Interpreter errors are recorded once at their originating operation.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/cel",
|
|
3
3
|
"description": "agless CEL syntax parser for reusable interpreters",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@bufbuild/cel": "^0.6.1",
|
|
21
21
|
"@bufbuild/protobuf": "^2",
|
|
22
|
-
"@cobol-ts/graph": "0.0.
|
|
22
|
+
"@cobol-ts/graph": "0.0.16"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"typescript": "^5.2.2",
|