-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_DATAFILE_PARSER_H_
#define MSP_DATAFILE_PARSER_H_
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);
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; }
};