Closed ttowncompiled closed 8 years ago
The Lexical Analyzer should also produce a symbol table. The symbol table contains all identifiers used in the source file. Each identifier should only appear once in the symbol table.
The Attr for an identifier should be the address of the its respective entry in the symbol table.
The lexical analyzer should tokenize the source file.
Tokens are of the form: (Type, Lexeme, Attr).
There should be an EOF token.