hyperion::assert::tokens#
- group tokens
This module defines the possible C++ token kinds that could make up a tokenized fragment of C++ code.
Typedefs
-
using Identifier = std::variant<Namespace, Type, Function, Variable>#
The token represents an identifier (a namespace, type, function, or variable)
-
using Kind = std::variant<Identifier, Keyword, String, Numeric, Punctuation, Error>#
The represents the type of token a token is.
-
struct Namespace#
- #include <hyperion/assert/tokens.h>
The token represents a namespace identifier.
-
struct Type#
- #include <hyperion/assert/tokens.h>
The token represents a type identifier.
-
struct Function#
- #include <hyperion/assert/tokens.h>
The token represents a function identifier.
-
struct Variable#
- #include <hyperion/assert/tokens.h>
The token represents a variable identifier.
-
struct Keyword#
- #include <hyperion/assert/tokens.h>
The token represents a keyword.
-
struct String#
- #include <hyperion/assert/tokens.h>
The token represents a string literal.
-
struct Numeric#
- #include <hyperion/assert/tokens.h>
The token represents a numeric literal.
-
struct Punctuation#
- #include <hyperion/assert/tokens.h>
The token represents punctuation.
-
struct Error#
- #include <hyperion/assert/tokens.h>
The token represents an error.
This is not specific C++ syntax, but instead for highlighting a particular sequence using an error-signaling color
-
using Identifier = std::variant<Namespace, Type, Function, Variable>#