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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/dist/src/cached-parser.d.ts +2 -2
  3. package/dist/src/cached-parser.d.ts.map +1 -1
  4. package/dist/src/cached-parser.js +4 -8
  5. package/dist/src/cached-parser.js.map +1 -1
  6. package/dist/src/context.d.ts +2 -2
  7. package/dist/src/context.d.ts.map +1 -1
  8. package/dist/src/context.js +17 -47
  9. package/dist/src/context.js.map +1 -1
  10. package/dist/src/functions/geo/box.d.ts +1 -1
  11. package/dist/src/functions/geo/box.d.ts.map +1 -1
  12. package/dist/src/functions/geo/box.js +10 -12
  13. package/dist/src/functions/geo/box.js.map +1 -1
  14. package/dist/src/functions/geo/contains-point.d.ts +1 -1
  15. package/dist/src/functions/geo/contains-point.d.ts.map +1 -1
  16. package/dist/src/functions/geo/contains-point.js +10 -12
  17. package/dist/src/functions/geo/contains-point.js.map +1 -1
  18. package/dist/src/functions/geo/distance.d.ts +1 -1
  19. package/dist/src/functions/geo/distance.d.ts.map +1 -1
  20. package/dist/src/functions/geo/distance.js +10 -12
  21. package/dist/src/functions/geo/distance.js.map +1 -1
  22. package/dist/src/functions/geo/polygon.d.ts +1 -1
  23. package/dist/src/functions/geo/polygon.d.ts.map +1 -1
  24. package/dist/src/functions/geo/polygon.js +31 -56
  25. package/dist/src/functions/geo/polygon.js.map +1 -1
  26. package/dist/src/functions/index.d.ts +1 -1
  27. package/dist/src/functions/index.d.ts.map +1 -1
  28. package/dist/src/functions/index.js +14 -21
  29. package/dist/src/functions/index.js.map +1 -1
  30. package/dist/src/index.d.ts +5 -5
  31. package/dist/src/index.d.ts.map +1 -1
  32. package/dist/src/index.js +5 -21
  33. package/dist/src/index.js.map +1 -1
  34. package/dist/src/interfaces.js +2 -5
  35. package/dist/src/interfaces.js.map +1 -1
  36. package/dist/src/parser.d.ts +1 -1
  37. package/dist/src/parser.d.ts.map +1 -1
  38. package/dist/src/parser.js +29 -53
  39. package/dist/src/parser.js.map +1 -1
  40. package/dist/src/peg-engine.d.ts +28 -19
  41. package/dist/src/peg-engine.d.ts.map +1 -1
  42. package/dist/src/peg-engine.js +6677 -4071
  43. package/dist/src/peg-engine.js.map +1 -1
  44. package/dist/src/utils.d.ts +2 -2
  45. package/dist/src/utils.d.ts.map +1 -1
  46. package/dist/src/utils.js +75 -129
  47. package/dist/src/utils.js.map +1 -1
  48. package/package.json +8 -6
@@ -1,56 +1,65 @@
1
- export interface IFilePosition {
1
+ export interface FilePosition {
2
2
  offset: number;
3
3
  line: number;
4
4
  column: number;
5
5
  }
6
- export interface IFileRange {
7
- start: IFilePosition;
8
- end: IFilePosition;
6
+ export interface FileRange {
7
+ start: FilePosition;
8
+ end: FilePosition;
9
9
  source: string;
10
10
  }
11
- export interface ILiteralExpectation {
11
+ export interface LiteralExpectation {
12
12
  type: "literal";
13
13
  text: string;
14
14
  ignoreCase: boolean;
15
15
  }
16
- export interface IClassParts extends Array<string | IClassParts> {
16
+ export interface ClassParts extends Array<string | ClassParts> {
17
17
  }
18
- export interface IClassExpectation {
18
+ export interface ClassExpectation {
19
19
  type: "class";
20
- parts: IClassParts;
20
+ parts: ClassParts;
21
21
  inverted: boolean;
22
22
  ignoreCase: boolean;
23
23
  }
24
- export interface IAnyExpectation {
24
+ export interface AnyExpectation {
25
25
  type: "any";
26
26
  }
27
- export interface IEndExpectation {
27
+ export interface EndExpectation {
28
28
  type: "end";
29
29
  }
30
- export interface IOtherExpectation {
30
+ export interface OtherExpectation {
31
31
  type: "other";
32
32
  description: string;
33
33
  }
34
- export type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;
35
- export declare class SyntaxError extends Error {
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: IFileRange;
40
+ location: FileRange;
41
41
  name: string;
42
- constructor(message: string, expected: Expectation[], found: string | null, location: IFileRange);
42
+ constructor(message: string, expected: Expectation[], found: string | null, location: FileRange);
43
43
  format(sources: {
44
- grammarSource?: string;
44
+ source?: any;
45
45
  text: string;
46
46
  }[]): string;
47
47
  }
48
- export interface IParseOptions {
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?: string;
56
+ startRule?: "start";
51
57
  tracer?: any;
52
58
  [key: string]: any;
53
59
  }
54
- export type ParseFunction = (input: string, options?: IParseOptions) => any;
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":"AAUA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,aAAa,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC;CAAG;AAEnE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAA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