pegisland
Version:
General PEG-based parser supporting island grammars with lake symbols
17 lines • 740 B
TypeScript
import { IParseTree } from './ParseTree';
interface LineColumn {
readonly line: number;
readonly column: number;
}
interface LineColumnRange {
readonly start: LineColumn;
readonly end: LineColumn;
}
export declare function inRange(a: LineColumnRange, b: LineColumnRange): boolean;
export declare function max(a: LineColumn, b: LineColumn): LineColumn;
export declare function min(a: LineColumn, b: LineColumn): LineColumn;
export declare function searchExpressions(node: IParseTree, range: LineColumnRange): IParseTree[];
export declare type SelectedTree = [IParseTree, SelectedTree[]];
export declare function search(node: IParseTree, range: LineColumnRange): SelectedTree[];
export {};
//# sourceMappingURL=search.d.ts.map