FreeBSD.software
Home/devel/re2c

re2c

4.3devel

Lexer generator for C, C++ and Go with a focus on generating fast code

Re2c is a free and open-source lexer generator for C, C++ and Go with a focus on generating fast code. It compiles regular expression specifications to deterministic finite automata and encodes them in the form of conditional jumps in the target language. This approach is generally faster than table-based lexers, and the generated code is easier to debug and understand. A flexible user interface allows one to adapt the generated lexer to a particular environment and input model, avoiding the overhead on unnecessary checks and buffers. Re2c is based on the lookahead TDFA algorithm that allows it to perform fast and lightweight submatch extraction.

$pkg install re2c
re2c.org
Origin
devel/re2c
Size
17.7MiB
License
PD
Maintainer
sunpoet@FreeBSD.org
Dependencies
0 packages
Required by
6 packages

Required By (6)