aboutsummaryrefslogtreecommitdiff
path: root/include/lexer/token.h
blob: 54ac116fa6801c43aac93aef9ee593cfe8450094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef TOKEN_H
#define TOKEN_H

#include "token_type.h"

#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} {};
};

#endif