X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextparser.h;h=8235dc6addde9143dc4a3327f5a07554f01ceab7;hb=74f25b32f313987aad22af901b75a8e59a90734a;hp=9dfcf6d2b13208df717b6cf0f9c84a573674adb8;hpb=27630d44298cb67e075c166f4421288cc8ca117e;p=libs%2Fdatafile.git diff --git a/source/textparser.h b/source/textparser.h index 9dfcf6d..8235dc6 100644 --- a/source/textparser.h +++ b/source/textparser.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_DATAFILE_TEXTPARSER_H_ #define MSP_DATAFILE_TEXTPARSER_H_ @@ -13,21 +6,19 @@ Distributed under the LGPL namespace Msp { namespace DataFile { -class Token; +struct Token; class TextParser: public ParserMode { public: TextParser(Input &, const std::string &); - virtual Statement parse(); + + virtual Statement parse(bool); protected: Statement parse_statement(const Token *); Token parse_token(); - bool is_delimiter(int); - bool isodigit(int); - std::string unescape_string(const std::string &); - std::string get_location(); - void parse_error(int, int); + bool is_delimiter(int); + bool isodigit(int); }; } // namespace DataFile