]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parser.h
Use correct keyword in forward declaration
[libs/datafile.git] / source / parser.h
index a89799bd0558cf54c6fbb2e547e406afd9b132a4..6ad28b5b13c7a3824e3f05422834792cf758bccd 100644 (file)
@@ -9,7 +9,6 @@ namespace DataFile {
 
 class ParserMode;
 class Statement;
-struct Token;
 
 /**
 Frontend for loading datafiles.  Handles switching between text and binary
@@ -19,11 +18,11 @@ statements may be read.
 class Parser
 {
 private:
-       Input       in;
+       Input in;
        std::string main_src;
        std::string src;
-       bool        good;
-       ParserMode  *mode;
+       bool good;
+       ParserMode *mode;
 
 public:
        Parser(IO::Base &i, const std::string &s);
@@ -35,7 +34,7 @@ public:
        marked as bad and no more statements may be read, even if the exception was
        caught.
        */
-       Statement parse();
+       Statement parse(bool raw = false);
 
        operator bool() const { return good && in; }
 };