From 73090389d65151d046f9dbf44d0e7180c33cec76 Mon Sep 17 00:00:00 2001 From: Myun2 Date: Tue, 3 Aug 2010 21:58:50 +0900 Subject: [PATCH] declaration_base.hpp removed. generator_base.hpp Update --- roast/include/roast/lexical/declaration_base.hpp | 19 ------------------- roast/include/roast/lexical/generator_base.hpp | 14 +++++++++++++- 2 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 roast/include/roast/lexical/declaration_base.hpp diff --git a/roast/include/roast/lexical/declaration_base.hpp b/roast/include/roast/lexical/declaration_base.hpp deleted file mode 100644 index 0047a36d..00000000 --- a/roast/include/roast/lexical/declaration_base.hpp +++ /dev/null @@ -1,19 +0,0 @@ -// Roast+ License -/* -*/ -#ifndef __SFJP_ROAST__lexical__declaration_base_HPP__ -#define __SFJP_ROAST__lexical__declaration_base_HPP__ - -namespace roast -{ - namespace lexical - { - class declaration_base - { - }; - - //typedef declaration_base structure_base; - } -} - -#endif//__SFJP_ROAST__lexical__declaration_base_HPP__ diff --git a/roast/include/roast/lexical/generator_base.hpp b/roast/include/roast/lexical/generator_base.hpp index 70f2c2d6..a9622a78 100644 --- a/roast/include/roast/lexical/generator_base.hpp +++ b/roast/include/roast/lexical/generator_base.hpp @@ -11,10 +11,22 @@ namespace roast { namespace lexical { + ////////////////////////////////////////////////////////// + + template class generator_base { + public: + template + bool generate(const _Document& doc, _Strm &strm) + { + _Rule rule; + return rule.generate(strm, doc); + } }; + + ////////////////////////////////////////////////////////// } } -#endif//__SFJP_ROAST__lexical__generator_base_HPP__ +#endif//__SFJP_ROAST__lexical__generator_base_HPP__ \ No newline at end of file -- 2.11.0