slang/parsing/Token.h file

Contains the Token class and related helpers.

Namespaces

namespace slang
Root namespace.
namespace slang::syntax
Syntax tree manipulation.
namespace slang::parsing
Lexing, preprocessing, and parsing functionality.

Classes

struct slang::parsing::NumericTokenFlags
Various flags for numeric tokens.
class slang::parsing::Trivia
The Trivia class holds on to a piece of source text that should otherwise not turn into a token; for example, a preprocessor directive, a line continuation character, or a comment.
class slang::parsing::Token
Represents a single lexed token, including leading trivia, original location, token kind, and any related information derived from the token itself (such as the lexeme).