Re: Seeking Bison equivalent

Bruce Hahne <>
Mon, 7 Mar 1994 00:44:11 GMT

          From comp.compilers

Related articles
Seeking Bison equivalent (1994-03-03)
Re: Seeking Bison equivalent (Bruce Hahne) (1994-03-07)
| List of all articles for this month |

Newsgroups: comp.compilers
From: Bruce Hahne <>
Keywords: yacc, C++
Organization: Compilers Central
Date: Mon, 7 Mar 1994 00:44:11 GMT

Robert Blackburn ( writes:

>This is the inverse of the GNU related requests I usually see. I am in
>search of a commercial or public domain equivalent to GNU's Bison or any
>other C++ compatible program roughly equivalent to YACC. Other C++
>compatible parser generators would be of interest if a suitable YACC-like
>generator can not be found.
      [ ... ]
>[There's been discussion here of the commercial yacc++. Or if you're feeling
>brave, you could try to C++-ize Berkeley Yacc. -John]

Modifying Berkeley Yacc version 1.8 so that its output code
compiles under g++ (v2.5.7) only requires changing one line
of Yacc's source code. I'm using the modified Yacc to
facilitate a compiler I'm writing in C++. Here's a diff:

            diff skeleton.old ../byacc++.dir/skeleton.c
            < " extern char *getenv();",
            > " extern char *getenv(char *name);",

This modification is, of course, quite different from creating a tool
which actually produces C++ classes as output.

Bruce Hahne
Mitsubishi Electric Computer & Information Systems Lab
Oofuna, Japan

Post a followup to this message

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