]> git.tdb.fi Git - libs/datafile.git/blob - source/textparser.h
Some refactoring of TextParser logic
[libs/datafile.git] / source / textparser.h
1 #ifndef MSP_DATAFILE_TEXTPARSER_H_
2 #define MSP_DATAFILE_TEXTPARSER_H_
3
4 #include "parsermode.h"
5
6 namespace Msp {
7 namespace DataFile {
8
9 struct Token;
10
11 class TextParser: public ParserMode
12 {
13 public:
14         TextParser(Input &, const std::string &);
15
16         virtual Statement parse();
17 protected:
18         Statement parse_statement(const Token *);
19         Token parse_token();
20         bool is_delimiter(int);
21         bool isodigit(int);
22 };
23
24 } // namespace DataFile
25 } // namespace Msp
26
27 #endif