@traqula/rules-sparql-1-1 0.0.22 → 0.0.24

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.
Files changed (76) hide show
  1. package/dist/cjs/lib/MinimalSparqlParser.js +35 -58
  2. package/dist/cjs/lib/MinimalSparqlParser.js.map +1 -0
  3. package/dist/cjs/lib/Sparql11types.js +2 -15
  4. package/dist/cjs/lib/Sparql11types.js.map +1 -0
  5. package/dist/cjs/lib/astFactory.js +107 -119
  6. package/dist/cjs/lib/astFactory.js.map +1 -0
  7. package/dist/cjs/lib/expressionHelpers.js +181 -191
  8. package/dist/cjs/lib/expressionHelpers.js.map +1 -0
  9. package/dist/cjs/lib/factoryMixins/ContextFactory.js +30 -52
  10. package/dist/cjs/lib/factoryMixins/ContextFactory.js.map +1 -0
  11. package/dist/cjs/lib/factoryMixins/ExpressionFactory.js +83 -102
  12. package/dist/cjs/lib/factoryMixins/ExpressionFactory.js.map +1 -0
  13. package/dist/cjs/lib/factoryMixins/GraphRefFactory.js +51 -73
  14. package/dist/cjs/lib/factoryMixins/GraphRefFactory.js.map +1 -0
  15. package/dist/cjs/lib/factoryMixins/PathFactory.js +68 -87
  16. package/dist/cjs/lib/factoryMixins/PathFactory.js.map +1 -0
  17. package/dist/cjs/lib/factoryMixins/Patternfactory.js +98 -120
  18. package/dist/cjs/lib/factoryMixins/Patternfactory.js.map +1 -0
  19. package/dist/cjs/lib/factoryMixins/QueryFactory.js +43 -65
  20. package/dist/cjs/lib/factoryMixins/QueryFactory.js.map +1 -0
  21. package/dist/cjs/lib/factoryMixins/SolutionModifiersFactory.js +55 -77
  22. package/dist/cjs/lib/factoryMixins/SolutionModifiersFactory.js.map +1 -0
  23. package/dist/cjs/lib/factoryMixins/TermFactory.js +81 -102
  24. package/dist/cjs/lib/factoryMixins/TermFactory.js.map +1 -0
  25. package/dist/cjs/lib/factoryMixins/UpdateOperationFactory.js +126 -147
  26. package/dist/cjs/lib/factoryMixins/UpdateOperationFactory.js.map +1 -0
  27. package/dist/cjs/lib/factoryMixins/mixins.js +21 -38
  28. package/dist/cjs/lib/factoryMixins/mixins.js.map +1 -0
  29. package/dist/cjs/lib/grammar/builtIn.js +277 -377
  30. package/dist/cjs/lib/grammar/builtIn.js.map +1 -0
  31. package/dist/cjs/lib/grammar/dataSetClause.js +110 -109
  32. package/dist/cjs/lib/grammar/dataSetClause.js.map +1 -0
  33. package/dist/cjs/lib/grammar/expression.js +387 -358
  34. package/dist/cjs/lib/grammar/expression.js.map +1 -0
  35. package/dist/cjs/lib/grammar/general.js +173 -158
  36. package/dist/cjs/lib/grammar/general.js.map +1 -0
  37. package/dist/cjs/lib/grammar/index.js +94 -111
  38. package/dist/cjs/lib/grammar/index.js.map +1 -0
  39. package/dist/cjs/lib/grammar/literals.js +282 -266
  40. package/dist/cjs/lib/grammar/literals.js.map +1 -0
  41. package/dist/cjs/lib/grammar/propertyPaths.js +206 -193
  42. package/dist/cjs/lib/grammar/propertyPaths.js.map +1 -0
  43. package/dist/cjs/lib/grammar/queryUnit.js +395 -372
  44. package/dist/cjs/lib/grammar/queryUnit.js.map +1 -0
  45. package/dist/cjs/lib/grammar/solutionModifier.js +281 -265
  46. package/dist/cjs/lib/grammar/solutionModifier.js.map +1 -0
  47. package/dist/cjs/lib/grammar/tripleBlock.js +390 -355
  48. package/dist/cjs/lib/grammar/tripleBlock.js.map +1 -0
  49. package/dist/cjs/lib/grammar/updateUnit.js +551 -519
  50. package/dist/cjs/lib/grammar/updateUnit.js.map +1 -0
  51. package/dist/cjs/lib/grammar/whereClause.js +486 -459
  52. package/dist/cjs/lib/grammar/whereClause.js.map +1 -0
  53. package/dist/cjs/lib/index.js +47 -54
  54. package/dist/cjs/lib/index.js.map +1 -0
  55. package/dist/cjs/lib/lexer/BuiltInCalls.js +188 -333
  56. package/dist/cjs/lib/lexer/BuiltInCalls.js.map +1 -0
  57. package/dist/cjs/lib/lexer/graph.js +10 -40
  58. package/dist/cjs/lib/lexer/graph.js.map +1 -0
  59. package/dist/cjs/lib/lexer/index.js +43 -48
  60. package/dist/cjs/lib/lexer/index.js.map +1 -0
  61. package/dist/cjs/lib/lexer/lexer.js +84 -195
  62. package/dist/cjs/lib/lexer/lexer.js.map +1 -0
  63. package/dist/cjs/lib/lexer/lexerPatterns.js +40 -132
  64. package/dist/cjs/lib/lexer/lexerPatterns.js.map +1 -0
  65. package/dist/cjs/lib/lexer/symbols.js +31 -106
  66. package/dist/cjs/lib/lexer/symbols.js.map +1 -0
  67. package/dist/cjs/lib/lexer/terminals.js +100 -102
  68. package/dist/cjs/lib/lexer/terminals.js.map +1 -0
  69. package/dist/cjs/lib/sparql11HelperTypes.js +2 -15
  70. package/dist/cjs/lib/sparql11HelperTypes.js.map +1 -0
  71. package/dist/cjs/lib/utils.js +40 -58
  72. package/dist/cjs/lib/utils.js.map +1 -0
  73. package/dist/cjs/lib/validation/validators.js +197 -186
  74. package/dist/cjs/lib/validation/validators.js.map +1 -0
  75. package/dist/cjs/package.json +1 -0
  76. package/package.json +10 -9
