This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
Vanessa Freudenberg
codefrau.bsky.social
did:plc:4rblvl6kpkrlmnctjzgoq7ar
That was fun!
function evaluatePostfix(s) {
let a = []
for (let c of s)
a.push(isNaN(+c) ? eval(a.splice(-2).join(c)) : c);
return a.pop()
}
My CodePen does the infix conversion first and evals at the end:
https://codepen.io/codefrau/pen/jENoXYe?editors=0010
2025-02-04T19:49:32.860Z