Topic notebook / 03

Stacks & parsing

The most recently saved task is the next one to resume. That order makes stacks useful for nested expressions.

What to look for

  • Identify exactly what must be saved.
  • Push when entering a nested task.
  • Pop when returning to the outside task.

Work through a question

3 available

Where this leads

Keep following the branch when this pattern feels familiar.