Changed the parser to use a scanner. It is now ready to get all needed
commands.