]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parser.h
Handle unknown types as enums
[libs/datafile.git] / source / parser.h
index c8b7ecef4e72f1c168980ca3b130bdc7f5a4f713..e127c5b3653fbfd02e77bbec7c344e5061ed113e 100644 (file)
@@ -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 <istream>
 #include <string>
 #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