Ragel

A custom HTTP 1.1 parser written based on the RFC standard and using an ABNF dump thankfully put online by someone. The parser is written using Ragel and is written C and Java as Ruby extension.

mongrelのHTTPパーサはRagelというもので書かれているらしい。

Ragelってなんだ?

Ragel 入門: 簡単な使い方から JSON パーサまで

なるほど。。

Mongrelのrlファイルを読むで雰囲気だけは分かりました・・

パースって正規表現をゴリゴリと書いてるのかと思ってたけど、こういうものがあるのか・・


そして鬼よりも速いらしい
http://www.zedshaw.com/tips/ragel_state_charts.html
http://limechat.net/presentation/1000speakers3_ragel.pdf