Re: How to design a symbol table?

torbenm@diku.dk (Torben Ęgidius Mogensen)
12 Oct 2004 00:56:00 -0400

          From comp.compilers

Related articles
How to design a symbol table? chris@tkdsoftware.com (2004-10-09)
Re: How to design a symbol table? torbenm@diku.dk (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? rbates@southwind.net (Rodney M. Bates) (2004-10-17)
Re: How to design a symbol table? nmm1@cus.cam.ac.uk (2004-10-21)
Re: How to design a symbol table? skaller@nospam.com.au (John Max Skaller) (2004-10-21)
| List of all articles for this month |

From: torbenm@diku.dk (Torben Ęgidius Mogensen)
Newsgroups: comp.compilers
Date: 12 Oct 2004 00:56:00 -0400
Organization: Department of Computer Science, University of Copenhagen
References: 04-10-075
Keywords: symbols
Posted-Date: 12 Oct 2004 00:56:00 EDT

<chris@tkdsoftware.com> writes:


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


Torben


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.