Re: C++ Class wrapper for yacc

Scott Stanchfield <scooter@mccabe.com>
20 Jul 1996 21:29:15 -0400

          From comp.compilers

Related articles
Down to three tools... inpact5@clr34el.der.edf.fr (INPACT5 inpact5) (1996-07-05)
Re: Down to three tools... noble@utmc.utc.com (Troy Noble) (1996-07-13)
C++ Class wrapper for yacc vgore@ix.netcom.com (1996-07-18)
Re: C++ Class wrapper for yacc scooter@mccabe.com (Scott Stanchfield) (1996-07-20)
Re: C++ Class wrapper for yacc dancho@enuxsa.eas.asu.edu (1996-07-20)
| List of all articles for this month |

From: Scott Stanchfield <scooter@mccabe.com>
Newsgroups: comp.compilers,comp.compilers.tools.pccts
Date: 20 Jul 1996 21:29:15 -0400
Organization: McCabe & Associates
References: 96-07-048 96-07-088 96-07-118
Keywords: parse, C++

First, take a look at PCCTS. It's not yacc (but that's a good thing)
and it has a really good C++ interface.


Next, if you insist on yacc (or are forced to use it you poor soul):


(From
The Language List - Version 2.4, January 23, 1995


Collected information on about 2350 computer languages, past and
present.


Available online as:
                 http://cui_www.unige.ch/langlist
ftp://wuarchive.wustl.edu/doc/misc/lang-list.txt


Maintained by:


Bill Kinnersley
Computer Science Department
University of Kansas
Lawrence, KS 66045


billk@cs.ukans.edu


-- thanks to Bill!)




yacc - Yet Another Compiler Compiler. Language used by the Yacc LALR
parser generator. "YACC - Yet Another Compiler Compiler", S.C. Johnson,
CS
TR 32, Bell Labs (Jul 1975).
Implementations:
  ayacc - UC Irvine. written in Ada, produces Ada output
    ftp://liege.ics.uci.edu/pub/irus/aflex-ayacc_1.2a.tar.Z
  Bison - from GNU
    ftp://prep.ai.mit.edu/pub/gnu/bison-1.21.tar.Z
  Bison++ - produces C++ output.
    ftp://psuvax1.cs.psu.edu/pub/src/gnu/bison++-1.04.tar.Z
  perl-byacc - produces perl output
    ftp://ftp.sterling.com/local/perl-byacc1.8.2.tar.Z
  SASL-yacc - "Yacc in SASL - An Exercise in Functional Programming",
Simon
Peyton-Jones, Software Prac & Exp 15:807-820 (1985). Mentions also a
BCPL
implementation.
  yacc++ - 1990. An object-oriented rewrite of yacc, supports regular
exp-
ressions, produces an LR(1) parser. "YACC Meets C++", S.C. Johnson,
USENIX
Spring '88 Conf. Chris Clark, Compiler Resources Inc, Barbara Zino
<bz%compres.UUCP@primerd.cv.com> (508) 435-5016.
  MLYACC - Implementation and output in SML/NJ
    ftp://research.att.com/dist/ml/75.tools.tar.Z






Good luck!
Scott




Vipul Gore wrote:
>
> Hi,
>
> Is there a C++ Class wrapper for yacc like flex++ (FlexLexer.h)?


--
Scott Stanchfield McCabe & Associates -- Columbia, Maryland
--


Post a followup to this message

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