kevinmehall/rust-peg

Obtaining line and column in a str parser?

Kile-Asmussen opened this issue · 1 comments

There doesn't seem to be a way to obtain line and column e.g. for the purpose of storing it in a token type, nor an obvious way to obtain the &str underlying a particular match.

Whether this is a technical limitation, a missing feature, or simply undocumented is not clear.

Never mind, I'm just a poor reader :)