@matdata/sparql-formatter 1.0.0
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/LICENSE +21 -0
- package/README.md +245 -0
- package/dist/ast.d.ts +447 -0
- package/dist/browser.d.ts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2621 -0
- package/dist/errors.d.ts +12 -0
- package/dist/index.cjs +2573 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +2540 -0
- package/dist/lexer.d.ts +47 -0
- package/dist/parser.d.ts +12 -0
- package/dist/printer.d.ts +89 -0
- package/dist/spfmt.min.js +8 -0
- package/dist/writer.d.ts +73 -0
- package/package.json +70 -0
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Error thrown when a query can't be tokenized or parsed. */
|
|
2
|
+
export declare class SparqlSyntaxError extends Error {
|
|
3
|
+
/** Character offset (0-based) in the input where the error occurred. */
|
|
4
|
+
readonly offset: number;
|
|
5
|
+
/** Line number (1-based). */
|
|
6
|
+
readonly line: number;
|
|
7
|
+
/** Column number (1-based). */
|
|
8
|
+
readonly column: number;
|
|
9
|
+
/** Human-readable descriptions of what the parser expected, when known. */
|
|
10
|
+
readonly expected: string[];
|
|
11
|
+
constructor(message: string, offset: number, line: number, column: number, expected?: string[]);
|
|
12
|
+
}
|