I know that during parsing, yaml-cpp can throw an exception that has nice file location (line and column number) information for where the exception occurred. How about post-parse? Is there any mechanism to determine the (first) line number of a YAML file that is associated with a given node?
Starting with 0.5.3 YAML::Node has a property Mark() to get information about line number etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With