]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | { | |
11fdf7f2 | 16 | quickbook_grammar::quickbook_grammar(quickbook::state& s) |
7c673cae FG |
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") | |
11fdf7f2 TL |
22 | , attribute_template_body( |
23 | impl_->attribute_template_body, "attribute_template_body") | |
7c673cae FG |
24 | , doc_info(impl_->doc_info_details, "doc_info") |
25 | { | |
26 | } | |
7c673cae | 27 | |
11fdf7f2 TL |
28 | quickbook_grammar::~quickbook_grammar() {} |
29 | ||
30 | quickbook_grammar::impl::impl(quickbook::state& s) : state(s), cleanup_() | |
7c673cae FG |
31 | { |
32 | init_main(); | |
33 | init_block_elements(); | |
34 | init_phrase_elements(); | |
35 | init_doc_info(); | |
36 | } | |
37 | } |