Related articles |
---|
Seeking Bison equivalent Robert.Blackburn@probe.ece.cmu.edu (1994-03-03) |
Re: Seeking Bison equivalent bruce@jise.isl.melco.co.jp (Bruce Hahne) (1994-03-07) |
Newsgroups: | comp.compilers |
From: | Bruce Hahne <bruce@jise.isl.melco.co.jp> |
Keywords: | yacc, C++ |
Organization: | Compilers Central |
Date: | Mon, 7 Mar 1994 00:44:11 GMT |
Robert Blackburn (Robert.Blackburn@probe.ece.cmu.edu) 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
80c80
< " 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
bruce@jise.isl.melco.co.jp
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.