X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fparser.h;h=e127c5b3653fbfd02e77bbec7c344e5061ed113e;hb=8ff59df1f2e603557eceacbc81a8dc44de051dae;hp=c8b7ecef4e72f1c168980ca3b130bdc7f5a4f713;hpb=98f563736e0837a429714b98656215503c607710;p=libs%2Fdatafile.git diff --git a/source/parser.h b/source/parser.h index c8b7ece..e127c5b 100644 --- a/source/parser.h +++ b/source/parser.h @@ -1,17 +1,18 @@ -/* -This file is part of libmspparser +/* $Id$ + +This file is part of libmspdatafile Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#ifndef MSP_PARSER_PARSER_H_ -#define MSP_PARSER_PARSER_H_ +#ifndef MSP_DATAFILE_PARSER_H_ +#define MSP_DATAFILE_PARSER_H_ #include #include #include "input.h" namespace Msp { -namespace Parser { +namespace DataFile { class Statement; struct Token; @@ -21,7 +22,7 @@ class Parser public: Parser(std::istream &, const std::string &); Statement parse(); - operator bool() const { return (bool)in; } + operator bool() const { return in; } private: Input in; std::string src; @@ -36,7 +37,7 @@ private: void parse_error(int, int); }; -} // namespace Parser +} // namespace DataFile } // namespace Msp #endif