Hi David, section 6.7 in the manual covers this.

Thanks,
 Adrian

On 12-08-17 04:16 PM, David James wrote:
Hello,

This is my first post. Being trained as a Electrical and Computer
engineer, I really enjoy finding tools that blur the gap between
computer science and hardware. (This brings back great memories of
Mealy and Moore machines!)

Now, my question. Per RFC 2616's grammar:

     comment = "(" *( ctext | quoted-pair | comment ) ")"

I would like to write it like this in Ragel, but it is not allowed
because recursive rules are not directly supported:

     comment = "(" ( ctext | quoted_pair | comment )* ")"

How might I handle this?

If a workaround is needed, all I need, I think, is to keep the
parenthesis balanced. I don't really need to fire actions on nested
comments; I'm fine with everything clumping up to the top level.

-David

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


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

Reply via email to