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.
http://mongrel.rubyforge.org/wiki/FAQ
mongrelのHTTPパーサはRagelというもので書かれているらしい。
Ragelってなんだ?
なるほど。。
Mongrelのrlファイルを読むで雰囲気だけは分かりました・・
パースって正規表現をゴリゴリと書いてるのかと思ってたけど、こういうものがあるのか・・
そして鬼よりも速いらしい
http://www.zedshaw.com/tips/ragel_state_charts.html
http://limechat.net/presentation/1000speakers3_ragel.pdf