Transition diagrams depict the actions that take place when a lexical analyzer is called by the parser to get the next token.
We can use a transition diagram to keep track of information about the characters that are seen as the forward pointer scans the input. We do so by moving position to position in the diagrams as the characters are read.