How do I get line numbers using pegged?

TheZipCreator thezipcreator at
Mon Aug 15 22:55:30 UTC 2022

So I've looked at the [pegged 
library]( and used it a 
little bit and it seems really good. But there doesn't seem like 
there's a built-in way to get line numbers of nodes in the parse 
tree (or maybe I'm missing something). This would useful because 
if an error occurs during interpreting/compiling, you could give 
the user a line number where their error occurred by just getting 
the line number of the node that's currently being processed. Is 
there a way to do this in pegged?

More information about the Digitalmars-d-learn mailing list