CS 3723, Spring 2004, Java Program for Question 6

Consider the Java program below, which is a recursive descent parser:

Here are three separate runs (boldface = input):