kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Store source line information in YAML::Node #259

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if it was possible to tell the precise line/column numbers a 
YAML::Node originated from. Source line information is paramount to emit 
helpful messages when data validation fails (Ex: certain mandatory key missing 
in the certain section inside larger context).

When using Parser with EvenHandler interface source line information is 
available. However this method is often less convenient than building and 
exploring a tree of Nodes (like SAX vs DOM).

If storing a Mark increases Node memory footprint too much a compile time 
option can be used to turn this feature off.

Original issue reported on code.google.com by MeJ...@gmail.com on 25 Sep 2014 at 2:44

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by jbe...@gmail.com on 25 Sep 2014 at 11:24