Make a separate function that reads the code (then it is easier to read from a file and not only from console)
Make a separate function that outputes the tokens (then it is easier to write the output to a separate file -> I presume that the parser should be fed a file with all the tokens of the program)