Groups | Search | Server Info | Login | Register
Groups > comp.compilers > #106
| From | Robert A Duff <bobduff@shell01.TheWorld.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Maintaining scope while parsing C with a YACC grammar |
| Date | 2011-04-26 14:08 -0400 |
| Organization | The World Public Access UNIX, Brookline, MA |
| Message-ID | <11-04-039@comp.compilers> (permalink) |
| References | <11-04-036@comp.compilers> <11-04-038@comp.compilers> |
Robert A Duff <bobduff@shell01.TheWorld.com> 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
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Maintaining scope while parsing C with a YACC grammar eliben <eliben@gmail.com> - 2011-04-25 05:14 -0700
Re: Maintaining scope while parsing C with a YACC grammar Robert A Duff <bobduff@shell01.TheWorld.com> - 2011-04-26 12:22 -0400
Re: Maintaining scope while parsing C with a YACC grammar Robert A Duff <bobduff@shell01.TheWorld.com> - 2011-04-26 14:08 -0400
Re: Maintaining scope while parsing C with a YACC grammar eliben <eliben@gmail.com> - 2011-04-28 23:20 -0700
Re: Maintaining scope while parsing C with a YACC grammar Robert A Duff <bobduff@shell01.TheWorld.com> - 2011-05-02 20:19 -0400
Re: Maintaining scope while parsing C with a YACC grammar "Ira Baxter" <idbaxter@semdesigns.com> - 2011-05-13 17:46 -0500
Maintaining scope while parsing C with a Yacc grammar Chris F Clark <cfc@shell01.TheWorld.com> - 2011-06-12 20:43 -0400
Re: Maintaining scope while parsing C with a YACC grammar torbenm@diku.dk (Torben Ægidius Mogensen) - 2011-05-03 09:51 +0200
Re: Maintaining scope while parsing C with a YACC grammar Paul B Mann <paul@paulbmann.com> - 2011-05-06 10:43 -0700
csiph-web