Here is some source code for the programs and exercises discussed in this chapter.
Section
Program
2.1.2
Skeleton
Token and TokenStream Classes (Figure 2.5 and Exercise 2.3)
2.3.3
Skeleton
Recursive Descent Parser for Jay (Figure 2.17 and Exercise 2.13)