X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstatement.h;fp=source%2Fstatement.h;h=378ddabdb4ab1c8efc5d19a2853998197d703920;hb=5453824394771ca21de32088a2842486b63e6f6d;hp=0000000000000000000000000000000000000000;hpb=7876adf8729437f1c917642c5dd5faf6f2e1fb31;p=libs%2Fdatafile.git diff --git a/source/statement.h b/source/statement.h new file mode 100644 index 0000000..378ddab --- /dev/null +++ b/source/statement.h @@ -0,0 +1,35 @@ +/* +This file is part of libmspparser +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ +#ifndef MSP_PARSER_STATEMENT_H_ +#define MSP_PARSER_STATEMENT_H_ + +#include +#include +#include +#include "value.h" + +namespace Msp { +namespace Parser { + +class Statement +{ +public: + std::string keyword; + ValueArray args; + bool valid; + std::string source; + unsigned line; + std::list sub; + + Statement(): valid(false), line(0) { } + std::string get_location() const + { std::ostringstream ss; ss<