]> git.tdb.fi Git - libs/datafile.git/blob - source/token.h
Cosmetic changes
[libs/datafile.git] / source / token.h
1 #ifndef MSP_DATAFILE_TOKEN_H_
2 #define MSP_DATAFILE_TOKEN_H_
3
4 namespace Msp {
5 namespace DataFile {
6
7 struct Token
8 {
9         enum Type
10         {
11                 INTEGER,
12                 FLOAT,
13                 STRING,
14                 IDENTIFIER,
15                 SPECIAL
16         };
17
18         Type type;
19         std::string str;
20
21         Token(): type(SPECIAL) { }
22         Token(Type t, const std::string &s): type(t), str(s) { }
23 };
24
25 } // namespace DataFile
26 } // namespace Msp
27
28 #endif