When parsing nodes, return the deepest node we went into

This commit is contained in:
Nathan Adams
2014-09-22 15:20:57 +02:00
parent 8d164e4b66
commit 397ab17e64
5 changed files with 28 additions and 17 deletions
@@ -16,5 +16,5 @@ public abstract class CommandNode {
children.add(node);
}
public abstract void parse(String command) throws IllegalCommandArgumentException;
public abstract CommandNode parse(String command) throws IllegalCommandArgumentException;
}