Alias tok

Template used to refer to D token types.

alias tok(string token) = TokenId!(IdType,operators,dynamicTokens,keywords,token);

See the operators, keywords, and dynamicTokens enums for values that can be passed to this template.

Example

import dparse.lexer;
IdType t = tok!"floatLiteral";