Open sol opened 1 year ago
IIUC you want this as a new primitive? (Because there is already skipCount
in parser-combinators
.)
I think skipCount
requires a parser as an argument, whereas I want to unconditionally drop / ignore a specified number of tokens.
I'd love to have
Text.Megaparsec
to export(or possibly implement it with
getOffset
/setOffset
, if that results in the exact same parser state, not sure)