home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,025 of 2,753   
   Robert A Duff to Robert A Duff   
   Re: Maintaining scope while parsing C wi   
   26 Apr 11 14:08:38   
   
   From: bobduff@shell01.TheWorld.com   
      
   Robert A Duff  writes:   
      
   > [The point of the generic symbol table stuff is that you have to   
    remember the names somehow, and that seems less awful than doing a   
   > strdup() for each name and hanging the strings off the AST. -John]   
      
   Oh, yeah, sure -- I didn't understand what you meant.   
      
   You want a table of identifiers, so multiple occurrences are just an   
   index into that table or whatever.  But no particular semantic   
   information attached to those identifiers.   
      
   I once wrote a compiler-like tool that represented identifiers   
   as an index into the source code.  But I later decided that was   
   a dumb idea.   
      
   - Bob   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca