@traqula/generator-sparql-1-2 0.0.12 → 0.0.13

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/lib/index.cjs CHANGED
@@ -13610,13 +13610,11 @@ var unaryExpression = {
13610
13610
  { ALT: () => CONSUME(symbols_exports.opMinus) }
13611
13611
  ]);
13612
13612
  const expr = SUBRULE2(primaryExpression);
13613
- return ACTION(() => ({
13614
- type: "expression",
13615
- subType: "operation",
13616
- operator: operator.image === "!" ? "!" : operator.image === "+" ? "UPLUS" : "UMINUS",
13617
- args: [expr],
13618
- loc: C.factory.sourceLocation(operator, expr)
13619
- }));
13613
+ return ACTION(() => C.factory.expressionOperation(
13614
+ operator.image === "!" ? "!" : operator.image === "+" ? "UPLUS" : "UMINUS",
13615
+ [expr],
13616
+ C.factory.sourceLocation(operator, expr)
13617
+ ));
13620
13618
  } }
13621
13619
  ])
13622
13620
  };
@@ -14859,6 +14857,7 @@ __export(grammar_exports2, {
14859
14857
  tripleTermSubject: () => tripleTermSubject,
14860
14858
  triplesSameSubject: () => triplesSameSubject2,
14861
14859
  triplesSameSubjectPath: () => triplesSameSubjectPath2,
14860
+ unaryExpression: () => unaryExpression2,
14862
14861
  varOrReifierId: () => varOrReifierId,
14863
14862
  varOrTerm: () => varOrTerm2,
14864
14863
  versionDecl: () => versionDecl,
@@ -15394,6 +15393,33 @@ var rdfLiteral2 = {
15394
15393
  ])) ?? value;
15395
15394
  }
15396
15395
  };
