Adrian Thurston wrote:
> You could do it like this. You'll have to remember to decrement 
> dataRemaining by two bytes first.
>
> dataBlock =
>      0 Word16b @storeSamplesPerBlock
>      (Word16b @storeData when dataRemaining)*
>      (Word16b @storeData when !dataRemaining)
>      @processCompleteMessage;
>
> One problem with this is that it assumes you've got at least one 2-byte 
> sample in each block. Is that an acceptable assumption?
>   

Ah yes, that looks like a good trick. No worries about having a minimum 
of one sample; we'll make that a requirement of the protocol.

Cheers,

- bernie


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

Reply via email to