|Writing a symbol table in Perl firstname.lastname@example.org (2002-03-17)|
|Re: Writing a symbol table in Perl email@example.com (Joachim Durchholz) (2002-03-19)|
|Re: Writing a symbol table in Perl firstname.lastname@example.org (2002-03-21)|
|Re: Writing a symbol table in Perl email@example.com (Edward Walker) (2002-03-21)|
|From:||"Edward Walker" <firstname.lastname@example.org>|
|Date:||21 Mar 2002 22:00:53 -0500|
|Posted-Date:||21 Mar 2002 22:00:53 EST|
I did something awhilst ago which was a Fortran semantic checker
written in Perl. The code is 7 years old, so the usual warning apply.
But it basically did
a, Inter procedural dataflow analysis
b. Uninitialised variable usage check
c. Common block type check
d. Subroutine argument check
It does scope nesting exactly as Joachim mentions.
You can get the full source at
Hope this helps.
"Joachim Durchholz" <email@example.com> wrote in message
> 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.
Return to the
Search the comp.compilers archives again.