re-flex

Fast and flexible scanner generator for C++ with regex support

brewmacoslinux
Try with needOr install directly
Source

About

Regex-centric, fast and flexible scanner generator for C++

Commands

reflex

Examples

Generate a scanner from a lexer specification file$ reflex --outfile=scanner.cpp lexer.l
Generate scanner with header file and specific options$ reflex --header --outfile=scanner.cpp --main lexer.l
Display version and available options$ reflex --version && reflex --help