X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=tool%2Fcompiler.h;h=046209929c336e14a62153ee9352693739c2a889;hp=f77f04bdab2569ded7a82ba9520ac46e861f195d;hb=34213c1b452d87fcf1649bf42179a218361b5818;hpb=52e6bd3e02522f68166c70f83d2ef3d7cf0c15ff diff --git a/tool/compiler.h b/tool/compiler.h index f77f04b..0462099 100644 --- a/tool/compiler.h +++ b/tool/compiler.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef TOOL_COMPILER_H_ #define TOOL_COMPILER_H_ @@ -20,6 +13,7 @@ class Compiler: public Msp::DataFile::Loader private: Msp::DataFile::Writer &writer; + bool reset_src; public: Compiler(Msp::DataFile::Writer &); @@ -33,6 +27,7 @@ private: void process_file(const Msp::FS::Path &); }; + class File: public Msp::DataFile::Loader { private: @@ -48,6 +43,7 @@ private: void write(const Msp::DataFile::Statement &); }; + class ForEach: public Msp::DataFile::Loader { private: @@ -64,6 +60,8 @@ private: void exclude(const std::string &); void pattern(const std::string &); + void wrap(); + void wrap_keyword(const std::string &); void write(const Msp::DataFile::Statement &); };