BenchGen
BenchGen is a tool for generating benchmarks to stress-test a computing system.
Loading...
Searching...
No Matches
Token Struct Reference

Represents a token with a type and text content. More...

#include <globalStructs.h>

Public Member Functions

bool operator== (const Token &other) const
 Equality operator to compare two Token objects.
 

Public Attributes

int type
 
std::string text
 

Detailed Description

Represents a token with a type and text content.

Member Function Documentation

◆ operator==()

bool Token::operator== ( const Token & other) const
inline

Equality operator to compare two Token objects.

Parameters
otherThe other Token object to compare against.
Returns
True if both tokens have the same type and text, otherwise false.

Member Data Documentation

◆ text

std::string Token::text

◆ type

int Token::type

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