UNPKG

@fauton/cfg

Version:

A package to work with context free grammars and LL1 parsers

8 lines (7 loc) 314 B
/** * Checks if all the letters of a word are terminal * @param terminals Array of terminals * @param word Word that is required to be check * @returns True if all the letters of a word are terminals false otherwise */ export declare function isAllTerminal(terminals: string[], word: string): boolean;