Re: Handling Scope in a C Compiler

"VBDis" <>
25 Oct 2002 00:10:34 -0400

          From comp.compilers

Related articles
Handling Scope in a C Compiler (Bart T.) (2002-10-18)
Re: Handling Scope in a C Compiler (Tina Falkenberg) (2002-10-20)
Re: Handling Scope in a C Compiler (VBDis) (2002-10-25)
| List of all articles for this month |

From: "VBDis" <>
Newsgroups: comp.compilers
Date: 25 Oct 2002 00:10:34 -0400
Organization: AOL Bertelsmann Online GmbH & Co. KG
References: 02-10-075
Keywords: symbols, C
Posted-Date: 25 Oct 2002 00:10:34 EDT

  "Bart T." <> schreibt:
>Holub ("Compiler Design in C") shows an interesting way of doing it
>with the symbol manager by creating a new scope level each time a
>block is entered and deleting all variables of that scope when the
>block is done.

If the variables are of "persistent" interest, then the information
must be stored in a persistent way (scope structure...). The lookup
table in the symbol manager then contains references to the persistent
symbol definitions, so that removing these references does not destroy
the information about the symbols.


Post a followup to this message

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