package lispy;

import java.util.NoSuchElementException;
import java.util.Scanner;

public class Repl {

	public static void main(String[] args) {
		System.out.println("Welcome to the Lispy REPL");
		System.out.println("Enter '(quit)' or Ctrl-D to exit.");
		String line = null;
		Environment env = Environment.getGlobalEnvironment();
		while (true) {
			Parser parser = new Parser();
			try {
				Scanner sc = new Scanner(System.in);
				System.out.print("lispy> ");
				line = sc.nextLine();
				Object result = Eval.eval(parser.parse(line), env);
				System.out.println(result);
			} catch (NoSuchElementException nse) {
				// Thrown when the Scanner can't read a line after a Ctrl-D
				System.out.println("\n");
				System.exit(0);
			} catch (Exception ex) {
				System.out.println(String.format("Error evaluating expression '%s': %s", line, ex.getMessage()));
			}
		}
	}
}

@@ -543,16 +543,61 @@
 , env);%0A
+%09%09%09%09if (!(result instanceof Environment)) %7B%0A%09
 %09%09%09%09Syst
@@ -620,16 +620,22 @@
 esult);%0A
+%09%09%09%09%7D%0A
 %09%09%09%7D cat

The REPL should print environments