|Writing a symbol table in Perl email@example.com (2002-03-17)|
|Re: Writing a symbol table in Perl firstname.lastname@example.org (Joachim Durchholz) (2002-03-19)|
|Re: Writing a symbol table in Perl email@example.com (2002-03-21)|
|Re: Writing a symbol table in Perl firstname.lastname@example.org (Edward Walker) (2002-03-21)|
|From:||email@example.com (Des Traynor)|
|Date:||21 Mar 2002 21:58:14 -0500|
|Posted-Date:||21 Mar 2002 21:58:14 EST|
Joachim Durchholz <firstname.lastname@example.org> wrote in message news:02-03-112...
> 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
> where # is either the nesting depth or the name of the scope that the
> symbol belongs to.
Thanks Joachim, anyone got any ideas on how to semantic check, once
you have implement the above said symbol table?
All comments/help appreciated
[Parse the program into an AST, then make passes over it checking for
whatever you want to check for. -John]
Return to the
Search the comp.compilers archives again.