command line lexer that prompts for and reads bash-like commands, and breaks them into tokens