1 /*============================================================================= 2 Copyright (c) 2002 2004 2006 Joel de Guzman 3 Copyright (c) 2004 Eric Niebler 4 Copyright (c) 2010 Daniel James 5 http://spirit.sourceforge.net/ 6 7 Use, modification and distribution is subject to the Boost Software 8 License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 9 http://www.boost.org/LICENSE_1_0.txt) 10 =============================================================================*/ 11 12 #include "grammar_impl.hpp" 13 14 namespace quickbook 15 { quickbook_grammar(quickbook::state & s)16 quickbook_grammar::quickbook_grammar(quickbook::state& s) 17 : impl_(new impl(s)) 18 , command_line_macro(impl_->command_line, "command_line_macro") 19 , inline_phrase(impl_->inline_phrase, "inline_phrase") 20 , phrase_start(impl_->phrase_start, "phrase") 21 , block_start(impl_->block_start, "block") 22 , attribute_template_body( 23 impl_->attribute_template_body, "attribute_template_body") 24 , doc_info(impl_->doc_info_details, "doc_info") 25 { 26 } 27 ~quickbook_grammar()28 quickbook_grammar::~quickbook_grammar() {} 29 impl(quickbook::state & s)30 quickbook_grammar::impl::impl(quickbook::state& s) : state(s), cleanup_() 31 { 32 init_main(); 33 init_block_elements(); 34 init_phrase_elements(); 35 init_doc_info(); 36 } 37 } 38