ttowncompiled / compilers

A series of projects for my senior level compilers class.
0 stars 0 forks source link

Lexical Analyzer #6

Closed ttowncompiled closed 8 years ago

ttowncompiled commented 8 years ago

The lexical analyzer should tokenize the source file.

Tokens are of the form: (Type, Lexeme, Attr).

There should be an EOF token.

ttowncompiled commented 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.

ttowncompiled commented 8 years ago

The Attr for an identifier should be the address of the its respective entry in the symbol table.