aboutsummaryrefslogtreecommitdiffstats
path: root/value.h
blob: 71d51015e639a49b9fdf0e87bbd2b4323b637d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <string>

class Value {
    public:
        enum Type {
            Integer,
            String
        };

        Value(std::string& lexeme);
        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;
};