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
_______________________________________________
ragel-users mailing list
[email protected]
http://www.complang.org/mailman/listinfo/ragel-users

Reply via email to