Re: Handling Scope in a C Compiler

"VBDis" <vbdis@aol.com>
25 Oct 2002 00:10:34 -0400

          From comp.compilers

Related articles
Handling Scope in a C Compiler bart@dynarec.com (Bart T.) (2002-10-18)
Re: Handling Scope in a C Compiler tina.falkenberg@worldnet.att.net (Tina Falkenberg) (2002-10-20)
Re: Handling Scope in a C Compiler vbdis@aol.com (VBDis) (2002-10-25)
| List of all articles for this month |
From: "VBDis" <vbdis@aol.com>
Newsgroups: comp.compilers
Date: 25 Oct 2002 00:10:34 -0400
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
References: 02-10-075
Keywords: symbols, C
Posted-Date: 25 Oct 2002 00:10:34 EDT

  "Bart T." <bart@dynarec.com> 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.


DoDi


Post a followup to this message

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