Constructs a token from a token type.
Constructs a token.
Returs: true if the token has the given type, false otherwise.
The column number at which this token occurs. This is measured in bytes and may not be correct when tab characters are involved.
The byte offset from the beginning of the input at which this token occurs.
The line number at which this token occurs.
The text of the token.
The token type.
The D type of the "type" token type field.
A string containing D code for any extra fields that should be included in the token structure body. This string is passed directly to a mixin statement.
// No extra struct fields are desired in this example, so leave it blank. alias Token = TokenStructure!(IdType, ""); Token minusToken = Token(tok!"-");
The token that is returned by the lexer.