BSD Ports

devel/re2c 4.1 DragonFly

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

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PD
Categories
devel
Package size
1063.5 KiB, 16868.5 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlydevel/re2c4.1
FreeBSDdevel/re2c4.6
OpenBSDdevel/re2c4.6
NetBSDdevel/re2c4.6
MidnightBSDdevel/re2c4.1_1
HardenedBSDdevel/re2c4.6
GhostBSDdevel/re2c4.6

Install

Binary package:

pkg install re2c

From DPorts:

cd /usr/dports/devel/re2c && make install clean

Dependencies

Run dependencies 1