jflex
« Back to VersTracker
Description:
Lexical analyzer generator for Java, written in Java
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: java lexer generator compiler development
Install: brew install jflex
About:
JFlex is a lexical analyzer generator for Java. It generates Java source code for a scanner (lexer) based on a specification that defines patterns. Its main value is automating the tedious process of writing lexers, ensuring correctness and performance.
Key Features:
  • Generates fast, table-driven scanners
  • Supports Java code integration within specifications
  • Compatible with CUP and BYACC/J for parser generation
  • Detailed error reporting and diagnostics
Use Cases:
  • Building compilers and interpreters for custom languages
  • Creating log file parsers or data extractors
  • Developing syntax highlighting tools for IDEs
Alternatives:
  • ANTLR – Generates both lexers and parsers; supports multiple target languages.
Version History
Detected Version Rev Change Commit