diff --git a/treegen/src/parser.d.ts b/treegen/src/parser.d.ts new file mode 100644 index 000000000..c0e5b014a --- /dev/null +++ b/treegen/src/parser.d.ts @@ -0,0 +1,24 @@ +export function parse(input:string):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; +} +