UNPKG

@fauton/cfg

Version:

A package to work with context free grammars and LL1 parsers

8 lines (7 loc) 376 B
import { IContextFreeGrammarInput } from './types'; /** * Removes production rules which doesn't derive any terminals or terminable variables * @param cfg terminals, variables and production rules of cfg * @returns An array of variables that are all terminable */ export declare function removeNonTerminableProduction(inputCfg: IContextFreeGrammarInput): string[];