mooigraph 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
..
vms 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
COPYING 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
ChangeLog 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
LR0.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
Makefile 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
README 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
README.AMIGA 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
REFERENCES 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
allocate.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
bison++ 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
bison++.hairy.cc 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
bison++.simple.cc 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
closure.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
conflicts.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
derives.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
files.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
files.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
getargs.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
getopt.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
gram.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
gram.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
lalr.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
lex.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
lex.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
machine.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
main.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
new.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
nullable.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
output.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
print.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
reader.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
reduce.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
state.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
symtab.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
symtab.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
types.h 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
version.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
vmsgetargs.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce
warshall.c 3ddfecfb34 added a re-compilation of GNU Bison 1 parser generator 3 yıl önce

README

Bison parser generator for C++

This directory contains a version of the GNU Bison parser generator
modified by Larry Augustin to work with C++. It has been tested
with GNU g++ 1.37.1.

The major difference between this program and Bison is that this
program generates a C++ class declaration for the parser.
Documentation on how to use this class is nonexistent. The easiest
thing to do is run a simple YACC file through bison++ and look at the
.tab.h and .tab.c files generated. The .tab.h file contains a C++
class declaration for the parser. The yylex() routine is a member
function in this class. Somewhere you will have to write this
function. A useful contribution to the C++ community would be a
version of flex (flex++) to go with bison++.

The advantage of this approach is that it allows you to have multiple
instances of a parser, and also to have different parsers in the same
application without worrying about name conflicts between all the
global names (yylex, yylval, etc.) that YACC usually defines. All
those names still exist in bison++, except that they are now defined
with the scope of the parser class declaration.

Larry M. Augustin ERL 414
lma@sierra.stanford.edu Computer Systems Lab
lma@dayton.stanford.edu Stanford University
(415) 723-9285 Stanford, CA 94305

------------------------------------------------------------------------

GNU Bison README:

This directory contains the Bison parser generator.

When installing Bison on Sequent (or Pyramid?) systems, you must
be in the Berkeley universe.

On systems that do not have a working `alloca' function, you will
have to get a working `alloca' (perhaps from GNU Emacs) and edit the
Makefile so that it will be used.

On system V, you will need to define the macro USG while compiling.

Send bug reports to bug-gnu-utils@prep.ai.mit.edu.
Please include the date and author of the last entry in ChangeLog
in each bug report; this serves as a version number for Bison.