Quoting Adam Sanderson <netghost / gmail.com>:

> I was wondering if anyone would be interested in, or knows of a
> generic parsing library.

http://i.loveruby.net/en/prog/racc.html might be of use.

~ Patrick