passing more Tokens as const ref; cleaned up printError
removed Lexer::getInput(), added Lexer::getLine() as replacement and made Parser::printError() use it
replaced some if cascades with a switch case