Related articles |
---|
object oriented implementations of rec. descent parsers hnkst2+@pitt.edu (1996-10-10) |
Re: object oriented implementations of rec. descent parsers scotts@metaware.com (Scott Stanchfield) (1996-10-12) |
Re: object oriented implementations of rec. descent parsers parrt@MageLang.com (Terence Parr) (1996-10-12) |
Re: object oriented implementations of rec. descent parsers wolff@inf.fu-berlin.de (1996-10-12) |
Re: object oriented implementations of rec. descent parsers anund@rebecca.nr.no (1996-10-15) |
Re: object oriented implementations of rec. descent parsers dlmoore@ix.netcom.com (David L Moore) (1996-10-15) |
Re: object oriented implementations of rec. descent parsers Hans.Walheim@Nexus.SE (Hans T Walheim) (1996-10-16) |
From: | Terence Parr <parrt@MageLang.com> |
Newsgroups: | comp.compilers |
Date: | 12 Oct 1996 22:16:11 -0400 |
Organization: | MageLang Institute |
References: | 96-10-033 |
Keywords: | parse, OOP |
Hanhwe N Kim wrote:
> I'm trying to find source code examples that
> implement recursive descent parsers in an
> object oriented language (C++ / smalltalk).
PCCTS generates C++ parsers. Grammars like:
class CParser {
stat : ... ;
...more rules...
}
result in a CParser class with member functions for each
rule such as:
class CParser {
public void stat() {...code to parser a stat...}
...more member functions...
};
I believe this is a straightforward approach that anybody
would take. My Java version of PCCTS will do the same
thing.
> Does anyone know of any web sites, books
> I should start looking?
The PCCTS book will be out about end of November (from the printer).
Watch this group and comp.compilers.tools.pccts for a note that the
book is available.
Regards,
Terence
PS See ftp.parr-research.com/pub/pccts and/or
http://www.igs.net/~mtr/
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.