public template tok(string token)
Template used to refer to D token types.
See the operators, keywords, and dynamicTokens enums for values that can be passed to this template.

Example

import std.d.lexer;
IdType t = tok!"floatLiteral";