What is the difference between ANTLR and JavaCC
1 posts in topic
Flat View  Flat View

Posted By:   Allan_McGregor
Posted On:   Tuesday, March 20, 2001 02:09 AM

I have been looking at both ANTLR and JavaCC but I can't find any main differences between the two tools, one being the ANTLR can parse C++ code. Are there any other differences


Re: What is the difference between ANTLR and JavaCC

Posted By:   Terence_Parr  
Posted On:   Thursday, March 22, 2001 06:10 PM

You mean that ANTLR can generate C++ as well as Java, right? Yep, that's one difference. The tools are pretty much in the same spirit, but with different styles. JavaCC grammars look very much like Java code while ANTLR grammars look more like traditional grammars. Both tools allow lots of lookahead and predicates (code that evaluates at runtime to alter the parse).
About | Sitemap | Contact