Remove handle #7

Merged
CHatingPython merged 11 commits from remove-handle into master 2026-06-03 12:14:38 +00:00
Showing only changes of commit 6ce2fba9d2 - Show all commits
+13 -1
View File
@@ -175,7 +175,7 @@ using integer_token = std::uint64_t; /**< Integer token. */
* @brief Token.
*/
struct token {
location location;
location location; /**< Token location. */
token_t type = token_t::None; /**< Token type. */
/**
@@ -342,10 +342,22 @@ struct token_error {
token_error_t type; /**< Error type. */
std::string message; /**< Error message. */
/**
* @brief Compares two token errors for equality.
*
* @param rhs Error to compare against.
* @return true if the errors are equal.
*/
bool operator==(const token_error& rhs) const {
return location == rhs.location && type == rhs.type && message == rhs.message;
}
/**
* @brief Compares two token errors for inequality.
*
* @param rhs Error to compare against.
* @return true if the errors are not equal.
*/
bool operator!=(const token_error& rhs) const { return !this->operator==(rhs); }
};