{"id":509,"date":"2009-11-19T18:37:44","date_gmt":"2009-11-20T02:37:44","guid":{"rendered":"http:\/\/boost-spirit.com\/home\/?page_id=509"},"modified":"2013-07-31T20:31:44","modified_gmt":"2013-08-01T03:31:44","slug":"about-2","status":"publish","type":"page","link":"http:\/\/boost-spirit.com\/home\/about-2\/","title":{"rendered":"About"},"content":{"rendered":"<p>Spirit is a set of C++ libraries for parsing and output generation implemented as Domain Specific Embedded Languages (DSEL) using Expression templates and Template Meta-Programming. The Spirit libraries enable a target grammar to be written exclusively in C++. Inline grammar specifications can mix freely with other C++ code and, thanks to the generative power of C++ templates, are immediately executable.<\/p>\n<p>Spirit is part of <a href=\"http:\/\/www.boost.org\/\">Boost Libraries<\/a>, a peer-reviewed, open collaborative development effort.<\/p>\n<h4>DSELs<\/h4>\n<div>\n<ul type=\"disc\">\n<li>For creating parser grammars (<a href=\"http:\/\/en.wikipedia.org\/wiki\/Parsing_expression_grammar\">Parsing Expression Grammar<\/a> (PEG)).<\/li>\n<li>For the specification of the required tokens to be used for parsing (Regular expressions).<\/li>\n<li>For the description of the required output formats (Reverse PEG).<\/li>\n<\/ul>\n<\/div>\n<p>The parsers and generators are fully attributed, making it easy to build and handle hierarchical data structures in memory. These data structures model the structure of the input data and can directly be used to generate arbitrarily-formatted output.<\/p>\n<h4>Modules<\/h4>\n<div>\n<ul type=\"disc\">\n<li><em>Spirit.Classic<\/em>: Same as Boost Spirit 1.8.x with a special compatibility layer added to ensure backward compatibility.<\/li>\n<li><em>Spirit.Qi<\/em>: Recursive descent parser library.<\/li>\n<li><em>Spirit.Lex<\/em>: Lexical analyzer.<\/li>\n<li><em>Spirit.Karma<\/em>: Output generator.<\/li>\n<\/ul>\n<div style=\"width: 501px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" title=\"Spirit Structure\" alt=\"\" src=\"http:\/\/boost-spirit.com\/home\/spirit2\/libs\/spirit\/doc\/html\/images\/spiritstructure.png\" width=\"491\" height=\"289\" \/><p class=\"wp-caption-text\">The overall structure of the Boost Spirit library<\/p><\/div>\n<p style=\"text-align: center;\">\n<\/div>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\"><span>Share<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-hidden\"><div class=\"inner\" style=\"display: none;\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-509\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-509\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-pinterest\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-pinterest-509\" class=\"share-pinterest sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\" ><span>Pinterest<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-509\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-reddit\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-reddit sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\" ><span>Reddit<\/span><\/a><\/li><li class=\"share-tumblr\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-tumblr sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\" ><span>Tumblr<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Spirit is a set of C++ libraries for parsing and output generation implemented as Domain Specific Embedded Languages (DSEL) using Expression templates and Template Meta-Programming. The Spirit libraries enable a target grammar to be written exclusively in C++. Inline grammar specifications can mix freely with other C++ code and, thanks to the generative power of [&hellip;]<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\"><span>Share<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-hidden\"><div class=\"inner\" style=\"display: none;\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-509\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-509\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-pinterest\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-pinterest-509\" class=\"share-pinterest sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\" ><span>Pinterest<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-509\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-reddit\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-reddit sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\" ><span>Reddit<\/span><\/a><\/li><li class=\"share-tumblr\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-tumblr sd-button share-icon\" href=\"http:\/\/boost-spirit.com\/home\/about-2\/?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\" ><span>Tumblr<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div><\/div><\/div>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_s2mail":"yes","spay_email":""},"jetpack_shortlink":"https:\/\/wp.me\/PIHdZ-8d","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/pages\/509"}],"collection":[{"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/comments?post=509"}],"version-history":[{"count":5,"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/pages\/509\/revisions"}],"predecessor-version":[{"id":696,"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/pages\/509\/revisions\/696"}],"wp:attachment":[{"href":"http:\/\/boost-spirit.com\/home\/wp-json\/wp\/v2\/media?parent=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}