Re: Writing a symbol table in Perl

Joachim Durchholz <joachim_d@gmx.de>
19 Mar 2002 16:13:46 -0500

          From comp.compilers

Related articles
Writing a symbol table in Perl destraynor@yahoo.ie (2002-03-17)
Re: Writing a symbol table in Perl joachim_d@gmx.de (Joachim Durchholz) (2002-03-19)
Re: Writing a symbol table in Perl destraynor@yahoo.ie (2002-03-21)
Re: Writing a symbol table in Perl ed_walker@sympatico.ca (Edward Walker) (2002-03-21)
| List of all articles for this month |

From: Joachim Durchholz <joachim_d@gmx.de>
Newsgroups: comp.compilers
Date: 19 Mar 2002 16:13:46 -0500
Organization: Compilers Central
References: 02-03-088
Keywords: symbols
Posted-Date: 19 Mar 2002 16:13:46 EST

Des Traynor wrote:
> [Doing symbol tables in perl is really easy. A straightforward way is to
> make the symbol table a perl table indexed by symbol name, and the values
> pointers to either tables or arrays with the symbol's info. -John]


... and if you need a scoped symbol table, use a key that says
      symbol_name.#
where # is either the nesting depth or the name of the scope that the
symbol belongs to.


Regards,
Joachim


Post a followup to this message

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