ragel-d

compiles finite state machines into code in various languages

Install

All systems
curl cmd.cat/ragel-d.sh
Debian Debian
apt-get install ragel
Ubuntu
apt-get install ragel
Alpine
apk add ragel
Arch Arch Linux
pacman -S ragel
image/svg+xml Kali Linux
apt-get install ragel
Fedora
dnf install ragel
Windows (WSL2)
sudo apt-get update sudo apt-get install ragel
OS X
brew install ragel
Raspbian
apt-get install ragel
Docker
docker run cmd.cat/ragel-d ragel-d powered by Commando

ragel

compiles finite state machines into code in various languages

Ragel compiles finite state machines from regular languages into C, C++, Objective-C, D, Ruby or Java code. Ragel allows the programmer to embed actions at any point in a regular language. Non-determinism can be controlled through the use of embedded priorities and guarded regular language operators. Ragel also supports the construction of scanners and the building of state machines using state-charts. Ragel can be used to create robust recognizers and parsers which run very fast. It can work with integer-sized alphabets and can compile large state machines. The generated code has no dependencies.