Location tracking, with partial streaming #506
Replies: 1 comment
-
To parse partial input, you will need to use
Yes, 99% of winnows parsers are generic and don't care if you are using |
Beta Was this translation helpful? Give feedback.
-
I am considering switching the parsing in https://github.com/rpgp/rpgp to a different parsing library (currently using nom) as I have to do a lot of work to make streaming parsing work, and continue to run into bugs. Additionally I need to start attaching location information (offset + length) to individual pieces so I can build
hexdump
style views for the parsed trees.While experimenting with
winnow
I am trying out sth like this, but unfortunately this explodes withpartial streams need to handle ErrMode::Incomplete
My main questions are
Located
? Most use cases don't need the location tracking, and so ideally I would be able to write the parsers generic, and only enable it when necessary.Beta Was this translation helpful? Give feedback.
All reactions