X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftextparser.h;h=e8c89227ddc7300b7e745faca33a3f08c0089b8b;hb=29fafaa2c570b0cf92f41eeb534cfb65a841a892;hp=bfae4af2e6389fd15203cfa13866bd32e8ebab9b;hpb=256f7238bc60d6dcc31a564988f5cc02a60c4537;p=libs%2Fdatafile.git diff --git a/source/textparser.h b/source/textparser.h index bfae4af..e8c8922 100644 --- a/source/textparser.h +++ b/source/textparser.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_DATAFILE_TEXTPARSER_H_ #define MSP_DATAFILE_TEXTPARSER_H_ @@ -13,20 +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(); protected: Statement parse_statement(const Token *); Token parse_token(); - bool is_delimiter(int); - bool isodigit(int); - std::string get_location(); - void parse_error(int, const char *); + bool is_delimiter(int); + bool isodigit(int); }; } // namespace DataFile