ragel

Compiles finite state machines into C/C++/Java/Go code

brewmacoslinux
Try with needOr install directly
Source

About

State machine compiler

Commands

ragel

Examples

Compile a Ragel state machine file to C code$ ragel -o output.c input.rl
Generate C++ code from a Ragel grammar file$ ragel -L -o parser.cpp parser.rl
Generate a state machine diagram in dot format for visualization$ ragel -V input.rl | dot -Tpng -o diagram.png