Blockly Postfix Algorithm
Output Readme Download Replit Sel. & Copy Full

About

Convert most math expressions to a postfix array via blockly.

To view this on TripleLog, click here.

HTML

At the top, enter an infix expression and it should be postfixed.

Blockly

You can modify the blocks to change the algorithm. You can save these changes to the blocks.js file or elsewhere by running the save() function in the console and then copying the output. Or make a better save function.

JavaScript

There is a blocks.js file that is just the saved json for the algorithm.

There is also a script.js that creates the blockly enviornment. The newInput() function generates the code and outputs the postfix array at the top.