A UML Activity Diagram is a diagram displaying the steps involved to complete an Activity either sequentially or concurrently.

Example

  |Taking input|
start
:Input numbers and tokens;
if ("Is a number")
  |Is a number|
  :Parse integer;
  :Add to stack;
else 
  |Is an operator|
  :Pop two numbers from stack;
  :Apply the operator;
endif
stop

This example shows a basic calculator token parser.