X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fparser.h;h=aeab71d2d3fbd4022e30a9c8b26b0ab3d14a31ed;hb=6653c7d83dbe1fe81a541a125be8bb808b234eb7;hp=a89799bd0558cf54c6fbb2e547e406afd9b132a4;hpb=7df5e45c7f414f6a07681dc4ec2abb63b091a309;p=libs%2Fdatafile.git diff --git a/source/parser.h b/source/parser.h index a89799b..aeab71d 100644 --- a/source/parser.h +++ b/source/parser.h @@ -19,11 +19,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 +35,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; } };