[ragel-users] Conditional parsing, is it possible?

Iñaki Baz Castillo ibc at aliax.net
Thu Dec 30 00:47:09 UTC 2010


Hi, I wonder if there is a way to parse (or not) some fragments of the
stream depending on previous parsed elements.

For example, in HTTP, imagine I just want to parse a custom header
"X-MyHeader" (which has a specific value format)  in case the request
method is POST. But in case it's a GET then I just want to store the
header raw value.

I've never found a way to achieve it, but maybe I miss something :)

Thanks a lot.

-- 
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