This script read a csv or tsv file and evaluate the mathematical expression without using eval() function. We use reverse polish notation to evaluate and Shunting-yard algorithm to create the rpn.
- Run
npm install
in the project directory.
- Run
node evaluate.js input.csv
in the project directory. - output.csv (or .tsv) contains the results.