Expand description
Typed token wrappers and the token predicates the grammar and AST both rely on.
Structs§
- CppComment
Token - A comment token.
- CppGeneral
Token - Any token. The fallback for tokens with no special behaviour.
- CppKeyword
Token - A keyword token, for the handful of places that need to look at one directly.
- CppLiteral
Token - A literal token: a number, character, string, boolean or
nullptr. - CppName
Token - An identifier: a name being declared or referenced.
- CppOperator
Token - An operator token, in either a unary or a binary position.
- CppPunctuation
Token - A punctuation token.
- CppScope
Token - The
::in a qualified name.
Enums§
- CppComment
Kind - 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§
- CppToken
Parent Kind - Nodes have no tokens of their own; this alias exists so
CppAstTokenimplementations can name the syntax kind of a token’s parent without importing rowan.