package edu.osu.cse.groenkeb.logic.test;

public interface CommandProcessor<T extends Context>
{
  public interface Command<T>
  {
    /**
     * Executes the command with the current and context and returns the result.
     * @param current
     * @return the new context after execution
     */
    T execute(T current);
  }
  
  Command<T> tryParseNextCommand() throws InvalidCommandException;
}

@@ -118,16 +118,32 @@
 ommand%3CT
+ extends Context
 %3E%0A  %7B%0A  
@@ -193,20 +193,16 @@
 current 
-and 
 context 

Fix command type bound.