[ragel-users] foreach character?

Gordon Smith spider.karma+ragel-users at gmail.com
Thu Jun 11 07:00:59 UTC 2009


Hello -

I have a functioning machine, a portion of which is below.

%%{
    a_packet = 'a:' Part1 ':' Part2 ':' Part3 '\r';

    main := ( a_packet | b_packet | c_packet )+;
}%%

Out of curiosity, is there a way to easily examine every input character in
order to calculate a running CRC value for "a_packet", for example? Perhaps
something like an action prior to the p++ operation?

Thanks,
Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20090611/5bb6aa92/attachment-0001.html>


More information about the ragel-users mailing list