From: | Peter Brueckner <peter@bj-ig.de> |
Newsgroups: | comp.compilers |
Date: | 27 Aug 1996 23:48:25 -0400 |
Organization: | Brueckner & Jarosch Erfurt |
References: | 96-08-058 |
Keywords: | parse |
Mark Thiehatten wrote:
> I am working on a parser for a language that allows keywords to
> be used as identifiers. This causes all kinds of problems.
> I am using flex and bison to build the parser.
We use an modified bison-skeleton for this job. It gets all 'WORDS'
from flex as <ident> and then looks up all follow-symbols for a
matching keyword. The performance penalty is only 5 percent because
of some optimizing. Mail me if you are interessted.
Peter
--
Peter Brueckner, Brueckner&Jarosch Ing.-GmbH Erfurt, Germany 99084 Erfurt
Andreasstrasse 37, Voice +49-361-6431811,EMail peter@bj-ig.de, -42-
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.