Parse excel formula into a tree
npm install excel-formula-parserParse excel formula into a tree.
npm install excel-formula-parser -S
or
yarn add excel-formula-parser
``js
const {parse, visit} = require('excel-formula-parser');
const tree = parse('SUM(1, 2)');
visit(tree, visitor);
`
`js``
const {parse, visit} = require('excel-formula-parser');
Parse a formula into an expression tree.
- formula: string - Excel formula
Returns: ast node
Visit nodes of the tree.
- tree: ast node
- visitor: object - See excel-formula-ast visitor.
MIT