package com.hundredwordsgof.facade;

import java.util.List;

/**
 * 
 * Compiler has subclasses like Tokenizer, Parser, Generator, etc.
 * Client which use compiler do not call subclasses in order to compile.
 * Compiler class represents a facade.
 * Facade hides low-level functionality from client.
 *
 */
public class Compiler {

	public static int compile(String input) throws Exception{
		
		Parser parser = new Parser();
		List<String> tokens = Tokenizer.tokenize(input);	
		Node expression = parser.parse(tokens);		
		int result = Generator.generate(expression);
		
		return result;
	}
}

@@ -156,16 +156,18 @@
 ich use 
+a 
 compiler
@@ -178,12 +178,17 @@
 not 
-call
+deal with
  sub

Update Compiler.java