[ragel-users] Using Ragel to parse a binary message (WebSocket)

Adrian Thurston thurston at complang.org
Wed Sep 14 05:49:38 UTC 2011

I don't advertise this very often, but it's possible to use conditions 
to require certain bit patterns. Improving conditions are the focus of 
ragel 7. I am hoping to give them a better run-time implementation.

main := any when { fc & 0xf0 };

On 11-08-15 08:54 AM, Bob Paddock wrote:
> On Mon, Aug 15, 2011 at 11:32 AM, IƱaki Baz Castillo<ibc at aliax.net>  wrote:
>> Hi, I do know that Ragel cannot parse bits but just bytes.
> The language Erlang will do pattern matching at the bit level.
> That certainly would be a nice addition to Ragel for using it in
> Embedded Systems work.
>> maybe is it possible to use it for a binary packet format as WebSocket
>> frames as defined in:
> This of any help?:
> http://www.zedshaw.com/essays/ragel_state_charts.html
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ra

ragel-users mailing list
ragel-users at complang.org

More information about the ragel-users mailing list