This directory contains a Syntaxic/Lexical parser generator and a C/C++ 
prettyprinter. Those programs are freeware in the GNU acceptance 
( see the copying file in the pub/cplusplu directory).

INSTALLATION
------------

The makefiles are set for Linux. Changing the active flags in makefile.inc and
makefile.der (comment out the correct lines), it has also been tested on SUN or 
Unix Interactive (with g++ 2.7.2).

1) Take the makefile.inc and makefile.der file and do the following :

   In variable META_DIR :    Put the directory where you installed erltools
                             like "/home/my_home/erltools".

   In variable INSTALL_DIR : Put the directory where the executable are
                             to be installed. The directory must exist and
                             must be in your PATH variable.

2) Do a make -f makefile.uni all install
   (for a basic C++ prettyprinter installation you can use the command
     make -f makefile.uni prettyprinter)

3) In the installation directory modify the file c.set, so that it 
   reflects your prettyprinting preference (the flags in the middle
   of the file)

4) Verify that the installation directory is in your PATH


USAGE
-----------

1) Under shell

   Enter cpb 'name' where name is the name of the program to be
   prettyprinted

2) Under emacs

   You have the possibility to prettyprint a function or a whole
   file taking the macros given in the .emacs found in the
   cplusplu directory


DOS
---

Under dos the files may be compiled with djgpp v2. Do a make -f makefile.dos.
Use cpb.bat to prettyprint a program, after modifying the path in 
cpb.bat for cplus.

LEXICAL/SYNTAXIC PARSER GENERATOR
---------------------------------

All documentation is to be found in doc directory as postscript files. A README
describe the documentations available there.



