Skip to main content

Module token

Module token 

Source
Expand description

Typed token wrappers and the token predicates the grammar and AST both rely on.

Structs§

CppCommentToken
A comment token.
CppGeneralToken
Any token. The fallback for tokens with no special behaviour.
CppKeywordToken
A keyword token, for the handful of places that need to look at one directly.
CppLiteralToken
A literal token: a number, character, string, boolean or nullptr.
CppNameToken
An identifier: a name being declared or referenced.
CppOperatorToken
An operator token, in either a unary or a binary position.
CppPunctuationToken
A punctuation token.
CppScopeToken
The :: in a qualified name.

Enums§

CppCommentKind
The kind of a comment token, for the comment section of the AST.

Functions§

is_comment
Is this token kind a comment?
is_keyword
Is this token kind one of the keyword kinds?
is_literal
Is this token kind a literal?
is_operator
Is this token kind an operator?
is_punctuation
Is this token kind a delimiter?
is_type_keyword
Is this token kind a type specifier keyword?

Type Aliases§

CppTokenParentKind
Nodes have no tokens of their own; this alias exists so CppAstToken implementations can name the syntax kind of a token’s parent without importing rowan.