[ragel-users] Work On Binary datagrams

Joseph Stewart joseph.stewart at gmail.com
Sat Dec 25 00:46:02 UTC 2010


That's totally awesome (from a graphviz point of view at least)... the
parser works and the graphviz output is approachable.

Thanks for the early X-mas present!

-joe

On Fri, Dec 24, 2010 at 7:10 PM, Adrian Thurston <thurston at complang.org>wrote:

> I had a chance to have a little closer look. Do something like this.
>
> Note theat the %when !check  syntax isn't documented yet. It's been around
> for a few years and works (I use it at work), I'm just not totally happy
> with the implementation.
>
> action check {len--}
>
> buffer =
>    (any when check)*
>    %when !check
>
>    @{ printf("[%d]:%d\n", len, *p); };
>
> close =
>    '</XRNDATA>'
>    @{ printf("end XRNDATA\n"); };
>
> expr = open len buffer close;
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20101224/fc863c21/attachment-0001.html>
-------------- next part --------------
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users


More information about the ragel-users mailing list