jiggzson / nerdamer

a symbolic math expression evaluator for javascript
http://www.nerdamer.com
MIT License
514 stars 82 forks source link

expose prepareExpression and change the name to match other functions #674

Open cdonnelly1992 opened 2 years ago

cdonnelly1992 commented 2 years ago

Exposing prepareExpression would allow someone to run the parse command by hand (prepare, tokenize, toRPN, parseRPN) and also make changes to the tokens/RPN if needed.

I'm pretty sure this covers everything needed to expose prepare_expression. Based on the other methods in the parser, I renamed prepare_expression to prepareExpression.