Java Glossary : JavaCC

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : J words : JavaCC.

JavaCC
Formerly known as Jack. JavaCC is a parser, like YACC, except that is it written in Java and generates Java code. It started out handled by Sun, then by Metamata, now bought out by Webgain, who have gone belly up. It is now an open source project.

It is similar to PCCTS. JavaCC is a LL(k) parser, whereas YACC is a LALR(1) parser, so the grammars look quite different. The documentation is quite readable, unlike most of its competition. The parser has some parsing speedup tricks like lookahead and custom code for the tricky bits. The download includes a slew of examples but no reference manual. Check this list of tutorials. The easiest way to learn the JavaCC language is to look at the example parsers. I blew my mind when a little parser I wrote worked first time. It is much simpler than it first looks. Metamata has reworked JavaCC, cleaned up the syntax and called it Metamata Parse. ANTLR shares the same original code base but made opensource. download JavaCC free. The download includes Jjtree and a number of simple examples. Download documentation separately, thanks to WebGain, now easy to find. The download is a bit unusual, a zip containing a single self-extracting class file. When you run it, it installs the Javacc files from itself.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 2165.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/javacc.html J:\mindprod\jgloss\javacc.html