Because when you're bored, there's no going back...
If you have no idea what's Reverse Polish Notation, you can check it out on wikipedia.
Demo: https://wisdomsky.github.io/reverse-polish-notation-js-parser/
If you want to try to compile the source by yourself, be sure to check out Jison.
> npm install jison -g
> jison grammar/rpn-grammar.jison
From CLI:
node rpn sample.txt
For Web:
<script src="rpn.js"></script>
<script>
console.log(rpn.parse('1 2 / 3 + 4 5 * -'))
</script>