@@ -1,133 +1,41 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var lexerPatterns_exports = {};
20
- __export(lexerPatterns_exports, {
21
- anonPattern: () => anonPattern,
22
- atLeastOneBlankPattern: () => atLeastOneBlankPattern,
23
- blankNodeLabelPattern: () => blankNodeLabelPattern,
24
- commentPattern: () => commentPattern,
25
- decimalNegativePattern: () => decimalNegativePattern,
26
- decimalPattern: () => decimalPattern,
27
- decimalPositivePattern: () => decimalPositivePattern,
28
- doubleNegativePattern: () => doubleNegativePattern,
29
- doublePattern: () => doublePattern,
30
- doublePositivePattern: () => doublePositivePattern,
31
- echarPattern: () => echarPattern,
32
- exponentPattern: () => exponentPattern,
33
- integerNegativePattern: () => integerNegativePattern,
34
- integerPattern: () => integerPattern,
35
- interferePositivePattern: () => interferePositivePattern,
36
- iriRefPattern: () => iriRefPattern,
37
- langTagPattern: () => langTagPattern,
38
- nilPattern: () => nilPattern,
39
- pNameLnPattern: () => pNameLnPattern,
40
- pNameNsPattern: () => pNameNsPattern,
41
- percentPattern: () => percentPattern,
42
- plxPattern: () => plxPattern,
43
- pnCharsBasePattern: () => pnCharsBasePattern,
44
- pnCharsPattern: () => pnCharsPattern,
45
- pnCharsUPattern: () => pnCharsUPattern,
46
- pnLocalEscPattern: () => pnLocalEscPattern,
47
- pnLocalPattern: () => pnLocalPattern,
48
- pnPrefixPattern: () => pnPrefixPattern,
49
- stringLiteral1Pattern: () => stringLiteral1Pattern,
50
- stringLiteral2Pattern: () => stringLiteral2Pattern,
51
- stringLiteralLong1Pattern: () => stringLiteralLong1Pattern,
52
- stringLiteralLong2Pattern: () => stringLiteralLong2Pattern,
53
- var1Pattern: () => var1Pattern,
54
- var2Pattern: () => var2Pattern,
55
- varNamePattern: () => varNamePattern,
56
- wsPattern: () => wsPattern
57
- });
58
- module.exports = __toCommonJS(lexerPatterns_exports);
59
- const pnCharsBasePattern = /[A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF]/;
60
- const pnCharsUPattern = new RegExp(`${pnCharsBasePattern.source}|_`);
61
- const varNamePattern = new RegExp(`((${pnCharsUPattern.source})|[0-9])((${pnCharsUPattern.source})|[0-9]|[\xB7\u0300-\u036F\u203F-\u2040])*`);
62
- const iriRefPattern = /<([^\u0000-\u0020"<>\\^`{|}])*>/;
63
- const pnCharsPattern = new RegExp(`(${pnCharsUPattern.source})|[\\-0-9\xB7\u0300-\u036F\u203F-\u2040]`);
64
- const pnPrefixPattern = new RegExp(`(${pnCharsBasePattern.source})(((${pnCharsPattern.source})|\\.)*(${pnCharsPattern.source}))?`);
65
- const pNameNsPattern = new RegExp(`(${pnPrefixPattern.source})?:`);
66
- const percentPattern = /%[\dA-Fa-f]{2}/;
67
- const pnLocalEscPattern = /\\[!#$%&'()*+,./;=?@\\_~-]/;
68
- const plxPattern = new RegExp(`(${percentPattern.source})|(${pnLocalEscPattern.source})`);
69
- const pnLocalPattern = new RegExp(`((${pnCharsUPattern.source})|:|[0-9]|(${plxPattern.source}))(((${pnCharsPattern.source})|\\.|:|(${plxPattern.source}))*((${pnCharsPattern.source})|:|(${plxPattern.source})))?`);
70
- const pNameLnPattern = new RegExp(`(${pNameNsPattern.source})(${pnLocalPattern.source})`);
71
- const blankNodeLabelPattern = new RegExp(`_:((${pnCharsUPattern.source})|[0-9])(((${pnCharsPattern.source})|\\.)*(${pnCharsPattern.source}))?`);
72
- const var1Pattern = new RegExp(`\\?(${varNamePattern.source})`);
73
- const var2Pattern = new RegExp(`\\$(${varNamePattern.source})`);
74
- const langTagPattern = /@[A-Za-z]+(-[\dA-Za-z]+)*/;
75
- const integerPattern = /\d+/;
76
- const decimalPattern = /\d+\.\d+/;
77
- const exponentPattern = /[Ee][+-]?\d+/;
78
- const doublePattern = new RegExp(`([0-9]+\\.[0-9]*(${exponentPattern.source}))|(\\.[0-9]+(${exponentPattern.source}))|([0-9]+(${exponentPattern.source}))`);
79
- const interferePositivePattern = new RegExp(`\\+${integerPattern.source}`);
80
- const decimalPositivePattern = new RegExp(`\\+${decimalPattern.source}`);
81
- const doublePositivePattern = new RegExp(`\\+${doublePattern.source}`);
82
- const integerNegativePattern = new RegExp(`-${integerPattern.source}`);
83
- const decimalNegativePattern = new RegExp(`-${decimalPattern.source}`);
84
- const doubleNegativePattern = new RegExp(`-${doublePattern.source}`);
85
- const echarPattern = /\\[\\"'bfnrt]/u;
86
- const stringLiteral1Pattern = new RegExp(`'(([^\\u0027\\u005C\\u000A\r])|(${echarPattern.source}))*'`);
87
- const stringLiteral2Pattern = new RegExp(`"(([^\\u0022\\u005C\\u000A\\u000D])|(${echarPattern.source}))*"`);
88
- const stringLiteralLong1Pattern = new RegExp(`'''(('|(''))?([^'\\\\]|(${echarPattern.source})))*'''`);
89
- const stringLiteralLong2Pattern = new RegExp(`"""(("|(""))?([^"\\\\]|(${echarPattern.source})))*"""`);
90
- const wsPattern = /[\u0009\u000A\u000D ]/;
91
- const nilPattern = new RegExp(`\\((${wsPattern.source})*\\)`);
92
- const anonPattern = new RegExp(`\\[(${wsPattern.source})*\\]`);
93
- const commentPattern = /#[^\n]*\n/;
94
- const atLeastOneBlankPattern = new RegExp(`((${wsPattern.source}+)|(${commentPattern.source}))+`);
95
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- anonPattern,
98
- atLeastOneBlankPattern,
99
- blankNodeLabelPattern,
100
- commentPattern,
101
- decimalNegativePattern,
102
- decimalPattern,
103
- decimalPositivePattern,
104
- doubleNegativePattern,
105
- doublePattern,
106
- doublePositivePattern,
107
- echarPattern,
108
- exponentPattern,
109
- integerNegativePattern,
110
- integerPattern,
111
- interferePositivePattern,
112
- iriRefPattern,
113
- langTagPattern,
114
- nilPattern,
115
- pNameLnPattern,
116
- pNameNsPattern,
117
- percentPattern,
118
- plxPattern,
119
- pnCharsBasePattern,
120
- pnCharsPattern,
121
- pnCharsUPattern,
122
- pnLocalEscPattern,
123
- pnLocalPattern,
124
- pnPrefixPattern,
125
- stringLiteral1Pattern,
126
- stringLiteral2Pattern,
127
- stringLiteralLong1Pattern,
128
- stringLiteralLong2Pattern,
129
- var1Pattern,
130
- var2Pattern,
131
- varNamePattern,
132
- wsPattern
133
- });
2
+ /* eslint-disable require-unicode-regexp,no-misleading-character-class,max-len,no-control-regex */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.atLeastOneBlankPattern = exports.commentPattern = exports.anonPattern = exports.nilPattern = exports.wsPattern = exports.stringLiteralLong2Pattern = exports.stringLiteralLong1Pattern = exports.stringLiteral2Pattern = exports.stringLiteral1Pattern = exports.echarPattern = exports.doubleNegativePattern = exports.decimalNegativePattern = exports.integerNegativePattern = exports.doublePositivePattern = exports.decimalPositivePattern = exports.interferePositivePattern = exports.doublePattern = exports.exponentPattern = exports.decimalPattern = exports.integerPattern = exports.langTagPattern = exports.var2Pattern = exports.var1Pattern = exports.blankNodeLabelPattern = exports.pNameLnPattern = exports.pnLocalPattern = exports.plxPattern = exports.pnLocalEscPattern = exports.percentPattern = exports.pNameNsPattern = exports.pnPrefixPattern = exports.pnCharsPattern = exports.iriRefPattern = exports.varNamePattern = exports.pnCharsUPattern = exports.pnCharsBasePattern = void 0;
5
+ exports.pnCharsBasePattern = /[A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF]/;
6
+ exports.pnCharsUPattern = new RegExp(`${exports.pnCharsBasePattern.source}|_`);
7
+ exports.varNamePattern = new RegExp(`((${exports.pnCharsUPattern.source})|[0-9])((${exports.pnCharsUPattern.source})|[0-9]|[\u00B7\u0300-\u036F\u203F-\u2040])*`);
8
+ exports.iriRefPattern = /<([^\u0000-\u0020"<>\\^`{|}])*>/;
9
+ exports.pnCharsPattern = new RegExp(`(${exports.pnCharsUPattern.source})|[\\-0-9\u00B7\u0300-\u036F\u203F-\u2040]`);
10
+ exports.pnPrefixPattern = new RegExp(`(${exports.pnCharsBasePattern.source})(((${exports.pnCharsPattern.source})|\\.)*(${exports.pnCharsPattern.source}))?`);
11
+ exports.pNameNsPattern = new RegExp(`(${exports.pnPrefixPattern.source})?:`);
12
+ exports.percentPattern = /%[\dA-Fa-f]{2}/;
13
+ exports.pnLocalEscPattern = /\\[!#$%&'()*+,./;=?@\\_~-]/;
14
+ exports.plxPattern = new RegExp(`(${exports.percentPattern.source})|(${exports.pnLocalEscPattern.source})`);
15
+ exports.pnLocalPattern = new RegExp(`((${exports.pnCharsUPattern.source})|:|[0-9]|(${exports.plxPattern.source}))(((${exports.pnCharsPattern.source})|\\.|:|(${exports.plxPattern.source}))*((${exports.pnCharsPattern.source})|:|(${exports.plxPattern.source})))?`);
16
+ exports.pNameLnPattern = new RegExp(`(${exports.pNameNsPattern.source})(${exports.pnLocalPattern.source})`);
17
+ exports.blankNodeLabelPattern = new RegExp(`_:((${exports.pnCharsUPattern.source})|[0-9])(((${exports.pnCharsPattern.source})|\\.)*(${exports.pnCharsPattern.source}))?`);
18
+ exports.var1Pattern = new RegExp(`\\?(${exports.varNamePattern.source})`);
19
+ exports.var2Pattern = new RegExp(`\\$(${exports.varNamePattern.source})`);
20
+ exports.langTagPattern = /@[A-Za-z]+(-[\dA-Za-z]+)*/;
21
+ exports.integerPattern = /\d+/;
22
+ exports.decimalPattern = /\d+\.\d+/;
23
+ exports.exponentPattern = /[Ee][+-]?\d+/;
24
+ exports.doublePattern = new RegExp(`([0-9]+\\.[0-9]*(${exports.exponentPattern.source}))|(\\.[0-9]+(${exports.exponentPattern.source}))|([0-9]+(${exports.exponentPattern.source}))`);
25
+ exports.interferePositivePattern = new RegExp(`\\+${exports.integerPattern.source}`);
26
+ exports.decimalPositivePattern = new RegExp(`\\+${exports.decimalPattern.source}`);
27
+ exports.doublePositivePattern = new RegExp(`\\+${exports.doublePattern.source}`);
28
+ exports.integerNegativePattern = new RegExp(`-${exports.integerPattern.source}`);
29
+ exports.decimalNegativePattern = new RegExp(`-${exports.decimalPattern.source}`);
30
+ exports.doubleNegativePattern = new RegExp(`-${exports.doublePattern.source}`);
31
+ exports.echarPattern = /\\[\\"'bfnrt]/u;
32
+ exports.stringLiteral1Pattern = new RegExp(`'(([^\\u0027\\u005C\\u000A\u000D])|(${exports.echarPattern.source}))*'`);
33
+ exports.stringLiteral2Pattern = new RegExp(`"(([^\\u0022\\u005C\\u000A\\u000D])|(${exports.echarPattern.source}))*"`);
34
+ exports.stringLiteralLong1Pattern = new RegExp(`'''(('|(''))?([^'\\\\]|(${exports.echarPattern.source})))*'''`);
35
+ exports.stringLiteralLong2Pattern = new RegExp(`"""(("|(""))?([^"\\\\]|(${exports.echarPattern.source})))*"""`);
36
+ exports.wsPattern = /[\u0009\u000A\u000D ]/;
37
+ exports.nilPattern = new RegExp(`\\((${exports.wsPattern.source})*\\)`);
38
+ exports.anonPattern = new RegExp(`\\[(${exports.wsPattern.source})*\\]`);
39
+ exports.commentPattern = /#[^\n]*\n/;
40
+ exports.atLeastOneBlankPattern = new RegExp(`((${exports.wsPattern.source}+)|(${exports.commentPattern.source}))+`);
41
+ //# sourceMappingURL=lexerPatterns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexerPatterns.js","sourceRoot":"","sources":["../../../../lib/lexer/lexerPatterns.ts"],"names":[],"mappings":";AAAA,kGAAkG;;;AAErF,QAAA,kBAAkB,GAAG,uLAAuL,CAAC;AAC7M,QAAA,eAAe,GAAG,IAAI,MAAM,CAAC,GAAG,0BAAkB,CAAC,MAAM,IAAI,CAAC,CAAC;AAC/D,QAAA,cAAc,GAAG,IAAI,MAAM,CAAC,KAAK,uBAAe,CAAC,MAAM,aAAa,uBAAe,CAAC,MAAM,8CAA8C,CAAC,CAAC;AAC1I,QAAA,aAAa,GAAG,iCAAiC,CAAC;AAClD,QAAA,cAAc,GAAG,IAAI,MAAM,CAAC,IAAI,uBAAe,CAAC,MAAM,4CAA4C,C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,CAAC,MAAM,OAAO,CAAC,CAAC;AACzD,QAAA,cAAc,GAAG,WAAW,CAAC;AAE7B,QAAA,sBAAsB,GAAG,IAAI,MAAM,CAAC,KAAK,iBAAS,CAAC,MAAM,OAAO,sBAAc,CAAC,MAAM,KAAK,CAAC,CAAC","sourcesContent":["/* eslint-disable require-unicode-regexp,no-misleading-character-class,max-len,no-control-regex */\n\nexport const pnCharsBasePattern = /[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|[\\uD800-\\uDB7F][\\uDC00-\\uDFFF]/;\nexport const pnCharsUPattern = new RegExp(`${pnCharsBasePattern.source}|_`);\nexport const varNamePattern = new RegExp(`((${pnCharsUPattern.source})|[0-9])((${pnCharsUPattern.source})|[0-9]|[\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*`);\nexport const iriRefPattern = /<([^\\u0000-\\u0020\"<>\\\\^`{|}])*>/;\nexport const pnCharsPattern = new RegExp(`(${pnCharsUPattern.source})|[\\\\-0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]`);\nexport const pnPrefixPattern = new RegExp(`(${pnCharsBasePattern.source})(((${pnCharsPattern.source})|\\\\.)*(${pnCharsPattern.source}))?`);\nexport const pNameNsPattern = new RegExp(`(${pnPrefixPattern.source})?:`);\nexport const percentPattern = /%[\\dA-Fa-f]{2}/;\nexport const pnLocalEscPattern = /\\\\[!#$%&'()*+,./;=?@\\\\_~-]/;\nexport const plxPattern = new RegExp(`(${percentPattern.source})|(${pnLocalEscPattern.source})`);\nexport const pnLocalPattern = new RegExp(`((${pnCharsUPattern.source})|:|[0-9]|(${plxPattern.source}))(((${pnCharsPattern.source})|\\\\.|:|(${plxPattern.source}))*((${pnCharsPattern.source})|:|(${plxPattern.source})))?`);\nexport const pNameLnPattern = new RegExp(`(${pNameNsPattern.source})(${pnLocalPattern.source})`);\nexport const blankNodeLabelPattern = new RegExp(`_:((${pnCharsUPattern.source})|[0-9])(((${pnCharsPattern.source})|\\\\.)*(${pnCharsPattern.source}))?`);\nexport const var1Pattern = new RegExp(`\\\\?(${varNamePattern.source})`);\nexport const var2Pattern = new RegExp(`\\\\$(${varNamePattern.source})`);\nexport const langTagPattern = /@[A-Za-z]+(-[\\dA-Za-z]+)*/;\nexport const integerPattern = /\\d+/;\nexport const decimalPattern = /\\d+\\.\\d+/;\nexport const exponentPattern = /[Ee][+-]?\\d+/;\nexport const doublePattern = new RegExp(`([0-9]+\\\\.[0-9]*(${exponentPattern.source}))|(\\\\.[0-9]+(${exponentPattern.source}))|([0-9]+(${exponentPattern.source}))`);\nexport const interferePositivePattern = new RegExp(`\\\\+${integerPattern.source}`);\nexport const decimalPositivePattern = new RegExp(`\\\\+${decimalPattern.source}`);\nexport const doublePositivePattern = new RegExp(`\\\\+${doublePattern.source}`);\nexport const integerNegativePattern = new RegExp(`-${integerPattern.source}`);\nexport const decimalNegativePattern = new RegExp(`-${decimalPattern.source}`);\nexport const doubleNegativePattern = new RegExp(`-${doublePattern.source}`);\nexport const echarPattern = /\\\\[\\\\\"'bfnrt]/u;\nexport const stringLiteral1Pattern = new RegExp(`'(([^\\\\u0027\\\\u005C\\\\u000A\\u000D])|(${echarPattern.source}))*'`);\nexport const stringLiteral2Pattern = new RegExp(`\"(([^\\\\u0022\\\\u005C\\\\u000A\\\\u000D])|(${echarPattern.source}))*\"`);\nexport const stringLiteralLong1Pattern = new RegExp(`'''(('|(''))?([^'\\\\\\\\]|(${echarPattern.source})))*'''`);\nexport const stringLiteralLong2Pattern = new RegExp(`\"\"\"((\"|(\"\"))?([^\"\\\\\\\\]|(${echarPattern.source})))*\"\"\"`);\nexport const wsPattern = /[\\u0009\\u000A\\u000D ]/;\nexport const nilPattern = new RegExp(`\\\\((${wsPattern.source})*\\\\)`);\nexport const anonPattern = new RegExp(`\\\\[(${wsPattern.source})*\\\\]`);\nexport const commentPattern = /#[^\\n]*\\n/;\n\nexport const atLeastOneBlankPattern = new RegExp(`((${wsPattern.source}+)|(${commentPattern.source}))+`);\n"]}
@@ -1,107 +1,32 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var symbols_exports = {};
20
- __export(symbols_exports, {
21
- LCurly: () => LCurly,
22
- LParen: () => LParen,
23
- LSquare: () => LSquare,
24
- RCurly: () => RCurly,
25
- RParen: () => RParen,
26
- RSquare: () => RSquare,
27
- allSymbols: () => allSymbols,
28
- comma: () => comma,
29
- dot: () => dot,
30
- equal: () => equal,
31
- exclamation: () => exclamation,
32
- greaterThan: () => greaterThan,
33
- greaterThanEqual: () => greaterThanEqual,
34
- hat: () => hat,
35
- hathat: () => hathat,
36
- lessThan: () => lessThan,
37
- lessThanEqual: () => lessThanEqual,
38
- logicAnd: () => logicAnd,
39
- logicOr: () => logicOr,
40
- notEqual: () => notEqual,
41
- opMinus: () => opMinus,
42
- opPlus: () => opPlus,
43
- pipe: () => pipe,
44
- question: () => question,
45
- semi: () => semi,
46
- slash: () => slash,
47
- star: () => star
48
- });
49
- module.exports = __toCommonJS(symbols_exports);
50
- var import_core = require("@traqula/core");
51
- const LCurly = (0, import_core.createToken)({ name: "LCurly", pattern: "{", label: "{" });
52
- const RCurly = (0, import_core.createToken)({ name: "RCurly", pattern: "}", label: "}" });
53
- const dot = (0, import_core.createToken)({ name: "Dot", pattern: ".", label: "." });
54
- const comma = (0, import_core.createToken)({ name: "Comma", pattern: ",", label: "," });
55
- const semi = (0, import_core.createToken)({ name: "Semi", pattern: ";", label: ";" });
56
- const LParen = (0, import_core.createToken)({ name: "LParen", pattern: "(", label: "(" });
57
- const RParen = (0, import_core.createToken)({ name: "RParen", pattern: ")", label: ")" });
58
- const LSquare = (0, import_core.createToken)({ name: "LSquare", pattern: "[", label: "[" });
59
- const RSquare = (0, import_core.createToken)({ name: "RSquare", pattern: "]", label: "]" });
60
- const pipe = (0, import_core.createToken)({ name: "Pipe", pattern: "|", label: "|" });
61
- const slash = (0, import_core.createToken)({ name: "Slash", pattern: "/", label: "/" });
62
- const hat = (0, import_core.createToken)({ name: "Hat", pattern: "^", label: "^" });
63
- const question = (0, import_core.createToken)({ name: "Question", pattern: "?", label: "?" });
64
- const star = (0, import_core.createToken)({ name: "Star", pattern: "*", label: "*" });
65
- const opPlus = (0, import_core.createToken)({ name: "OpPlus", pattern: "+", label: "+" });
66
- const opMinus = (0, import_core.createToken)({ name: "OpMinus", pattern: "-", label: "-" });
67
- const exclamation = (0, import_core.createToken)({ name: "Exclamation", pattern: "!", label: "!" });
68
- const logicAnd = (0, import_core.createToken)({ name: "LogicAnd", pattern: "&&", label: "&&" });
69
- const logicOr = (0, import_core.createToken)({ name: "LogicOr", pattern: "||", label: "||" });
70
- const equal = (0, import_core.createToken)({ name: "Equal", pattern: "=", label: "=" });
71
- const notEqual = (0, import_core.createToken)({ name: "NotEqual", pattern: "!=", label: "!=" });
72
- const lessThan = (0, import_core.createToken)({ name: "LessThan", pattern: "<", label: "<" });
73
- const greaterThan = (0, import_core.createToken)({ name: "GreaterThan", pattern: ">", label: ">" });
74
- const lessThanEqual = (0, import_core.createToken)({ name: "LessThanEqual", pattern: "<=", label: "<=" });
75
- const greaterThanEqual = (0, import_core.createToken)({ name: "GreaterThanEqual", pattern: ">=", label: ">=" });
76
- const hathat = (0, import_core.createToken)({ name: "Hathat", pattern: "^^", label: "^^" });
77
- const allSymbols = import_core.LexerBuilder.create().add(logicAnd, logicOr, notEqual, lessThanEqual, greaterThanEqual, LCurly, RCurly, dot, comma, semi, LParen, RParen, LSquare, RSquare, pipe, slash, hathat, hat, question, star, opPlus, opMinus, exclamation, equal, lessThan, greaterThan);
78
- // Annotate the CommonJS export names for ESM import in node:
79
- 0 && (module.exports = {
80
- LCurly,
81
- LParen,
82
- LSquare,
83
- RCurly,
84
- RParen,
85
- RSquare,
86
- allSymbols,
87
- comma,
88
- dot,
89
- equal,
90
- exclamation,
91
- greaterThan,
92
- greaterThanEqual,
93
- hat,
94
- hathat,
95
- lessThan,
96
- lessThanEqual,
97
- logicAnd,
98
- logicOr,
99
- notEqual,
100
- opMinus,
101
- opPlus,
102
- pipe,
103
- question,
104
- semi,
105
- slash,
106
- star
107
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allSymbols = exports.hathat = exports.greaterThanEqual = exports.lessThanEqual = exports.greaterThan = exports.lessThan = exports.notEqual = exports.equal = exports.logicOr = exports.logicAnd = exports.exclamation = exports.opMinus = exports.opPlus = exports.star = exports.question = exports.hat = exports.slash = exports.pipe = exports.RSquare = exports.LSquare = exports.RParen = exports.LParen = exports.semi = exports.comma = exports.dot = exports.RCurly = exports.LCurly = void 0;
4
+ const core_1 = require("@traqula/core");
5
+ exports.LCurly = (0, core_1.createToken)({ name: 'LCurly', pattern: '{', label: '{' });
6
+ exports.RCurly = (0, core_1.createToken)({ name: 'RCurly', pattern: '}', label: '}' });
7
+ exports.dot = (0, core_1.createToken)({ name: 'Dot', pattern: '.', label: '.' });
8
+ exports.comma = (0, core_1.createToken)({ name: 'Comma', pattern: ',', label: ',' });
9
+ exports.semi = (0, core_1.createToken)({ name: 'Semi', pattern: ';', label: ';' });
10
+ exports.LParen = (0, core_1.createToken)({ name: 'LParen', pattern: '(', label: '(' });
11
+ exports.RParen = (0, core_1.createToken)({ name: 'RParen', pattern: ')', label: ')' });
12
+ exports.LSquare = (0, core_1.createToken)({ name: 'LSquare', pattern: '[', label: '[' });
13
+ exports.RSquare = (0, core_1.createToken)({ name: 'RSquare', pattern: ']', label: ']' });
14
+ exports.pipe = (0, core_1.createToken)({ name: 'Pipe', pattern: '|', label: '|' });
15
+ exports.slash = (0, core_1.createToken)({ name: 'Slash', pattern: '/', label: '/' });
16
+ exports.hat = (0, core_1.createToken)({ name: 'Hat', pattern: '^', label: '^' });
17
+ exports.question = (0, core_1.createToken)({ name: 'Question', pattern: '?', label: '?' });
18
+ exports.star = (0, core_1.createToken)({ name: 'Star', pattern: '*', label: '*' });
19
+ exports.opPlus = (0, core_1.createToken)({ name: 'OpPlus', pattern: '+', label: '+' });
20
+ exports.opMinus = (0, core_1.createToken)({ name: 'OpMinus', pattern: '-', label: '-' });
21
+ exports.exclamation = (0, core_1.createToken)({ name: 'Exclamation', pattern: '!', label: '!' });
22
+ exports.logicAnd = (0, core_1.createToken)({ name: 'LogicAnd', pattern: '&&', label: '&&' });
23
+ exports.logicOr = (0, core_1.createToken)({ name: 'LogicOr', pattern: '||', label: '||' });
24
+ exports.equal = (0, core_1.createToken)({ name: 'Equal', pattern: '=', label: '=' });
25
+ exports.notEqual = (0, core_1.createToken)({ name: 'NotEqual', pattern: '!=', label: '!=' });
26
+ exports.lessThan = (0, core_1.createToken)({ name: 'LessThan', pattern: '<', label: '<' });
27
+ exports.greaterThan = (0, core_1.createToken)({ name: 'GreaterThan', pattern: '>', label: '>' });
28
+ exports.lessThanEqual = (0, core_1.createToken)({ name: 'LessThanEqual', pattern: '<=', label: '<=' });
29
+ exports.greaterThanEqual = (0, core_1.createToken)({ name: 'GreaterThanEqual', pattern: '>=', label: '>=' });
30
+ exports.hathat = (0, core_1.createToken)({ name: 'Hathat', pattern: '^^', label: '^^' });
31
+ exports.allSymbols = core_1.LexerBuilder.create().add(exports.logicAnd, exports.logicOr, exports.notEqual, exports.lessThanEqual, exports.greaterThanEqual, exports.LCurly, exports.RCurly, exports.dot, exports.comma, exports.semi, exports.LParen, exports.RParen, exports.LSquare, exports.RSquare, exports.pipe, exports.slash, exports.hathat, exports.hat, exports.question, exports.star, exports.opPlus, exports.opMinus, exports.exclamation, exports.equal, exports.lessThan, exports.greaterThan);
32
+ //# sourceMappingURL=symbols.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbols.js","sourceRoot":"","sources":["../../../../lib/lexer/symbols.ts"],"names":[],"mappings":";;;AAAA,wCAA0D;AAE7C,QAAA,MAAM,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AACnE,QAAA,MAAM,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AACnE,QAAA,GAAG,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AAC7D,QAAA,KAAK,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AACjE,QAAA,IAAI,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/D,QAAA,MAAM,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AACnE,QAAA,MAAM,GAAG,IAAA,kBAA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O,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACzF,QAAA,MAAM,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAErE,QAAA,UAAU,GAAG,mBAAY,CAAC,MAAM,EAAE,CAAC,GAAG,CACjD,gBAAQ,EACR,eAAO,EACP,gBAAQ,EACR,qBAAa,EACb,wBAAgB,EAChB,cAAM,EACN,cAAM,EACN,WAAG,EACH,aAAK,EACL,YAAI,EACJ,cAAM,EACN,cAAM,EACN,eAAO,EACP,eAAO,EACP,YAAI,EACJ,aAAK,EACL,cAAM,EACN,WAAG,EACH,gBAAQ,EACR,YAAI,EACJ,cAAM,EACN,eAAO,EACP,mBAAW,EACX,aAAK,EACL,gBAAQ,EACR,mBAAW,CACZ,CAAC","sourcesContent":["import { LexerBuilder, createToken } from '@traqula/core';\n\nexport const LCurly = createToken({ name: 'LCurly', pattern: '{', label: '{' });\nexport const RCurly = createToken({ name: 'RCurly', pattern: '}', label: '}' });\nexport const dot = createToken({ name: 'Dot', pattern: '.', label: '.' });\nexport const comma = createToken({ name: 'Comma', pattern: ',', label: ',' });\nexport const semi = createToken({ name: 'Semi', pattern: ';', label: ';' });\nexport const LParen = createToken({ name: 'LParen', pattern: '(', label: '(' });\nexport const RParen = createToken({ name: 'RParen', pattern: ')', label: ')' });\nexport const LSquare = createToken({ name: 'LSquare', pattern: '[', label: '[' });\nexport const RSquare = createToken({ name: 'RSquare', pattern: ']', label: ']' });\nexport const pipe = createToken({ name: 'Pipe', pattern: '|', label: '|' });\nexport const slash = createToken({ name: 'Slash', pattern: '/', label: '/' });\nexport const hat = createToken({ name: 'Hat', pattern: '^', label: '^' });\nexport const question = createToken({ name: 'Question', pattern: '?', label: '?' });\nexport const star = createToken({ name: 'Star', pattern: '*', label: '*' });\nexport const opPlus = createToken({ name: 'OpPlus', pattern: '+', label: '+' });\nexport const opMinus = createToken({ name: 'OpMinus', pattern: '-', label: '-' });\nexport const exclamation = createToken({ name: 'Exclamation', pattern: '!', label: '!' });\nexport const logicAnd = createToken({ name: 'LogicAnd', pattern: '&&', label: '&&' });\nexport const logicOr = createToken({ name: 'LogicOr', pattern: '||', label: '||' });\nexport const equal = createToken({ name: 'Equal', pattern: '=', label: '=' });\nexport const notEqual = createToken({ name: 'NotEqual', pattern: '!=', label: '!=' });\nexport const lessThan = createToken({ name: 'LessThan', pattern: '<', label: '<' });\nexport const greaterThan = createToken({ name: 'GreaterThan', pattern: '>', label: '>' });\nexport const lessThanEqual = createToken({ name: 'LessThanEqual', pattern: '<=', label: '<=' });\nexport const greaterThanEqual = createToken({ name: 'GreaterThanEqual', pattern: '>=', label: '>=' });\nexport const hathat = createToken({ name: 'Hathat', pattern: '^^', label: '^^' });\n\nexport const allSymbols = LexerBuilder.create().add(\n logicAnd,\n logicOr,\n notEqual,\n lessThanEqual,\n greaterThanEqual,\n LCurly,\n RCurly,\n dot,\n comma,\n semi,\n LParen,\n RParen,\n LSquare,\n RSquare,\n pipe,\n slash,\n hathat,\n hat,\n question,\n star,\n opPlus,\n opMinus,\n exclamation,\n equal,\n lessThan,\n greaterThan,\n);\n"]}
@@ -1,103 +1,101 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var terminals_exports = {};
20
- __export(terminals_exports, {
21
- allTerminals: () => allTerminals,
22
- anon: () => anon,
23
- blankNodeLabel: () => blankNodeLabel,
24
- comment: () => comment,
25
- decimal: () => decimal,
26
- decimalNegative: () => decimalNegative,
27
- decimalPositive: () => decimalPositive,
28
- double: () => double,
29
- doubleNegative: () => doubleNegative,
30
- doublePositive: () => doublePositive,
31
- integer: () => integer,
32
- integerNegative: () => integerNegative,
33
- integerPositive: () => integerPositive,
34
- iriRef: () => iriRef,
35
- langTag: () => langTag,
36
- nil: () => nil,
37
- pNameLn: () => pNameLn,
38
- pNameNs: () => pNameNs,
39
- stringLiteral1: () => stringLiteral1,
40
- stringLiteral2: () => stringLiteral2,
41
- stringLiteralLong1: () => stringLiteralLong1,
42
- stringLiteralLong2: () => stringLiteralLong2,
43
- var1: () => var1,
44
- var2: () => var2,
45
- ws: () => ws
46
- });
47
- module.exports = __toCommonJS(terminals_exports);
48
- var import_chevrotain = require("@traqula/chevrotain");
49
- var import_core = require("@traqula/core");
50
- var import_lexerPatterns = require("./lexerPatterns.js");
51
- const iriRef = (0, import_core.createToken)({ name: "IriRef", pattern: import_lexerPatterns.iriRefPattern });
52
- const pNameLn = (0, import_core.createToken)({ name: "PNameLn", pattern: import_lexerPatterns.pNameLnPattern });
53
- const pNameNs = (0, import_core.createToken)({ name: "PNameNs", pattern: import_lexerPatterns.pNameNsPattern, longer_alt: [pNameLn] });
54
- const blankNodeLabel = (0, import_core.createToken)({ name: "BlankNodeLabel", pattern: import_lexerPatterns.blankNodeLabelPattern });
55
- const var1 = (0, import_core.createToken)({ name: "Var1", pattern: import_lexerPatterns.var1Pattern });
56
- const var2 = (0, import_core.createToken)({ name: "Var2", pattern: import_lexerPatterns.var2Pattern });
57
- const langTag = (0, import_core.createToken)({ name: "LangTag", pattern: import_lexerPatterns.langTagPattern });
58
- const integer = (0, import_core.createToken)({ name: "Integer", pattern: import_lexerPatterns.integerPattern });
59
- const decimal = (0, import_core.createToken)({ name: "Decimal", pattern: import_lexerPatterns.decimalPattern });
60
- const double = (0, import_core.createToken)({ name: "Double", pattern: import_lexerPatterns.doublePattern });
61
- const integerPositive = (0, import_core.createToken)({ name: "InterferePositive", pattern: import_lexerPatterns.interferePositivePattern });
62
- const decimalPositive = (0, import_core.createToken)({ name: "DecimalPositive", pattern: import_lexerPatterns.decimalPositivePattern });
63
- const doublePositive = (0, import_core.createToken)({ name: "DoublePositive", pattern: import_lexerPatterns.doublePositivePattern });
64
- const integerNegative = (0, import_core.createToken)({ name: "IntegerNegative", pattern: import_lexerPatterns.integerNegativePattern });
65
- const decimalNegative = (0, import_core.createToken)({ name: "DecimalNegative", pattern: import_lexerPatterns.decimalNegativePattern });
66
- const doubleNegative = (0, import_core.createToken)({ name: "DoubleNegative", pattern: import_lexerPatterns.doubleNegativePattern });
67
- const stringLiteral1 = (0, import_core.createToken)({ name: "StringLiteral1", pattern: import_lexerPatterns.stringLiteral1Pattern });
68
- const stringLiteral2 = (0, import_core.createToken)({ name: "StringLiteral2", pattern: import_lexerPatterns.stringLiteral2Pattern });
69
- const stringLiteralLong1 = (0, import_core.createToken)({ name: "StringLiteralLong1", pattern: import_lexerPatterns.stringLiteralLong1Pattern });
70
- const stringLiteralLong2 = (0, import_core.createToken)({ name: "StringLiteralLong2", pattern: import_lexerPatterns.stringLiteralLong2Pattern });
71
- const ws = (0, import_core.createToken)({ name: "Ws", pattern: import_lexerPatterns.wsPattern, group: import_chevrotain.Lexer.SKIPPED });
72
- const comment = (0, import_core.createToken)({ name: "Comment", pattern: import_lexerPatterns.commentPattern, group: import_chevrotain.Lexer.SKIPPED });
73
- const nil = (0, import_core.createToken)({ name: "Nil", pattern: import_lexerPatterns.nilPattern });
74
- const anon = (0, import_core.createToken)({ name: "Anon", pattern: import_lexerPatterns.anonPattern });
75
- const allTerminals = import_core.LexerBuilder.create().add(iriRef, pNameNs, pNameLn, blankNodeLabel, var1, var2, langTag, double, decimal, integer, integerPositive, decimalPositive, doublePositive, integerNegative, decimalNegative, doubleNegative, stringLiteralLong1, stringLiteralLong2, stringLiteral1, stringLiteral2, ws, comment, nil, anon);
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- allTerminals,
79
- anon,
80
- blankNodeLabel,
81
- comment,
82
- decimal,
83
- decimalNegative,
84
- decimalPositive,
85
- double,
86
- doubleNegative,
87
- doublePositive,
88
- integer,
89
- integerNegative,
90
- integerPositive,
91
- iriRef,
92
- langTag,
93
- nil,
94
- pNameLn,
95
- pNameNs,
96
- stringLiteral1,
97
- stringLiteral2,
98
- stringLiteralLong1,
99
- stringLiteralLong2,
100
- var1,
101
- var2,
102
- ws
103
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.allTerminals = exports.anon = exports.nil = exports.comment = exports.ws = exports.stringLiteralLong2 = exports.stringLiteralLong1 = exports.stringLiteral2 = exports.stringLiteral1 = exports.doubleNegative = exports.decimalNegative = exports.integerNegative = exports.doublePositive = exports.decimalPositive = exports.integerPositive = exports.double = exports.decimal = exports.integer = exports.langTag = exports.var2 = exports.var1 = exports.blankNodeLabel = exports.pNameNs = exports.pNameLn = exports.iriRef = void 0;
4
+ const chevrotain_1 = require("@traqula/chevrotain");
5
+ const core_1 = require("@traqula/core");
6
+ const lexerPatterns_js_1 = require("./lexerPatterns.js");
7
+ /**
8
+ * [[139]](https://www.w3.org/TR/sparql11-query/#rIRIREF)
9
+ */
10
+ exports.iriRef = (0, core_1.createToken)({ name: 'IriRef', pattern: lexerPatterns_js_1.iriRefPattern });
11
+ /**
12
+ * [[141]](https://www.w3.org/TR/sparql11-query/#rPNAME_LN)
13
+ */
14
+ exports.pNameLn = (0, core_1.createToken)({ name: 'PNameLn', pattern: lexerPatterns_js_1.pNameLnPattern });
15
+ /**
16
+ * [[140]](https://www.w3.org/TR/sparql11-query/#rPNAME_NS)
17
+ */
18
+ exports.pNameNs = (0, core_1.createToken)({ name: 'PNameNs', pattern: lexerPatterns_js_1.pNameNsPattern, longer_alt: [exports.pNameLn] });
19
+ /**
20
+ * [[142]](https://www.w3.org/TR/sparql11-query/#rBLANK_NODE_LABEL)
21
+ */
22
+ exports.blankNodeLabel = (0, core_1.createToken)({ name: 'BlankNodeLabel', pattern: lexerPatterns_js_1.blankNodeLabelPattern });
23
+ /**
24
+ * [[143]](https://www.w3.org/TR/sparql11-query/#rVAR1)
25
+ */
26
+ exports.var1 = (0, core_1.createToken)({ name: 'Var1', pattern: lexerPatterns_js_1.var1Pattern });
27
+ /**
28
+ * [[144]](https://www.w3.org/TR/sparql11-query/#rVAR1)
29
+ */
30
+ exports.var2 = (0, core_1.createToken)({ name: 'Var2', pattern: lexerPatterns_js_1.var2Pattern });
31
+ /**
32
+ * [[145]](https://www.w3.org/TR/sparql11-query/#rLANGTAG)
33
+ */
34
+ exports.langTag = (0, core_1.createToken)({ name: 'LangTag', pattern: lexerPatterns_js_1.langTagPattern });
35
+ /**
36
+ * [[146]](https://www.w3.org/TR/sparql11-query/#rINTEGER)
37
+ */
38
+ exports.integer = (0, core_1.createToken)({ name: 'Integer', pattern: lexerPatterns_js_1.integerPattern });
39
+ /**
40
+ * [[148]](https://www.w3.org/TR/sparql11-query/#rDOUBLE)
41
+ */
42
+ exports.decimal = (0, core_1.createToken)({ name: 'Decimal', pattern: lexerPatterns_js_1.decimalPattern });
43
+ /**
44
+ * [[148]](https://www.w3.org/TR/sparql11-query/#rDOUBLE)
45
+ */
46
+ exports.double = (0, core_1.createToken)({ name: 'Double', pattern: lexerPatterns_js_1.doublePattern });
47
+ /**
48
+ * [[149]](https://www.w3.org/TR/sparql11-query/#rINTEGER_POSITIVE)
49
+ */
50
+ exports.integerPositive = (0, core_1.createToken)({ name: 'InterferePositive', pattern: lexerPatterns_js_1.interferePositivePattern });
51
+ /**
52
+ * [[150]](https://www.w3.org/TR/sparql11-query/#rDECIMAL_POSITIVE)
53
+ */
54
+ exports.decimalPositive = (0, core_1.createToken)({ name: 'DecimalPositive', pattern: lexerPatterns_js_1.decimalPositivePattern });
55
+ /**
56
+ * [[151]](https://www.w3.org/TR/sparql11-query/#rDOUBLE_POSITIVE)
57
+ */
58
+ exports.doublePositive = (0, core_1.createToken)({ name: 'DoublePositive', pattern: lexerPatterns_js_1.doublePositivePattern });
59
+ /**
60
+ * [[152]](https://www.w3.org/TR/sparql11-query/#rINTEGER_NEGATIVE)
61
+ */
62
+ exports.integerNegative = (0, core_1.createToken)({ name: 'IntegerNegative', pattern: lexerPatterns_js_1.integerNegativePattern });
63
+ /**
64
+ * [[153]](https://www.w3.org/TR/sparql11-query/#rDECIMAL_NEGATIVE)
65
+ */
66
+ exports.decimalNegative = (0, core_1.createToken)({ name: 'DecimalNegative', pattern: lexerPatterns_js_1.decimalNegativePattern });
67
+ /**
68
+ * [[154]](https://www.w3.org/TR/sparql11-query/#rDOUBLE_NEGATIVE)
69
+ */
70
+ exports.doubleNegative = (0, core_1.createToken)({ name: 'DoubleNegative', pattern: lexerPatterns_js_1.doubleNegativePattern });
71
+ /**
72
+ * [[156]](https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL1)
73
+ */
74
+ exports.stringLiteral1 = (0, core_1.createToken)({ name: 'StringLiteral1', pattern: lexerPatterns_js_1.stringLiteral1Pattern });
75
+ /**
76
+ * [[157]](https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL1)
77
+ */
78
+ exports.stringLiteral2 = (0, core_1.createToken)({ name: 'StringLiteral2', pattern: lexerPatterns_js_1.stringLiteral2Pattern });
79
+ /**
80
+ * [[158]](https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL_LONG1)
81
+ */
82
+ exports.stringLiteralLong1 = (0, core_1.createToken)({ name: 'StringLiteralLong1', pattern: lexerPatterns_js_1.stringLiteralLong1Pattern });
83
+ /**
84
+ * [[159]]https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL_LONG2)
85
+ */
86
+ exports.stringLiteralLong2 = (0, core_1.createToken)({ name: 'StringLiteralLong2', pattern: lexerPatterns_js_1.stringLiteralLong2Pattern });
87
+ /**
88
+ * https://www.w3.org/TR/sparql11-query/#rWS
89
+ */
90
+ exports.ws = (0, core_1.createToken)({ name: 'Ws', pattern: lexerPatterns_js_1.wsPattern, group: chevrotain_1.Lexer.SKIPPED });
91
+ exports.comment = (0, core_1.createToken)({ name: 'Comment', pattern: lexerPatterns_js_1.commentPattern, group: chevrotain_1.Lexer.SKIPPED });
92
+ /**
93
+ * [[161]](https://www.w3.org/TR/sparql11-query/#rNIL)
94
+ */
95
+ exports.nil = (0, core_1.createToken)({ name: 'Nil', pattern: lexerPatterns_js_1.nilPattern });
96
+ /**
97
+ * [[163]](https://www.w3.org/TR/sparql11-query/#rANON)
98
+ */
99
+ exports.anon = (0, core_1.createToken)({ name: 'Anon', pattern: lexerPatterns_js_1.anonPattern });
100
+ exports.allTerminals = core_1.LexerBuilder.create().add(exports.iriRef, exports.pNameNs, exports.pNameLn, exports.blankNodeLabel, exports.var1, exports.var2, exports.langTag, exports.double, exports.decimal, exports.integer, exports.integerPositive, exports.decimalPositive, exports.doublePositive, exports.integerNegative, exports.decimalNegative, exports.doubleNegative, exports.stringLiteralLong1, exports.stringLiteralLong2, exports.stringLiteral1, exports.stringLiteral2, exports.ws, exports.comment, exports.nil, exports.anon);
101
+ //# sourceMappingURL=terminals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminals.js","sourceRoot":"","sources":["../../../../lib/lexer/terminals.ts"],"names":[],"mappings":";;;AAAA,oDAA4C;AAC5C,wCAA0D;AAC1D,yDAyB4B;AAE5B;;GAEG;AACU,QAAA,MAAM,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gCAAa,EAAE,CAAC,CAAC;AAC9E;;GAEG;AACU,QAAA,OAAO,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,iCAAc,EAAE,CAAC,CAA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AAA,OAAO,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,iCAAc,EAAE,KAAK,EAAE,kBAAK,CAAC,OAAO,EAAE,CAAC,CAAC;AACvG;;GAEG;AACU,QAAA,GAAG,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,6BAAU,EAAE,CAAC,CAAC;AACrE;;GAEG;AACU,QAAA,IAAI,GAAG,IAAA,kBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,8BAAW,EAAE,CAAC,CAAC;AAE3D,QAAA,YAAY,GAAG,mBAAY,CAAC,MAAM,EAAE,CAAC,GAAG,CACnD,cAAM,EACN,eAAO,EACP,eAAO,EACP,sBAAc,EACd,YAAI,EACJ,YAAI,EACJ,eAAO,EACP,cAAM,EACN,eAAO,EACP,eAAO,EACP,uBAAe,EACf,uBAAe,EACf,sBAAc,EACd,uBAAe,EACf,uBAAe,EACf,sBAAc,EACd,0BAAkB,EAClB,0BAAkB,EAClB,sBAAc,EACd,sBAAc,EACd,UAAE,EACF,eAAO,EACP,WAAG,EACH,YAAI,CACL,CAAC","sourcesContent":["import { Lexer } from '@traqula/chevrotain';\nimport { LexerBuilder, createToken } from '@traqula/core';\nimport {\n anonPattern,\n blankNodeLabelPattern,\n commentPattern,\n decimalNegativePattern,\n decimalPattern,\n decimalPositivePattern,\n doubleNegativePattern,\n doublePattern,\n doublePositivePattern,\n integerNegativePattern,\n integerPattern,\n interferePositivePattern,\n iriRefPattern,\n langTagPattern,\n nilPattern,\n pNameLnPattern,\n pNameNsPattern,\n stringLiteral1Pattern,\n stringLiteral2Pattern,\n stringLiteralLong1Pattern,\n stringLiteralLong2Pattern,\n var1Pattern,\n var2Pattern,\n wsPattern,\n} from './lexerPatterns.js';\n\n/**\n * [[139]](https://www.w3.org/TR/sparql11-query/#rIRIREF)\n */\nexport const iriRef = createToken({ name: 'IriRef', pattern: iriRefPattern });\n/**\n * [[141]](https://www.w3.org/TR/sparql11-query/#rPNAME_LN)\n */\nexport const pNameLn = createToken({ name: 'PNameLn', pattern: pNameLnPattern });\n/**\n * [[140]](https://www.w3.org/TR/sparql11-query/#rPNAME_NS)\n */\nexport const pNameNs = createToken({ name: 'PNameNs', pattern: pNameNsPattern, longer_alt: [ pNameLn ]});\n/**\n * [[142]](https://www.w3.org/TR/sparql11-query/#rBLANK_NODE_LABEL)\n */\nexport const blankNodeLabel = createToken({ name: 'BlankNodeLabel', pattern: blankNodeLabelPattern });\n/**\n * [[143]](https://www.w3.org/TR/sparql11-query/#rVAR1)\n */\nexport const var1 = createToken({ name: 'Var1', pattern: var1Pattern });\n/**\n * [[144]](https://www.w3.org/TR/sparql11-query/#rVAR1)\n */\nexport const var2 = createToken({ name: 'Var2', pattern: var2Pattern });\n/**\n * [[145]](https://www.w3.org/TR/sparql11-query/#rLANGTAG)\n */\nexport const langTag = createToken({ name: 'LangTag', pattern: langTagPattern });\n/**\n * [[146]](https://www.w3.org/TR/sparql11-query/#rINTEGER)\n */\nexport const integer = createToken({ name: 'Integer', pattern: integerPattern });\n/**\n * [[148]](https://www.w3.org/TR/sparql11-query/#rDOUBLE)\n */\nexport const decimal = createToken({ name: 'Decimal', pattern: decimalPattern });\n/**\n * [[148]](https://www.w3.org/TR/sparql11-query/#rDOUBLE)\n */\nexport const double = createToken({ name: 'Double', pattern: doublePattern });\n/**\n * [[149]](https://www.w3.org/TR/sparql11-query/#rINTEGER_POSITIVE)\n */\nexport const integerPositive = createToken({ name: 'InterferePositive', pattern: interferePositivePattern });\n/**\n * [[150]](https://www.w3.org/TR/sparql11-query/#rDECIMAL_POSITIVE)\n */\nexport const decimalPositive = createToken({ name: 'DecimalPositive', pattern: decimalPositivePattern });\n/**\n * [[151]](https://www.w3.org/TR/sparql11-query/#rDOUBLE_POSITIVE)\n */\nexport const doublePositive = createToken({ name: 'DoublePositive', pattern: doublePositivePattern });\n/**\n * [[152]](https://www.w3.org/TR/sparql11-query/#rINTEGER_NEGATIVE)\n */\nexport const integerNegative = createToken({ name: 'IntegerNegative', pattern: integerNegativePattern });\n/**\n * [[153]](https://www.w3.org/TR/sparql11-query/#rDECIMAL_NEGATIVE)\n */\nexport const decimalNegative = createToken({ name: 'DecimalNegative', pattern: decimalNegativePattern });\n/**\n * [[154]](https://www.w3.org/TR/sparql11-query/#rDOUBLE_NEGATIVE)\n */\nexport const doubleNegative = createToken({ name: 'DoubleNegative', pattern: doubleNegativePattern });\n/**\n * [[156]](https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL1)\n */\nexport const stringLiteral1 = createToken({ name: 'StringLiteral1', pattern: stringLiteral1Pattern });\n/**\n * [[157]](https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL1)\n */\nexport const stringLiteral2 = createToken({ name: 'StringLiteral2', pattern: stringLiteral2Pattern });\n/**\n * [[158]](https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL_LONG1)\n */\nexport const stringLiteralLong1 = createToken({ name: 'StringLiteralLong1', pattern: stringLiteralLong1Pattern });\n/**\n * [[159]]https://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL_LONG2)\n */\nexport const stringLiteralLong2 = createToken({ name: 'StringLiteralLong2', pattern: stringLiteralLong2Pattern });\n/**\n * https://www.w3.org/TR/sparql11-query/#rWS\n */\nexport const ws = createToken({ name: 'Ws', pattern: wsPattern, group: Lexer.SKIPPED });\nexport const comment = createToken({ name: 'Comment', pattern: commentPattern, group: Lexer.SKIPPED });\n/**\n * [[161]](https://www.w3.org/TR/sparql11-query/#rNIL)\n */\nexport const nil = createToken({ name: 'Nil', pattern: nilPattern });\n/**\n * [[163]](https://www.w3.org/TR/sparql11-query/#rANON)\n */\nexport const anon = createToken({ name: 'Anon', pattern: anonPattern });\n\nexport const allTerminals = LexerBuilder.create().add(\n iriRef,\n pNameNs,\n pNameLn,\n blankNodeLabel,\n var1,\n var2,\n langTag,\n double,\n decimal,\n integer,\n integerPositive,\n decimalPositive,\n doublePositive,\n integerNegative,\n decimalNegative,\n doubleNegative,\n stringLiteralLong1,\n stringLiteralLong2,\n stringLiteral1,\n stringLiteral2,\n ws,\n comment,\n nil,\n anon,\n);\n"]}
@@ -1,16 +1,3 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
- var sparql11HelperTypes_exports = {};
16
- module.exports = __toCommonJS(sparql11HelperTypes_exports);
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=sparql11HelperTypes.js.map