@cucumber/tag-expressions
Version:
Cucumber Tag Expression parser
15 lines (14 loc) • 520 B
TypeScript
/**
* Parses infix boolean expression (using Dijkstra's Shunting Yard algorithm)
* and builds a tree of expressions. The root node of the expression is returned.
*
* This expression can be evaluated by passing in an array of literals that resolve to true
*/
export declare function parse(infix: string): Node;
export interface Node {
evaluate(variables: string[]): boolean;
}
/**
* @deprecated Use the named export `parse` instead: `import { parse } from '@cucumber/tag-expressions'`
*/
export default parse;