Is there any way how to prevent boost::fusion to overflow stack on certain input? I have grammar similar to
S -> S OR S
S -> a
and on huge input (>1500 OR'd items) it crashes. I don't want to parse such a huge input, but I need somehow to prevent process crashing.
I can probably limit the string to be of some length, but that doesn't solve my problem, as a
may be long.