If you can check it represents $5+67$
Now Scan them left to right ..... and when $D -> id $ then take action :: {print num.value} means print 5 ..... same for$D -> 6$ and $D ->7.$
And when $B -> DB $ occurs then take action :: {print '+'}
Then output will be $5+67++$