Skip to content
Snippets Groups Projects
Commit dec43afe authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

add (naive) multi-chunk operation for packrat

The naive implementation concatenates all input and blindly re-runs the full
parse on every chunk. Keeping state between chunks is for later.

Note: The iterative API expects us to always consume an entire input chunk
when we suspend, even if packrat later backtracks into it. We will produce
the correct parse result and accurately consume from a final chunk, but all
earlier chunks will be reported as fully consumed and as being part of the
HParseResult in terms of its bit_length field.
parent b3f509ee
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment