• Dick Hollenbeck's avatar
    Implement "KiCad s-epression" support for boost::property_tree's ptree, the 8 · 6bf3d7cd
    Dick Hollenbeck authored
    bit string version of property_tree. The ram resident structure of the ptree is
    mostly compatible with one created using the xml_parser from
    boost::property_tree, with slight differences in the way atoms are stored. The
    result is you can use Format() to convert from xml to s-expression, but not the
    other way around. You can write a simple s-expression beautifier in just a few
    lines of code.
    
    The main value however is the s-expression parser, i.e. Scan(), which is an
    alternative to crafting a custom recursive descent parser for a particular
    grammar. The tipping point depends on whether you want to read only a small
    portion of a much larger document. If so, then using the ptree will likely be a
    "faster to code" route. Documentation on how to navigate a ptree can be found on
    the boost website and there are a number of examples in the
    pcbnew/eagle_plugin.cpp file in this project. Powerful path navigation support
    makes it easy to extract a subset of a ptree.
    6bf3d7cd
Name
Last commit
Last update
3d-viewer Loading commit data...
CMakeModules Loading commit data...
Documentation Loading commit data...
bitmap2component Loading commit data...
bitmaps_png Loading commit data...
common Loading commit data...
cvpcb Loading commit data...
demos Loading commit data...
eeschema Loading commit data...
gerbview Loading commit data...
helpers/tools_to_build_newstroke-font Loading commit data...
include Loading commit data...
kicad Loading commit data...
new Loading commit data...
packaging Loading commit data...
pcb_calculator Loading commit data...
pcbnew Loading commit data...
polygon Loading commit data...
potrace Loading commit data...
resources Loading commit data...
scripting Loading commit data...
scripts Loading commit data...
template Loading commit data...
tools Loading commit data...
.bzrignore Loading commit data...
AUTHORS.txt Loading commit data...
CHANGELOG.txt Loading commit data...
CMakeLists.txt Loading commit data...
COPYRIGHT.txt Loading commit data...
CTestConfig.cmake Loading commit data...
Doxyfile Loading commit data...
HOW_TO_CONTRIBUTE.txt Loading commit data...
INSTALL.txt Loading commit data...
README.txt Loading commit data...
TODO.txt Loading commit data...
copyright.h Loading commit data...
license_for_documentation.txt Loading commit data...
notes_about_pcbnew_new_file_format.odt Loading commit data...
uncrustify.cfg Loading commit data...