What's JavaCC's ADVANTAGE versus ANTLR [closed]
Asked Answered
G

3

6

Too many people have told me about the disadvantages, but what is its advantage if any?

Giulietta answered 21/11, 2009 at 13:0 Comment(0)
D
8

JavaCC doesn't require its own runtime JAR (the code it generates runs on its own), whereas ANTLR does.

Dualpurpose answered 21/11, 2009 at 13:7 Comment(2)
Wait. ANTLR generates Java, but that Java won't run on the same runtime as an existing Java application? I'm a bit confused. Does JavaCC let you directly execute its parsed structure rather than needing to go through compiling and dynamic class loading?Moneybags
@ebyrob: The code generated by ANTLR requires the ANTLR JAR to be on the classpath when that code is executed, whereas the JavaCC-generated code will run on its own.Dualpurpose
A
2

JavaCC is incredibly easy to learn if you already know Java. The syntax is quite similar to standard Java syntax, and the differences are intuitive.

Avarice answered 30/1, 2010 at 7:51 Comment(1)
+1 This matches my experience with JavaCC a few years ago.Moneybags
C
2

JavaCC can generate C++ as of last year and Sreeni (the maintainer) is improving the system.

http://java.net/projects/javacc/lists/users/archive/2011-02/message/10

Confederate answered 13/12, 2012 at 21:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.