/** Driver.java for lab 3 * We want to create top-down parsers for this grammar: * prog --> stmt | stmt prog * stmt --> id = num ; | expr ; * expr --> id | num | expr expr op * op --> + | - | * | / * where the tokens are: id num ";" "=" "+" "-" "*" "/" */ import java.io.*; public class Driver { public static void main(String [] args) throws IOException { Program p = new Program(); p.scan(); p.bottomUpParse(); } }