Enums

operatorsOperators
keywordsKewords
dynamicTokensOther tokens
StringBehaviorConfigure string lexing behavior

Aliases

IdType
TokenIdType!(operators, dynamicTokens, keywords)
Token ID type for the D lexer.
str
tokenStringRepresentation!(IdType, operators, dynamicTokens, keywords)
Function used for converting an IdType to a string.
Token
std.lexer.TokenStructure!(IdType, extraFields)
The token type in the D lexer

Functions

isBasicTypeReturns: true if the given ID is for a basic type.
isNumberLiteralReturns: true if the given ID type is for a number literal.
isOperatorReturns: true if the given ID type is for an operator.
isKeywordReturns: true if the given ID type is for a keyword.
isStringLiteralReturns: true if the given ID type is for a string literal.
isProtectionReturns: true if the given ID type is for a protection attribute.
getTokensForParserReturns: an array of tokens lexed from the given source code to the output range. All whitespace tokens are skipped and comments are attached to the token nearest to them.
unDecorateCommentRemoves "decoration" such as leading whitespace, leading + and * characters, and places the result into the given output range

Structs

LexerConfigLexer configuration struct
DLexerThe D lexer struct.
StringCacheThe string cache is used for string interning.

Templates

tokTemplate used to refer to D token types.