jb -- Parser and Lexer Generation for Java
Last Updated: 9 October 1997
Latest Version: jb-5.4
[ Description
| Retrieving
| Change Log
| Mailing List
| Acknowledgments ]
The jb system takes
parsers generated using the Gnu Bison parser generator system
and translates them to execute in Java (tm)
Jb takes the C file output by Bison and scans it to extract
the parse tables and constants. Jb then scans
various template files specified by the user and inserts the
extracted information at specified points in the templates.
In addition to generating parsers,
jb provides two methods of generating corresponding lexers.
- Flex -- the jb system (starting with version 3.0) can also
take lexers generated using the Gnu flex generator and
translate them to execute in Java; this is accomplished with a
program called jf.
- yylex.generic -- A generic ad-hoc lexer that can be modified
to produce lexers for typical programming languages.
FTP
Various versions of jb are available via anonymous ftp.
The following references are symbolic links to the latest versions.
- Source:
- ftp://ftp.cs.colorado.edu/pub/cs/distribs/arcadia/jb.tar
- Information file:
- ftp://ftp.cs.colorado.edu/pub/cs/distribs/arcadia/jb.txt
SRM
Various versions of jb can also be obtained from
SRM -- the Serl Software Release Manager
at
http://www.cs.colorado.edu/cgi-bin/cgiwrap/~serl/getmainpage.tcl?GROUP=serl
Dependencies:
- Bison --
Jb has been tested with bison version 1.24 and 1.25.
Other versions probably will work as well as long as the
bison output parser is not wildly changed, but jb will issue
a warning when using other versions.
- Flex -- Jb has been tested with flex version 2.5.2 and 2.5.3.
- Java -- As of Jb version 5, Jb produces code targeted at
Java version 1.1 (including 1.1.1 and 1.1.2).
- Starwave Regular Expression Package -- I use this package (version 1.10)
to provide regular expression support.
This package was produced by Jonathan Payne (jpayne@starwave.com).
If you are interested in receiving occasional mailings
about this system, please send your preferred email address
to the contact address below and mentioning the name of this system.
This work is sponsored by the Air Force Material Command, Rome
Laboratory, and the Defense Advanced Research Projects Agency under Contract
Number F30602-94-C-0253.
Dennis Heimbigner
<dennis@cs.colorado.edu>
SERL
<serl@cs.colorado.edu>
[ Research |
People |
Software |
Papers ]