]> git.localhorst.tv Git - blank.git/blob - src/io/Token.hpp
store players in world save
[blank.git] / src / io / Token.hpp
1 #ifndef BLANK_IO_TOKEN_HPP_
2 #define BLANK_IO_TOKEN_HPP_
3
4 #include <string>
5
6
7 namespace blank {
8
9 struct Token {
10         enum Type {
11                 UNKNOWN = 0,
12                 ANGLE_BRACKET_OPEN = '{',
13                 ANGLE_BRACKET_CLOSE = '}',
14                 CHEVRON_OPEN = '<',
15                 CHEVRON_CLOSE = '>',
16                 BRACKET_OPEN = '[',
17                 BRACKET_CLOSE = ']',
18                 PARENTHESIS_OPEN = '(',
19                 PARENTHESIS_CLOSE = ')',
20                 COLON = ':',
21                 SEMICOLON = ';',
22                 COMMA = ',',
23                 EQUALS = '=',
24                 NUMBER = '0',
25                 STRING = '"',
26                 IDENTIFIER = 'a',
27                 COMMENT = '#',
28         } type = UNKNOWN;
29         std::string value;
30 };
31
32 }
33
34 #endif