@fauton/cfg
Version:
A package to work with context free grammars and LL1 parsers
9 lines (8 loc) • 359 B
TypeScript
import { Derivation, ParseTree } from "./types";
/**
* Generate parse tree from derivations
* @param variables Array of variables string
* @param derivations Array of production variable and tokens tuple
* @returns Parse tree
*/
export declare function generateParseTreeFromDerivations(variables: string[], derivations: Derivation[]): ParseTree;