Regular Calculator + RPN Visualizer

RPN Output
Main Stack (top → bottom)
[]
Evaluation Steps

    How I built this

    • I used a normal expression parser flow: tokenize infix input, add implicit multiplication, convert infix to RPN, then evaluate RPN.
    • The conversion uses the Shunting Yard algorithm, so order of operations and parentheses work correctly.
    • Every RPN token updates an evaluation stack, and each stack snapshot is shown in the “Evaluation Steps” section.
    • Final results are pushed into a persistent “Main Stack” so you can track multiple calculations.

    What it uses

    • HTML: calculator structure (input, keypad, output panels)
    • CSS: card layout, responsive grid, and polished visual styling
    • Vanilla JavaScript: parsing, RPN conversion, stack evaluation, and UI updates
    • No external libraries required, so it runs directly on your deployed static Jekyll site

    Extra notes

    • You can still keep your Java version in java/RpnCalculator.java as the console implementation.
    • This page is the web version designed to run on deployment.