Further reading
If the scanner and parser of this chapter have got you interested in compilers, I recommend that you refer to Compilers: Principles, Techniques, and Tools by A. V. Aho et al. (second edition. Addison Wesley, 2007). It is the second edition of the classic Dragon Book. The authors explain the theory and practice of compilers from scanning and parsing to advanced optimization.
If the concept of graphs has caught your interest, I recommend Introduction to Graph Theory by D. B. West (Prentice Hall, 2000), which reasons about graphs from a mathematical point of view.