2020-05-10 11:58:07 +02:00
|
|
|
|
|
|
|
export interface ParseOptions {
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function parse(input: string, opts?: ParseOptions): any;
|
2020-05-09 22:17:51 +02:00
|
|
|
|
|
|
|
export interface Location {
|
|
|
|
line: number;
|
|
|
|
column: number;
|
|
|
|
offset: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface LocationRange {
|
|
|
|
start: Location,
|
|
|
|
end: Location
|
|
|
|
}
|
|
|
|
|
|
|
|
export class SyntaxError {
|
|
|
|
line: number;
|
|
|
|
column: number;
|
|
|
|
offset: number;
|
|
|
|
location: LocationRange;
|
|
|
|
expected:any[];
|
|
|
|
found:any;
|
|
|
|
name:string;
|
|
|
|
message:string;
|
|
|
|
}
|
|
|
|
|