Tokenize Excel formulas.
This is E. W. Bachtal's excel formula tokenizer from http://ewbi.blogs.com/develops/2004/12/excel_formula_p.html
npm install excel-formula-tokenizer -S
or
yarn add excel-formula-tokenizer
const {tokenize} = require('excel-formula-tokenizer');
const tokens = tokenize('SUM(1, 2)');
tokens.forEach({value, type, subtype} => {
console.log(`value: ${value}`);
console.log(`type: ${type}`);
console.log(`subtype: ${subtype}`);
console.log();
});
- formula - string, excel formula
- options - optional object
- options.language -
en-US
,de-DE
,en-EU
- options.language -
MIT