there's a "hack" that makes it work. let me dig it out...
ok, this is the "output problem" discussed here -
http://acooke.org/lepl/resources.html
hope that helps (at work, so haven't taken time to look at your code, but i
think what i linked to is very relevant. i hope).
andrew
> --
> You received this message because you are subscribed to the Google Groups "lepl" group.
> To post to this group, send email to le...@googlegroups.com.
> To unsubscribe from this group, send email to lepl+uns...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
>
andrew
however, you typically don't need that state ("real life" grammars don't need
to backtrack all the way to the start). so you can limit the amount of state
that lepl stores.
the solution is described here -
http://acooke.org/lepl/resources.html#the-input-solution (basically, use
config.low_memory()).
however, be warned - it will run more slowly (since it has to track memory use
and "unlink" data). and if you give too small a value for the length then you
may fail to parse the data (if you discard too much backtracking information).
i should also say that this is a very infrequently used option and was buggy
for some time. so check you're using the latest version (5.0).
hope that helps,
andrew