xlucene-parser 0.58.3 → 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/README.md +1 -1
- package/dist/src/cached-parser.d.ts +2 -2
- package/dist/src/cached-parser.d.ts.map +1 -1
- package/dist/src/cached-parser.js +4 -8
- package/dist/src/cached-parser.js.map +1 -1
- package/dist/src/context.d.ts +2 -2
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +17 -47
- package/dist/src/context.js.map +1 -1
- package/dist/src/functions/geo/box.d.ts +1 -1
- package/dist/src/functions/geo/box.d.ts.map +1 -1
- package/dist/src/functions/geo/box.js +10 -12
- package/dist/src/functions/geo/box.js.map +1 -1
- package/dist/src/functions/geo/contains-point.d.ts +1 -1
- package/dist/src/functions/geo/contains-point.d.ts.map +1 -1
- package/dist/src/functions/geo/contains-point.js +10 -12
- package/dist/src/functions/geo/contains-point.js.map +1 -1
- package/dist/src/functions/geo/distance.d.ts +1 -1
- package/dist/src/functions/geo/distance.d.ts.map +1 -1
- package/dist/src/functions/geo/distance.js +10 -12
- package/dist/src/functions/geo/distance.js.map +1 -1
- package/dist/src/functions/geo/polygon.d.ts +1 -1
- package/dist/src/functions/geo/polygon.d.ts.map +1 -1
- package/dist/src/functions/geo/polygon.js +31 -56
- package/dist/src/functions/geo/polygon.js.map +1 -1
- package/dist/src/functions/index.d.ts +1 -1
- package/dist/src/functions/index.d.ts.map +1 -1
- package/dist/src/functions/index.js +14 -21
- package/dist/src/functions/index.js.map +1 -1
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -21
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces.js +2 -5
- package/dist/src/interfaces.js.map +1 -1
- package/dist/src/parser.d.ts +1 -1
- package/dist/src/parser.d.ts.map +1 -1
- package/dist/src/parser.js +29 -53
- package/dist/src/parser.js.map +1 -1
- package/dist/src/peg-engine.d.ts +28 -19
- package/dist/src/peg-engine.d.ts.map +1 -1
- package/dist/src/peg-engine.js +6677 -4071
- package/dist/src/peg-engine.js.map +1 -1
- package/dist/src/utils.d.ts +2 -2
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +75 -129
- package/dist/src/utils.js.map +1 -1
- package/package.json +8 -6
package/dist/src/peg-engine.d.ts
CHANGED
|
@@ -1,56 +1,65 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface FilePosition {
|
|
2
2
|
offset: number;
|
|
3
3
|
line: number;
|
|
4
4
|
column: number;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
7
|
-
start:
|
|
8
|
-
end:
|
|
6
|
+
export interface FileRange {
|
|
7
|
+
start: FilePosition;
|
|
8
|
+
end: FilePosition;
|
|
9
9
|
source: string;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface LiteralExpectation {
|
|
12
12
|
type: "literal";
|
|
13
13
|
text: string;
|
|
14
14
|
ignoreCase: boolean;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface ClassParts extends Array<string | ClassParts> {
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface ClassExpectation {
|
|
19
19
|
type: "class";
|
|
20
|
-
parts:
|
|
20
|
+
parts: ClassParts;
|
|
21
21
|
inverted: boolean;
|
|
22
22
|
ignoreCase: boolean;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface AnyExpectation {
|
|
25
25
|
type: "any";
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface EndExpectation {
|
|
28
28
|
type: "end";
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface OtherExpectation {
|
|
31
31
|
type: "other";
|
|
32
32
|
description: string;
|
|
33
33
|
}
|
|
34
|
-
export type Expectation =
|
|
35
|
-
|
|
34
|
+
export type Expectation = LiteralExpectation | ClassExpectation | AnyExpectation | EndExpectation | OtherExpectation;
|
|
35
|
+
declare class _PeggySyntaxError extends Error {
|
|
36
36
|
static buildMessage(expected: Expectation[], found: string | null): string;
|
|
37
37
|
message: string;
|
|
38
38
|
expected: Expectation[];
|
|
39
39
|
found: string | null;
|
|
40
|
-
location:
|
|
40
|
+
location: FileRange;
|
|
41
41
|
name: string;
|
|
42
|
-
constructor(message: string, expected: Expectation[], found: string | null, location:
|
|
42
|
+
constructor(message: string, expected: Expectation[], found: string | null, location: FileRange);
|
|
43
43
|
format(sources: {
|
|
44
|
-
|
|
44
|
+
source?: any;
|
|
45
45
|
text: string;
|
|
46
46
|
}[]): string;
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
48
|
+
export interface TraceEvent {
|
|
49
|
+
type: string;
|
|
50
|
+
rule: string;
|
|
51
|
+
result?: any;
|
|
52
|
+
location: FileRange;
|
|
53
|
+
}
|
|
54
|
+
export interface ParseOptions {
|
|
49
55
|
filename?: string;
|
|
50
|
-
startRule?:
|
|
56
|
+
startRule?: "start";
|
|
51
57
|
tracer?: any;
|
|
52
58
|
[key: string]: any;
|
|
53
59
|
}
|
|
54
|
-
export type ParseFunction = (input: string, options?:
|
|
60
|
+
export type ParseFunction = (input: string, options?: ParseOptions) => any;
|
|
55
61
|
export declare const parse: ParseFunction;
|
|
62
|
+
export declare const PeggySyntaxError: typeof _PeggySyntaxError;
|
|
63
|
+
export type PeggySyntaxError = _PeggySyntaxError;
|
|
64
|
+
export {};
|
|
56
65
|
//# sourceMappingURL=peg-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peg-engine.d.ts","sourceRoot":"","sources":["../../src/peg-engine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"peg-engine.d.ts","sourceRoot":"","sources":["../../src/peg-engine.ts"],"names":[],"mappings":"AA23QA,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;A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