Re: How to parse keywords that can be used as identifiers?

Peter Brueckner <peter@bj-ig.de>
27 Aug 1996 23:48:25 -0400

          From comp.compilers

Related articles
[2 earlier articles]
Re: How to parse keywords that can be used as identifiers? kanze@lts.sel.alcatel.de (1996-08-20)
Re: How to parse keywords that can be used as identifiers? leichter@smarts.com (Jerry Leichter) (1996-08-21)
Re: How to parse keywords that can be used as identifiers? ph@anweald.exnet.co.uk (1996-08-24)
Re: How to parse keywords that can be used as identifiers? grosch@cocolab.sub.com (1996-08-24)
Re: How to parse keywords that can be used as identifiers? dlmoore@ix.netcom.com (David L Moore) (1996-08-24)
Re: How to parse keywords that can be used as identifiers? itz@rahul.net (1996-08-24)
Re: How to parse keywords that can be used as identifiers? peter@bj-ig.de (Peter Brueckner) (1996-08-27)
Re: How to parse keywords that can be used as identifiers? stefan.monnier@lia.di.epfl.ch (Stefan Monnier) (1996-08-27)
Re: How to parse keywords that can be used as identifiers? fjh@mundook.cs.mu.OZ.AU (1996-08-27)
Re: How to parse keywords that can be used as identifiers? iwm@doc.ic.ac.uk (Ian Moor) (1996-09-03)
Re: How to parse keywords that can be used as identifiers? ok@cs.rmit.edu.au (1996-09-05)
Re: How to parse keywords that can be used as identifiers? jpff@maths.bath.ac.uk (1996-09-05)
| List of all articles for this month |

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-
--


Post a followup to this message

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