ArkScript
A small, fast, functional and scripting language for video games
Ark::internal::Token Struct Reference

#include <Token.hpp>

+ Collaboration diagram for Ark::internal::Token:

Public Member Functions

 Token ()=default
 Construct a new Token object. More...
 
 Token (TokenType type, const std::string &tok, std::size_t line, std::size_t col) noexcept
 Construct a new Token object. More...
 

Public Attributes

TokenType type
 
std::string token
 
std::size_t line
 
std::size_t col
 

Detailed Description

Definition at line 55 of file Token.hpp.

Constructor & Destructor Documentation

◆ Token() [1/2]

Ark::internal::Token::Token ( )
default

Construct a new Token object.

◆ Token() [2/2]

Ark::internal::Token::Token ( TokenType  type,
const std::string &  tok,
std::size_t  line,
std::size_t  col 
)
inlinenoexcept

Construct a new Token object.

Parameters
typethe token type
tokthe token value
linethe line where we found the token
colthe column at which was the token

Definition at line 76 of file Token.hpp.

Member Data Documentation

◆ col

◆ line

◆ token

◆ type

TokenType Ark::internal::Token::type

The documentation for this struct was generated from the following file: