aboutsummaryrefslogtreecommitdiff
path: root/include/token.hpp
blob: d85ba949fe963942bdb7edaff393cbc38ff6510a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include "token_type.hpp"

#include <string>

struct Token {
    TokenType type;
    std::string value;
    int line;
    int column;

    Token(TokenType t, const std::string& val, int line, int col) : type{t}, value{val}, line{line}, column{col} {};
};