| /*============================================================================= |
| Copyright (c) 2002 2004 2006 Joel de Guzman |
| Copyright (c) 2004 Eric Niebler |
| Copyright (c) 2010 Daniel James |
| http://spirit.sourceforge.net/ |
| |
| Use, modification and distribution is subject to the Boost Software |
| License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
| http://www.boost.org/LICENSE_1_0.txt) |
| =============================================================================*/ |
| |
| #include "grammar_impl.hpp" |
| |
| namespace quickbook |
| { |
| quickbook_grammar::quickbook_grammar(quickbook::actions& a) |
| : impl_(new impl(a)) |
| , command_line_macro(impl_->command_line, "command_line_macro") |
| , common(impl_->common, "phrase") |
| , simple_phrase(impl_->simple_phrase, "simple_phrase") |
| , block(impl_->block_start, "block") |
| , block_skip_initial_spaces(impl_->block_skip_initial_spaces, "block") |
| , doc_info(impl_->doc_info_details, "doc_info") |
| { |
| } |
| |
| quickbook_grammar::~quickbook_grammar() |
| { |
| } |
| |
| quickbook_grammar::impl::impl(quickbook::actions& a) |
| : actions(a) |
| , cleanup_() |
| { |
| init_main(); |
| init_block_elements(); |
| init_phrase_elements(); |
| init_doc_info(); |
| } |
| } |