     console.log "[TERMINAL] Parse '#{commandLine}'"
     # multi-word analysis
     # trim whitespaces and separate command from arguments
-    # IMPROVE: Python-like sequence getter?
-    [command, commandArgs...] = commandLine.trim().split ' '
-    if !(command of CommandStrings)
+    console.log(commandLine)
+    [command, commandArgs...] = commandLine.trim().split(/\s+/)
+    if command == ""
+      return new SyntaxTree [CommandToken.VOID, []]
+    if !(command of CommandTokenFromString)
       throw SyntaxError "#{command} is not a known command."
-    new SyntaxTree [CommandStrings[command], commandArgs]
+    new SyntaxTree [CommandTokenFromString[command], commandArgs]
 
   # Execute command with arguments provided in syntax tree
   #

  execute: (args, terminal) =>
    throw "#{this} has not implemented the 'execute' method."


class @HelpCommand extends Command



# IMPROVE: use strings instead of "enum" tokens and just use a dictionary to match
# each string to a command object in CommandInterpreter constructor
CommandToken =
  VOID: "VOID"
  HELP: "HELP"
  LS: "LS"
  CONNECT: "CONNECT"

CommandTokenFromString =
  "void": CommandToken.VOID
  "help": CommandToken.HELP
  "ls": CommandToken.LS
  "dir": CommandToken.LS
  "connect": CommandToken.CONNECT
