UNPKG

@fauton/cfg

Version:

A package to work with context free grammars and LL1 parsers

8 lines (7 loc) 325 B
import { IContextFreeGrammar } from './types'; /** * Convert a cfg to its string representation * @param productionRules Production rules record * @returns A string corresponding to the cfg rules */ export declare function convertGrammarToString(productionRules: IContextFreeGrammar['productionRules']): string[];