From: Marcin Kalicinski (kalita_at_[hidden])
Date: 2006-04-26 17:23:58
I have an interesting idea how to preserve comments & layout information.
The relevant structures should be included in the tree under a special meta
;comment before key2
key2 data2 ;comment after key2, on the same line
The resulting tree might look like that:
comment "comment before key2"
comment "comment after key2, on the same line"
This way it is easily accessible using ptree interface, it is readable,
editable, and it is possible to manipulate it programatically. And above
does not require any extra support from ptree, only from the parsers. With
some effort it also allows 100% reproduction of original layout.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk