public static void initFirst() { envCounter = 0; newEnvs.add(envCounter, root); top = (Env) newEnvs.get(envCounter); put("printf", new Symb(Type.method(Type.voidtype(), Type.voidtype()), null, true)); put("scanf", new Symb(Type.method(Type.voidtype(), Type.voidtype()), null, true)); System.out.println(" " + top); }
public static void next() { envCounter++; top = (Env) newEnvs.get(envCounter); System.out.println(" " + top); }
public static void initSecond() { envCounter = 0; top = (Env) newEnvs.get(envCounter); System.out.println(" " + top); }