|Symbol tables and scopes DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-01-28)|
|Re: Symbol tables and scopes email@example.com (David R Tribble) (2006-02-02)|
|Re: Symbol tables and scopes cfc@shell01.TheWorld.com (Chris F Clark) (2006-02-03)|
|Re: Symbol tables and scopes firstname.lastname@example.org (Gabriel Dos Reis) (2006-02-06)|
|RE:Symbol tables and scopes email@example.com (Jatin Bhateja) (2006-02-11)|
|From:||"Jatin Bhateja" <firstname.lastname@example.org>|
|Date:||11 Feb 2006 13:39:29 -0500|
|References:||06-01-101 06-02-015 06-02-021 06-02-044|
I think before considering any design you should be clear that the
language for which you are designing such symbol table design is
static scoped or dynamic scoped language.
As in case of dynamic scope language what ever you want i.e. symbol
should be searched form innermost function to the outer most function
in function nesting depth is done at run time using runtime stack and
there is different approach to tackle it i.e. either using the
displays (array of static pointers of activation record) or by
following the static link in each activation record to search the
occurrence of variable in the activation above it in run time stack.
Thanks and Best Regards,
Conexant Systems Inc
FC-2&4, Sector 16A,
Tel: 91 120 2512833, Extn @2408
Return to the
Search the comp.compilers archives again.