]> git.tdb.fi Git - libs/datafile.git/blob - source/textparser.h
Some more code reformatting
[libs/datafile.git] / source / textparser.h
1 /* $Id$
2
3 This file is part of libmspdatafile
4 Copyright © 2007-2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_DATAFILE_TEXTPARSER_H_
9 #define MSP_DATAFILE_TEXTPARSER_H_
10
11 #include "parsermode.h"
12
13 namespace Msp {
14 namespace DataFile {
15
16 class Token;
17
18 class TextParser: public ParserMode
19 {
20 public:
21         TextParser(Input &, const std::string &);
22
23         virtual Statement parse();
24 protected:
25         Statement parse_statement(const Token *);
26         Token parse_token();
27         bool  is_delimiter(int);
28         bool  isodigit(int);
29         std::string get_location();
30         void  parse_error(int, const char *);
31 };
32
33 } // namespace DataFile
34 } // namespace Msp
35
36 #endif