Too many people have told me about the disadvantages, but what is its advantage if any?
Asked
Active
Viewed 1,762 times
3 Answers
8
JavaCC doesn't require its own runtime JAR (the code it generates runs on its own), whereas ANTLR does.

skaffman
- 398,947
- 96
- 818
- 769
-
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? – Dec 13 '12 at 21:29
-
@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. – skaffman Dec 16 '12 at 03:04
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

user1902312
- 21
- 1
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.

Daniel
- 10,115
- 3
- 44
- 62