Symbol-Table and Parse-trees

blizzar@hem1.passagen.se (Peter Palotas)
12 Aug 1999 02:57:59 -0400

          From comp.compilers

Related articles
Symbol-Table and Parse-trees blizzar@hem1.passagen.se (1999-08-12)
Re: Symbol-Table and Parse-trees rkrayhawk@aol.com (1999-08-13)
Re: Symbol-Table and Parse-trees delta-t@t-online.de (Leif Leonhardy) (1999-08-15)
Re: Symbol-Table and Parse-trees cgbatema@undergrad.math.uwaterloo.ca (1999-08-15)
| List of all articles for this month |

From: blizzar@hem1.passagen.se (Peter Palotas)
Newsgroups: comp.compilers
Date: 12 Aug 1999 02:57:59 -0400
Organization: Tripnet AB
Keywords: C, practice

I'm wondering what the best way is to handle declarations in a C
compiler? During the initial parse (sytatic analysis), should one put
the declarations in the symbol-table immediately, and not in the parse
tree, or should one wait and put them in the sym-tbl only during
semantic analysis?


Also, how should one cope with initialazion, (ex. int i = 3 * 2 + k;)
and scopes?


Some thoughts on this would be great!


Sincerely, Peter Palotas, blizzar@hem1.passagen.se


Post a followup to this message

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