@manta-eu/datalog-parser 0.1.3 → 0.1.5
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 +5 -6
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -947,10 +947,7 @@ class Oe extends Cr {
|
|
|
947
947
|
this.OR([{ ALT: () => this.CONSUME(ie) }, { ALT: () => this.CONSUME(ne) }]);
|
|
948
948
|
});
|
|
949
949
|
stringLiteral = this.RULE("stringLiteral", () => {
|
|
950
|
-
this.OR([
|
|
951
|
-
{ ALT: () => this.CONSUME(Te) },
|
|
952
|
-
{ ALT: () => this.CONSUME(ft) }
|
|
953
|
-
]), this.OPTION(() => {
|
|
950
|
+
this.OR([{ ALT: () => this.CONSUME(Te) }, { ALT: () => this.CONSUME(ft) }]), this.OPTION(() => {
|
|
954
951
|
this.OR2([
|
|
955
952
|
{ ALT: () => this.CONSUME(Se) },
|
|
956
953
|
{
|
|
@@ -1039,7 +1036,8 @@ class Oe extends Cr {
|
|
|
1039
1036
|
{ ALT: () => this.SUBRULE(this.aggregateFunction2) }
|
|
1040
1037
|
]);
|
|
1041
1038
|
});
|
|
1042
|
-
// AggregateFunction1 := (SUM | MUL | AVG | MIN | COUNT_MIN | MAX | COUNT_MAX | COUNT)
|
|
1039
|
+
// AggregateFunction1 := (SUM | MUL | AVG | MIN | COUNT_MIN | MAX | COUNT_MAX | COUNT)
|
|
1040
|
+
// '(' DISTINCT? (STAR | Expression) ')'
|
|
1043
1041
|
aggregateFunction1 = this.RULE("aggregateFunction1", () => {
|
|
1044
1042
|
this.OR([
|
|
1045
1043
|
{ ALT: () => this.CONSUME(Xt) },
|
|
@@ -1054,7 +1052,8 @@ class Oe extends Cr {
|
|
|
1054
1052
|
this.CONSUME(ot);
|
|
1055
1053
|
}), this.OR2([{ ALT: () => this.CONSUME(pt) }, { ALT: () => this.SUBRULE(this.expression) }]), this.CONSUME(U);
|
|
1056
1054
|
});
|
|
1057
|
-
// AggregateFunction2 := (MIN_ARGMIN | MAX_ARGMIN | MIN_ARGMAX | MAX_ARGMAX)
|
|
1055
|
+
// AggregateFunction2 := (MIN_ARGMIN | MAX_ARGMIN | MIN_ARGMAX | MAX_ARGMAX)
|
|
1056
|
+
// '(' DISTINCT? Expression ',' Expression ')'
|
|
1058
1057
|
aggregateFunction2 = this.RULE("aggregateFunction2", () => {
|
|
1059
1058
|
this.OR([
|
|
1060
1059
|
{ ALT: () => this.CONSUME(Qt) },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/datalog-parser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "RDFox Datalog parser and AST builder with inference verification",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,12 +30,14 @@
|
|
|
30
30
|
"@microsoft/api-extractor": "7.56.0",
|
|
31
31
|
"@types/node": "^24.13.3",
|
|
32
32
|
"@vitest/coverage-v8": "^4.1.8",
|
|
33
|
+
"eslint": "^9.39.2",
|
|
33
34
|
"prettier": "^3.8.1",
|
|
34
35
|
"tsx": "^4.21.0",
|
|
35
36
|
"typescript": "^5.9.3",
|
|
36
37
|
"vite": "^7.3.1",
|
|
37
38
|
"vite-plugin-dts": "^4.5.4",
|
|
38
|
-
"vitest": "^4.1.8"
|
|
39
|
+
"vitest": "^4.1.8",
|
|
40
|
+
"@manta-eu/eslint-config": "0.1.0"
|
|
39
41
|
},
|
|
40
42
|
"prettier": {
|
|
41
43
|
"printWidth": 120
|
|
@@ -54,6 +56,8 @@
|
|
|
54
56
|
"format:check": "prettier --check .",
|
|
55
57
|
"diagrams": "tsx scripts/generate-diagrams.ts",
|
|
56
58
|
"generate-types": "tsx generate-types.ts",
|
|
57
|
-
"build:parser-wasm": "vite build --config vite.wasm.config.ts && mkdir -p dist && javy build dist-wasm-js/wasm-entry.js -o dist/parser.wasm"
|
|
59
|
+
"build:parser-wasm": "vite build --config vite.wasm.config.ts && mkdir -p dist && javy build dist-wasm-js/wasm-entry.js -o dist/parser.wasm",
|
|
60
|
+
"lint": "eslint .",
|
|
61
|
+
"lint:fix": "eslint . --fix"
|
|
58
62
|
}
|
|
59
63
|
}
|