Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

byaccj vs cup vs javacc

126 views
Skip to first unread message

Jimmy zhang

unread,
Aug 21, 2005, 12:22:56 AM8/21/05
to
Hi, I was in the process of selecting a compiler compiler
for my project. So far there are three options for Java
CUP, byaccj and javacc, can someone comment on the
pros and cons of each options? I am interested in the
maturity, adoption and ease of use, among other aspects.
Cheers,
Jimmy

USENET News

unread,
Aug 24, 2005, 6:18:34 PM8/24/05
to
I needed to compare java parser generators and found JavaCUP to be most
suitable in my project which involved parsing C language. It scored good on
both parameters that you are looking for.
I could input the ANSI grammer with minor modifications using JavaCUP.

Unfortunately, I don't have a detailed comparison report now.

Regards,
Naveen Sharma.
________________________________

Scott Nicol

unread,
Aug 24, 2005, 6:23:20 PM8/24/05
to comp...@iecc.com

You forgot ANTLR.

I'll only comment on byacc/j, since that is what I use. It is Berkeley
YACC, but it generates Java instead of C. I don't know what else to say
other than it is YACC, the parser skeleton is well-written, and it
works. If you are already using and happy with some variant of YACC,
going with yacc/j is a no-brainer.

Support is rather spotty, although a new version was released last month
fixing a few issues. There really isn't much development going on with
any YACC, so byacc/j is no different in this regard.

--
Scott Nicol
sni...@apk.net

0 new messages