Not sure if relevant but maybe you can use https://github.com/plataformatec/nimble_parsec
Or check out How to properly parse a list of lines, with 'look-ahead' functionality? for discussion on a similar topic.
Not sure if relevant but maybe you can use https://github.com/plataformatec/nimble_parsec
Or check out How to properly parse a list of lines, with 'look-ahead' functionality? for discussion on a similar topic.