operators | Operators | |
keywords | Kewords | |
dynamicTokens | Other tokens | |
StringBehavior | Configure string lexing behavior |
IdType |
| Token ID type for the D lexer. |
str |
| Function used for converting an IdType to a string. |
Token |
| The token type in the D lexer |
isBasicType | Returns: true if the given ID is for a basic type. | |
isNumberLiteral | Returns: true if the given ID type is for a number literal. | |
isOperator | Returns: true if the given ID type is for an operator. | |
isKeyword | Returns: true if the given ID type is for a keyword. | |
isStringLiteral | Returns: true if the given ID type is for a string literal. | |
isProtection | Returns: true if the given ID type is for a protection attribute. | |
getTokensForParser | Returns: 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. | |
unDecorateComment | Removes "decoration" such as leading whitespace, leading + and * characters, and places the result into the given output range |
LexerConfig | Lexer configuration struct | |
DLexer | The D lexer struct. | |
StringCache | The string cache is used for string interning. |
tok | Template used to refer to D token types. |