Webserv
Loading...
Searching...
No Matches
config::Token Struct Reference

Represents a single lexical token with a type and a literal value. More...

#include <Token.hpp>

Public Member Functions

bool isTypeIn (TokenType const arr[], size_t size) const
 Checks if the token's type is present in a given array of types.

Public Attributes

std::string literal
TokenType type

Detailed Description

Represents a single lexical token with a type and a literal value.

Member Function Documentation

◆ isTypeIn()

bool config::Token::isTypeIn ( TokenType const arr[],
size_t size ) const

Checks if the token's type is present in a given array of types.

Parameters
arrAn array of TokenType to check against.
sizeThe size of the array.
Returns
True if the token's type is in the array, false otherwise.

Member Data Documentation

◆ literal

std::string config::Token::literal

◆ type

TokenType config::Token::type

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