Welcome to Bison /Java homepage
Cliquez ici pour la version française
Introduction :
Bison /Java is a project that I began to work on a few days ago.
The purpose is to write a patch for GNU Bison in order to make it able to
generate Java code instead of C code.
I don't pretend to be the father of the project which is based on the idea of
Bob Jamison
BYacc /Java's author.
BYacc /Java is a BYacc extension which makes it generate Java code.
To do so, you can use the command line option -J.
I decided to write Bison /Java to improve the functionnalities of BYacc /Java.
BYacc is an old software which has some bugs (and I met them). All the more, it is
not maintained since Bison became a standard in the world of free software.
The basis :
Bison /Java uses the version 1.28 source code of GNU Bison. As well as BYacc /Java,
the idea is to make an extension of Bison which makes it possible, using a command
line option to generate Java code.
For a complete documentation on Bison, you should look at the man pages on the subject
(see the links section)
My purpose here is to concentrate on the features of Bison /Java.
Use
To select Java mode, you will have to use the command line option -j.
By default, the generated parser will be called Parser.java and the parser will
be embedded in a class called Parser.
In the Java programming langage, the filename is also the name of the class
being implemented. To change that, vous can insert, in the declaration part of
your specfication file, the declaration :
%class <class_name>
You can also specify the name of the Java package containing the class by using
the declaration :
%package <package_name>
Features
As I already said it before, this project is very young and I didn't much work
on it. For now, I only tested Bison /Java with the option -y (Yacc compatibility flag).
I won't guarantee that it will work with other options.
I would advise simple users to call Bison /Java with the following command line :
bison -y -j <grammar_file>
I thank the other people to send me their modifications, bug reports and advice.
Download
Sorry, I haven't already built a CVS tree so the file archive is only available
as is in a tarball. I hope I will soon understand how sourceforge works
;-)
Links
http://www.gnu.org/ (The GNU project 's official homepage for those who don't know it yet)
http://www.gnu.org/manual/bison-1.25/ (Manual for GNU Bison 1.25)
Contact me
My e-mail address is : nbertolo@chez.com
My personnal web page is : http://www.chez.com/nbertolo
You probably noticed my english is not very good so please don't complain but help
me instead to translate it in a better way.
Hosted by