Re: Generalized parser without generation

Peter Restall <pete@restall.net>
4 Feb 2004 21:45:41 -0500

          From comp.compilers

Related articles
Generalized parser without generation moughanj@tcd.ie (2004-02-01)
Re: Generalized parser without generation joachim.durchholz@web.de (Joachim Durchholz) (2004-02-04)
Re: Generalized parser without generation derkgwen@HotPOP.com (Derk Gwen) (2004-02-04)
Re: Generalized parser without generation jesjones@mindspring.com (Jesse Jones) (2004-02-04)
Re: Generalized parser without generation pete@restall.net (Peter Restall) (2004-02-04)
Re: Generalized parser without generation cfc@shell01.TheWorld.com (Chris F Clark) (2004-02-04)
Re: Generalized parser without generation vidar@hokstad.name (2004-02-04)
Re: Generalized parser without generation bear@sonic.net (Ray Dillinger) (2004-02-08)
| List of all articles for this month |
From: Peter Restall <pete@restall.net>
Newsgroups: comp.compilers
Date: 4 Feb 2004 21:45:41 -0500
Organization: Compilers Central
References: 04-02-031
Keywords: parse
Posted-Date: 04 Feb 2004 21:45:41 EST

> A friend of mine has been given a final year project for which his
> supervisor wants the above; that is, a program which can read in a
> description of a grammar then parse a file using it directly. Users
> must be able to add new grammars at any time without compiling.


Don't know whether it's what you're after, but check out the GOLD
parser (http://www.devincook.com/goldparser/). The grammars need to
be 'compiled' into tables that can then be loaded and used by the
parser, but they are stored as external files. Unfortunately the
source isn't available, but the file-format specs are. I'm working on
something similar myself, but I've only managed the lexer so far...I
guess I'm just lazy and easily distracted :)


Regards,


Pete =:-)




--
// ------------------------------- Peter Restall -
const char *mail = "pete@restall.net";
const char *web = "http://asbestos.restall.net/";


Post a followup to this message

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