streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Try using absolute position in parsers instead of relative

Open harendra-kumar opened this issue 2 years ago • 2 comments

That way we can pinpoint error locations. or maybe we can keep using the relative position in the parser, but keep track of the absolute offset in the parser driver.

harendra-kumar avatar Aug 05 '23 14:08 harendra-kumar

In ParserK we will have to pass the absolute position around in the continuations. In Parser we can just maintain it in the driver. The position can include the byteOffset and lineCount (for Char/Byte streams only) up to the current chunk.

harendra-kumar avatar Jan 28 '24 09:01 harendra-kumar