Ragel is a finite state machine compiler capable of generating C, Objective-C, and other types of code.

Official site

Ragel quickstart

For a quick example of producing a very simple executable with Ragel, see "Ragel quickstart".


This lexer is an extended example of a scanner written using Ragel (part of my Wikitext project).

See also