Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does YAML::Node have a Mark structure?

Tags:

yaml-cpp

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?

like image 251
zorch Avatar asked Oct 20 '22 01:10

zorch


1 Answers

Starting with 0.5.3 YAML::Node has a property Mark() to get information about line number etc.

like image 92
Simon Schmeißer Avatar answered Oct 23 '22 04:10

Simon Schmeißer