JFLEX(1)
π JFLEX(1) π
okay bestie, gather round β this is the jflex manual page, straight out of the General Commands Manual section of your fave Unix system. Sit down, grab a strawberry π, and let's get you fluent in scanner-generator speak.
β¨ NAME β¨
jflex β a lexical analyzer generator (also known as scanner generator) for Java. π
β¨ SYNOPSIS β¨
jflex <options> <input-files>
That's it, that's the whole vibe. Options go first, then the files you're feeding it. π«Ά
πΈ DESCRIPTION πΈ
So here's the tea β: JFlex is a lexical analyzer generator (aka a scanner generator, same thing, different name, iykyk) for Java(tm), and it's itself written in Java(tm). Iconic behaviour honestly.
It's also a rewrite of the very useful tool JLex β think glow-up, not glow-down. β¨
JFlex was designed to work together with the LALR parser generator CUP, and with BYacc/J, which is the Java modification of Berkeley Yacc. And it can also be used together with other parser generators like ANTLR, or just as a standalone tool all on its own. Main character energy either way. π
π OPTIONS π
Every single flag, no skips, no cap:
-d <directory>β write the generated file to<directory>. Yes, you pick where it lives. π--skel <file>β use an external skeleton<file>. Give it a different skeleton and it'll wear it. πβ¨--switch,--table,--packβ set the default code generation method. Three ways to do the thing, pick your fighter. π₯--jlexβ strict JLex compatibility. Old-school mode, for when you need it to behave exactly like the ancestor. π§--nominβ skip the minimization step. Just... don't minimize. Lowkey chaotic but valid.--nobakβ don't create backup files. Living dangerously, no safety net, we respect it. π--dumpβ display transition tables. Show me the receipts. π--dotβ write graphviz.dotfiles for the generated automata (alpha). Note the (alpha) bestie β it's experimental, treat it gently. π¦--verbose,-vβ display generation progress messages. This one is the default, so it's already on unless you say otherwise. π£οΈ--quiet,-qβ display errors only. Minimalist era. π€«--timeβ display generation time statistics. For the girlies who love a benchmark. β±οΈ--versionβ print the version number of this copy ofjflex. Which one are you running, hmm? π--infoβ print system + JDK information. Perfect for debugging your whole setup. π--help,-hβ print this message. Your little emergency escape hatch. π
π AUTHOR π
This manual page was written by Wolfgang Baer <WBaer@gmx.de>, for the Debian project β but it may be used by others too, so don't be shy. π«Ά
and that's a wrap, bestie π This page is dated October 2005 and it belongs to the JFLEX(1) entry in the General Commands Manual. Go generate some scanners, slay, and remember: every option above is load-bearing, so don't skip a single one. periodt. β¨π¦π
π¦ where this page comes from
- debian bookworm: jflex 1.7.0-3 Β· BSD-3-Clause
- debian trixie: jflex 1.7.0-3 Β· BSD-3-Clause
- ubuntu jammy: jflex 1.7.0-2 Β· BSD-3-Clause
- ubuntu noble: jflex 1.7.0-3 Β· BSD-3-Clause
- ubuntu questing: jflex 1.7.0-3
- ubuntu resolute: jflex 1.7.0-3build1 Β· BSD-3-Clause
- ubuntu stonking: jflex 1.7.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