|How to design a symbol table? email@example.com (2004-10-09)|
|Re: How to design a symbol table? firstname.lastname@example.org (2004-10-12)|
|Re: How to design a symbol table? Jeffrey.Kenton@comcast.net (Jeff Kenton) (2004-10-12)|
|Re: How to design a symbol table? email@example.com (Rodney M. Bates) (2004-10-17)|
|Re: How to design a symbol table? firstname.lastname@example.org (2004-10-21)|
|Re: How to design a symbol table? email@example.com (John Max Skaller) (2004-10-21)|
|From:||firstname.lastname@example.org (Torben Ęgidius Mogensen)|
|Date:||12 Oct 2004 00:56:00 -0400|
|Organization:||Department of Computer Science, University of Copenhagen|
|Posted-Date:||12 Oct 2004 00:56:00 EDT|
> What constructing a symbol table entry, what information is relevant
> to keep in the symbol table for that entry versus storing in the
> abstract syntax tree where the symbol is defined/declared?
If you need the information when you use the name (as opposed to only
at the declaration of it), it should be in the symbol table. So,
start with deciding what you need to typecehck and generate code for
the use of a name, and you will know what you need to put in the
symbol table when a name is declared.
Return to the
Search the comp.compilers archives again.