Basic framework of command parsing