bolt/src/treegen/parser.d.ts

29 lines
443 B
TypeScript

export interface ParseOptions {
[key: string]: any;
}
export function parse(input: string, opts?: ParseOptions): any;
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;
}