blob: 7d85d3c0ffd7dbb1ddfe7d4ada1ab8a0323f6fc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <string>
#include "token.h"
class Value {
public:
enum Type {
Integer,
String
};
Value(Token& token);
const Value::Type getType() const;
const int getIntData() const;
const std::string& getStrData() const;
private:
int m_intData;
std::string m_strData;
Value::Type m_type;
};
|