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<[email protected]>  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
[email protected]
http://www.complang.org/mailman/listinfo/ra

_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to