On 16 Mar 2008, at 02:42, Iñáki Baz Castillo wrote: > El Domingo, 16 de Marzo de 2008, Eleanor McHugh escribi > >> The SIP protocol is in principle simple enough > > opss, sure it's not simple at all, a lot of amiguations, each header as its > own format, lots of extensions in lot of RFC's.... buff... simple? I've probably spent too much time hanging around SIP obsessives ;) >> However if you do want to go down the parser-generator route for >> performance reasons then look at the Ragel parser in Mongrel as >> that's >> very efficient and highly conformant with the HTTP RFC specs (given >> some of the boundary cases in SIP conformance is probably high on >> your >> list of priorities). As far as I'm aware Ragel produces parsers in C, >> but the Mongrel code will show you how to turn that into a Ruby >> native >> extension. > > AFAIK Ragel can write to Ruby since verison 6.0: > http://www.devchix.com/2008/01/13/a-hello-world-for-ruby-on-ragel-60 > > Thanks a lot, I'll try Ragel. I'll have to take a look at that myself. Ellie Eleanor McHugh Games With Brains ---- raise ArgumentError unless @reality.responds_to? :reason