[ragel-users] EOF actions and buffering
Iñaki Baz Castillo
ibc at aliax.net
Thu Jan 20 23:31:36 UTC 2011
2011/1/21 Benjamin van der Veen <b at bvanderveen.com>:
> Hello,
>
> I am using Ragel to make an HTTP parser. Feel free to tell me this is a terrible idea. ;)
It's a very good idea :)
> It seems to me that a common problem faced by users of Ragel is that they do not know in advance where (with respect to the grammar being parsed) the boundaries of buffers that they feed the parser are going to be. For example, I can easily make a Ragel grammar which will parse the following using only entering and leaving actions:
I recommend you checking Mongrel HTTP parser, which is written in C
and it used to build a Ruby object containing parsed data. However the
parser is a separate file(s) you really can learn from.
--
Iñaki Baz Castillo
<ibc at aliax.net>
_______________________________________________
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