Input: Source program with one or more space/newline after each lexeme. Input ends when 'eof' is given after a newline. Output: List of lexemes with their type.
Input: Source program with or without space after each lexeme. There can be comments in input. Input needs to be a valid program. Input ends when 'eof' is given after a newline. Output: List of Lexemes with their token name and attribute value and symbol table. C++11 required to compile the program