import hw2.*; import java_cup.runtime.*; import Common.Listing; /** * Answer to question 1: * Answer to question 2: * Answer to question 4: */ public class RecursiveDescent { public RecursiveDescent() { Scanner.init(); Symbol t = Scanner.peek(); while (t.sym != sym.EOF) { Listing.get().EmitMessage("Next token will be " + t); Scanner.advance(); t = Scanner.peek(); } } void oops(String s) { System.err.println("Error: " + s); System.exit(-1); } }