re-flex
« Back to VersTracker
Description:
Regex-centric, fast and flexible scanner generator for C++
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: scanner generator regex c++ lexer
Install: brew install re-flex
About:
ReFlex is a high-performance scanner generator that utilizes regular expressions to create fast lexical analyzers. It stands out by directly generating C++ source code, enabling deep compiler optimizations and eliminating the overhead of state machine interpretation. This results in significantly faster parsing compared to legacy tools like Flex.
Key Features:
  • Generates highly optimized C++ scanner code
  • Supports modern Unicode and POSIX/PCRE regex standards
  • Zero-dependency output for easy integration
  • Significantly faster than traditional scanner generators
Use Cases:
  • Building custom compilers and interpreters
  • High-speed log analysis and data extraction
  • Network protocol parsing
Alternatives:
  • flex – ReFlex is generally faster and generates C++ code, whereas flex is the older standard generating C code.
  • re2c – Both generate C/C++ code, but ReFlex offers a more standard regex syntax and higher-level features.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 9:41pm 0 VERSION_BUMP a1b5171f
Jan 10, 2025 2:39am 0 VERSION_BUMP a5fdfb98
Oct 30, 2024 5:14am 0 VERSION_BUMP 822b8841
Oct 30, 2024 3:49am 0 VERSION_BUMP c5e1e8c8
Sep 14, 2024 1:48am 0 VERSION_BUMP ecfcdede