bl-compiler

compiler for the bl programming language.
Log | Files | Refs | README

token.hpp (269B)


      1 #pragma once
      2 
      3 #include "token_type.hpp"
      4 
      5 #include <string>
      6 
      7 struct Token {
      8     TokenType type;
      9     std::string value;
     10     int line;
     11     int column;
     12 
     13     Token(TokenType t, const std::string& val, int line, int col) : type{t}, value{val}, line{line}, column{col} {};
     14 };