UNPKG

@fauton/cfg

Version:

A package to work with context free grammars and LL1 parsers

6 lines (5 loc) 548 B
import { IContextFreeGrammar, IContextFreeGrammarInput } from "./types"; export declare function addDotToProductionRule(productionRules: IContextFreeGrammar["productionRules"], productionVariable: string): void; export declare function generateClosureOfLR0Item(cfg: Omit<IContextFreeGrammar, "startVariable" | "terminals">, productionVariable: string): void; export declare function augmentCfg(inputCfg: IContextFreeGrammarInput): IContextFreeGrammar; export declare function generateLR0ParsingTable(inputCfg: IContextFreeGrammarInput): void;