- sum<-0, multiplier<-1, tsum<-0. Start from right.
- No tokens left? sum<-sum+(tsum * multiplier). Exit and return sum.
- Is it a direct or a ten prefix? Then go to 4.
- We are at a hundreds prefix. sum<-sum+(tsum * multiplier), tsum<-0, multiplier<-prefix value. Go left. Go to 2.
- We are at a tens or a direct prefix. tsum<-tsum+prefix value. Go left. Go to 2.