JavaCC

JavaCC (Java Compiler Compiler) is an open-source parser generator and lexical analyzer generator written in the Java programming language.[2]

JavaCC
Developer(s)Oracle
Stable release
7.0.5 / October 20, 2019 (2019-10-20)[1]
Repositorygithub.com/javacc/javacc
PlatformJava Virtual Machine
Typeparser/scanner generator
LicenseBSD
Websitejavacc.org

JavaCC is similar to yacc in that it generates a parser from a formal grammar written in EBNF notation. Unlike yacc, however, JavaCC generates top-down parsers. JavaCC can resolve choices based on the next k input tokens, and so can handle LL(k) grammars automatically; by use of "lookahead specifications", it can also resolve choices requiring unbounded look ahead. JavaCC also generates lexical analyzers in a fashion similar to lex. The tree builder that accompanies it, JJTree, constructs its trees from the bottom up.

JavaCC is licensed under a BSD license.

History

In 1996, Sun Microsystems released a parser generator called Jack. The developers responsible for Jack created their own company called Metamata and changed the Jack name to JavaCC. Metamata eventually became part of WebGain. After WebGain shut down its operations, JavaCC was moved to its current home.

Performance

In 2015, a benchmark shown JavaCC performance to be better by an order of magnitude compared to ANTLR, however the results are disputed.[3]

Uses

Software built using JavaCC includes:

gollark: In most real-world cases.
gollark: Arguments based on definitions are wrong, see.
gollark: There's not really a very agreed-upon "definition" for most political things.
gollark: On many issues.
gollark: The common consensus is kind of bad.

See also

References

  1. "MODIFICATIONS IN VERSION 7.0.5". Retrieved 2020-01-02.
  2. Enseling, Oliver (2000-12-29). "Build your own languages with JavaCC". JavaWorld. Retrieved 2020-01-02.
  3. "Parser Generators: ANTLR vs JavaCC". dzone.com. 2015-12-29. Retrieved 2020-01-02.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.