@fauton/cfg
Version:
A package to work with context free grammars and LL1 parsers
11 lines (10 loc) • 406 B
TypeScript
import { IContextFreeGrammarInput } from "./types";
/**
* Generate LL1 Parsing table
* @param inputCfg Input context free grammar
* @returns A record for LL1 Parsed table and whether the grammar is LL1 parsable
*/
export declare function generateLL1ParsingTable(inputCfg: IContextFreeGrammarInput): {
parseTable: Record<string, Record<string, number | null>>;
isParsable: boolean;
};