2011/1/21 Benjamin van der Veen <[email protected]>: > 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 <[email protected]> _______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
