question-1 v1.0.4
README
Getting up and running
The following solution is based in Shunting-yard algorithm and trincot. The code is modified for what the homework requested. In order to install and run this package correctly in your project you must:
run npm install question-1
After that, the package will be installed, now you can create a index.js with the following content:
let mymodule = require('question-1')
mymodule.evaluate();
This file will import the package and will execute the evaluate function.
The function needs a file in order to calculate the numeric expression, create a numericExpression.txt file and add an expression. You can use any of the example file in the question of the homework.
Finally, in a terminal run the following commando to see the results:
node index.js numericExpression.txt