15396
+ var unaryExpression2 = {
15397
+ name: "unaryExpression",
15398
+ impl: ({ ACTION, CONSUME, SUBRULE1, SUBRULE2, OR1, OR2 }) => (C) => OR1([
15399
+ { ALT: () => SUBRULE1(primaryExpression2) },
15400
+ { ALT: () => {
15401
+ const operator = CONSUME(lexer_exports.symbols.exclamation);
15402
+ const expr = SUBRULE1(unaryExpression2);
15403
+ return ACTION(() => C.factory.expressionOperation(
15404
+ "!",
15405
+ [expr],
15406
+ C.factory.sourceLocation(operator, expr)
15407
+ ));
15408
+ } },
15409
+ { ALT: () => {
15410
+ const operator = OR2([
15411
+ { ALT: () => CONSUME(lexer_exports.symbols.opPlus) },
15412
+ { ALT: () => CONSUME(lexer_exports.symbols.opMinus) }
15413
+ ]);
15414
+ const expr = SUBRULE2(primaryExpression2);
15415
+ return ACTION(() => C.factory.expressionOperation(
15416
+ operator.image === "!" ? "!" : operator.image === "+" ? "UPLUS" : "UMINUS",
15417
+ [expr],
15418
+ C.factory.sourceLocation(operator, expr)
15419
+ ));
15420
+ } }
15421
+ ])
15422
+ };
15397
15423
  var generateTriplesBlock = {
15398
15424
  name: "triplesBlock",
15399
15425
  gImpl: ({ SUBRULE, PRINT_WORD, HANDLE_LOC }) => (ast, { factory: F3 }) => {
package/lib/index.d.ts CHANGED
@@ -4,8 +4,9 @@ import { Factory } from '@traqula/rules-sparql-1-2';
4
4
  import type * as T12 from '@traqula/rules-sparql-1-2';
5
5
  declare const sparql12GeneratorBuilder: GeneratorBuilder<{
6
6
  factory: Factory;
7
- }, "query" | "prologue" | "selectQuery" | "constructQuery" | "describeQuery" | "askQuery" | "baseDecl" | "prefixDecl" | "selectClause" | "whereClause" | "solutionModifier" | "expression" | "iriOrFunction" | "rdfLiteral" | "var" | "aggregate" | "iri" | "prefixedName" | "argList" | "groupGraphPattern" | "triplesBlock" | "triplesNodePath" | "blankNode" | "path" | "varOrTerm" | "iriFull" | "graphTerm" | "graphNodePath" | "collectionPath" | "blankNodePropertyListPath" | "graphPatternNotTriples" | "filter" | "bind" | "groupOrUnionGraphPattern" | "optionalGraphPattern" | "minusGraphPattern" | "graphGraphPattern" | "serviceGraphPattern" | "inlineData" | "groupClause" | "havingClause" | "orderClause" | "limitOffsetClauses" | "datasetClauses" | "update" | "load" | "clear" | "drop" | "add" | "move" | "copy" | "create" | "insertData" | "deleteData" | "deleteWhere" | "graphRef" | "graphRefAll" | "quads" | "update1" | "quadsNotTriples" | "modify" | "usingClauses" | "queryOrUpdate" | "reifiedTriple" | "annotationPath" | "annotationBlockPath" | "tripleTerm" | "versionDecl" | "generatePattern", {
7
+ }, "query" | "update" | "prologue" | "selectQuery" | "constructQuery" | "describeQuery" | "askQuery" | "baseDecl" | "prefixDecl" | "selectClause" | "whereClause" | "solutionModifier" | "expression" | "iriOrFunction" | "rdfLiteral" | "var" | "aggregate" | "iri" | "prefixedName" | "argList" | "groupGraphPattern" | "triplesBlock" | "triplesNodePath" | "blankNode" | "path" | "varOrTerm" | "iriFull" | "graphTerm" | "graphNodePath" | "collectionPath" | "blankNodePropertyListPath" | "graphPatternNotTriples" | "filter" | "bind" | "groupOrUnionGraphPattern" | "optionalGraphPattern" | "minusGraphPattern" | "graphGraphPattern" | "serviceGraphPattern" | "inlineData" | "groupClause" | "havingClause" | "orderClause" | "limitOffsetClauses" | "datasetClauses" | "load" | "clear" | "drop" | "add" | "move" | "copy" | "create" | "insertData" | "deleteData" | "deleteWhere" | "graphRef" | "graphRefAll" | "quads" | "update1" | "quadsNotTriples" | "modify" | "usingClauses" | "queryOrUpdate" | "reifiedTriple" | "annotationPath" | "annotationBlockPath" | "tripleTerm" | "versionDecl" | "generatePattern", {
8
8
  query: never;
9
+ update: never;
9
10
  prologue: import("@traqula/core").GeneratorRule<{
10
11
  factory: Factory;
11
12
  }, "prologue", T12.ContextDefinition[], []>;
@@ -57,7 +58,6 @@ declare const sparql12GeneratorBuilder: GeneratorBuilder<{
57
58
  orderClause: never;
58
59
  limitOffsetClauses: never;
59
60
  datasetClauses: never;
60
- update: never;
61
61
  load: never;
62
62
  clear: never;
63
63
  drop: never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traqula/generator-sparql-1-2",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "description": "SPARQL 1.2 generator",
6
6
  "lsd:module": true,
7
7
  "license": "MIT",
@@ -41,14 +41,14 @@
41
41
  "build:transpile": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --bundle --log-level=error --outfile=lib/index.cjs lib/index.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@traqula/core": "^0.0.12",
45
- "@traqula/generator-sparql-1-1": "^0.0.12",
46
- "@traqula/rules-sparql-1-1": "^0.0.12",
47
- "@traqula/rules-sparql-1-2": "^0.0.12"
44
+ "@traqula/core": "^0.0.13",
45
+ "@traqula/generator-sparql-1-1": "^0.0.13",
46
+ "@traqula/rules-sparql-1-1": "^0.0.13",
47
+ "@traqula/rules-sparql-1-2": "^0.0.13"
48
48
  },
49
49
  "devDependencies": {
50
- "@traqula/parser-sparql-1-2": "^0.0.12",
51
- "@traqula/test-utils": "^0.0.12"
50
+ "@traqula/parser-sparql-1-2": "^0.0.13",
51
+ "@traqula/test-utils": "^0.0.13"
52
52
  },
53
- "gitHead": "3517d5a5223c64dc61184b5f603f6d98c12bd166"
53
+ "gitHead": "324ed65dcfacb6cfa31007e0d5ee43f2599b7284"
54
54
  }