On Monday, 15 August 2022 at 23:38:09 UTC, Paul Backus wrote:
On Monday, 15 August 2022 at 22:55:30 UTC, TheZipCreator wrote:[...]It looks like the parse tree in pegged stores the start and end byte indices of the portion of the input text it corresponds to:https://github.com/PhilippeSigaud/Pegged/blob/v0.4.6/pegged/peg.d#L251-L252It should be possible to compute line numbers based on these indices.
ah, that's what I was looking for, thanks