Loading page…
A payments app must read a fee formula typed as text. Text with nesting is a stack job. The lecture reads four shapes with a stack: nested brackets with a depth counter, file paths, repeat codes with a note for each bracket, and expressions with precedence, left to right order, division toward zero, brackets that save state and a unary minus. It also covers the cost, when to use a real parser, and the classic mistakes.
A payments app lets a merchant type a fee formula.