BSD Ports

devel/ragel 6.10_1 DragonFly

Compile regular languages into executable C/C++ code

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2, GPLv3
Categories
devel
Package size
494.5 KiB, 2305.4 KiB installed

Description

Ragel compiles finite state machines from regular languages into runnable C code. Ragel state machines can not only recognize byte sequences as regular expression machines do, but can also execute code at arbitrary points in the recognition of a regular language.

When you wish to write down a regular language you start with some simple regular language and build a bigger one using the regular language operators union, concatenation, kleene star, intersection and subtraction. This is precisely the way you describe to Ragel how to compile your finite state machines. Ragel also understands operators that insert function calls into machines and operators that control any non-determinism in machines.

In the other systems

The newest version among them is 6.11, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/ragel6.10_1 behind since 2026-07-26none known-[email protected]-
FreeBSDdevel/ragel6.10_1 behind since 2026-07-26none known-[email protected]-
OpenBSDdevel/ragel6.11 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-07-26
NetBSDdevel/ragel6.10 behind since 2026-07-26none known-[email protected]-
MidnightBSDdevel/ragel6.10_1 behind since 2026-07-26no data-[email protected]-
HardenedBSDdevel/ragel6.10_1 behind since 2026-07-26no data-[email protected]-
GhostBSDdevel/ragel6.10_1 behind since 2026-07-26no data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install ragel

From DPorts:

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

Dependencies

No port depends on this one.