@fauton/cfg
Version:
A package to work with context free grammars and LL1 parsers
13 lines (12 loc) • 452 B
TypeScript
import { IContextFreeGrammarInput } from "./types";
declare type FirstRecord = Record<string, {
first: string[];
substitutions: Array<string[]>;
}>;
/**
* Find first of all the variables of cfg
* @param inputCfg Input context free grammar
* @returns A record where keys are the variables of the cfg and the values first(variable)
*/
export declare function findFirst(inputCfg: IContextFreeGrammarInput): FirstRecord;
export {};