Postfix Algorithm Without Parentheses
Output Readme Download Replit Sel. & Copy Full

About

This repl is a very simple postfix algorithm. Only basic math operations (addition, subtraction, multiplication, and division) without any parentheses can be postfixed. These restrictions make the algorithm a bit simpler to understand.

To view this on TripleLog, click here.

HTML

This page outputs a postfixed array as well as step-by-step logs. It is not super pretty, but you can change that if you wish. Enter a math expression in the input element (keeping it simple) and see the postfixed output.

JavaScript

Edit the script.js file to change the algorithm. You can try to add more operations, parentheses, or just try to make the code better/faster.