JAVACC(1)
JAVACC(1) π
okay bestie, this is the manual page for javacc (plus its two little siblings jjtree and jjdoc), living in section 1, aka General Commands Manual. sit down, grab a strawberry π, we're learning parser generation and it's gonna be adorable.
β¨ NAME β¨
javacc β a java compiler compiler π§
β¨ SYNOPSIS β¨
javacc [option-settings] [inputfile]
jjtree [option-settings] [inputfile]
jjdoc [inputfile]
β¨ DESCRIPTION β¨
so this manual page documents, briefly, the javacc, jjtree and jjdoc commands. briefly!! it says briefly!! we're keeping it cute and short, periodt.
π heads up: this manual page was written for the Debian distribution, because the original program does not have a manual page. not us doing their homework but here we are.
Now, who is who:
javaccβ a parser generator for use with Java π₯jjtreeβ a tree builder forjavaccπΈjjdocβ a documentation generatorjavaccπ
β¨ OPTIONS β¨
first thing first: javacc, jjtree or jjdoc without any argument prints a small help with the list of available options. so if you're lost, just run it with nothing and it'll hold your hand π«Ά
option-settings is a sequence of settings separated by spaces. every single option setting has to be in one of these forms, no exceptions bestie:
-optionname=valueβ the classic equals sign moment, e.g.-STATIC=false-optionname:valueβ same vibe, colon edition, e.g.-STATIC:false-optionnameβ this is equivalent to-optionname=true, e.g.-STATIC-NOoptionnameβ this is equivalent to-optionname=false, e.g.-NOSTATIC
option settings are not case-sensitive, so yes, you can absolutely say -nOsTaTiC instead of -NOSTATIC and the universe will simply allow it. π
option values have to be appropriate for the corresponding option, and must be either an integer or a string value. no freestyling with the types, iykyk.
for a list of available options, please refer to the command's internal help. (that's the "run it with no arguments" thing from up top, bestie. it's giving self-service.)
β¨ EXAMPLE β¨
here's the group chat in action π¬:
% javacc -STATIC=false -LOOKAHEAD:2 -debug_parser mygrammar.jj
% jjtree -STATIC=false mygrammar.jjt
% jjdoc mygrammar.jj
look at that -LOOKAHEAD:2 with the colon and the -STATIC=false with the equals. two different forms, one slay. π
β¨ AUTHOR β¨
this manual page was written by Nicolas Sabouret <nico@debian.org> for the Debian system (but may be used by others). π
permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. π«‘
aaaand that's the whole thing! the footer of the original just says JAVACC(1) and nothing else β no version, no date, so there's literally nothing to invent here and we are not making things up. bye bestie, go generate a parser, you're gonna eat π
β¨
π¦ where this page comes from
- debian bookworm: javacc4 4.0-3 Β· BSD-3-Clause
- debian trixie: javacc4 4.0-3 Β· BSD-3-Clause
- ubuntu jammy: javacc4 4.0-2 Β· BSD-3-Clause
- ubuntu noble: javacc4 4.0-3 Β· BSD-3-Clause
- ubuntu questing: javacc4 4.0-3
- ubuntu resolute: javacc4 4.0-3build1 Β· BSD-3-Clause
- ubuntu stonking: javacc4 4.0-3build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms