import * as TSU from "@panyam/tsutils"; import * as TLEX from "tlex"; import { TokenHandler } from "./dsl"; import { Parser, ParseTable } from "./lr"; import { LRItemGraph } from "./lritems"; export interface ParserOptions { type?: "slr" | "lalr" | "lr1"; tokenizer?: TLEX.NextTokenFunc; debug?: "all" | "lexer" | "parser" | string; leftRecursive?: boolean; auxNTPrefix?: string; tokenHandlers?: TSU.StringMap; } export declare function newLRParser(input: string, params?: ParserOptions | null): [Parser, null | TLEX.NextTokenFunc, LRItemGraph]; export declare function newParseTable(input: string, params?: ParserOptions | null): [ParseTable, null | TLEX.NextTokenFunc, LRItemGraph];