dmd.tokens

Defines lexical tokens.

Specification: Tokens

Authors

Walter Bright

Source: tokens.d

  • Declaration

    static immutable TOK[TOK.max + 1] Ckeywords;

    This is used to pick the C keywords out of the tokens. If it's not a C keyword, then it's an identifier.

  • Declaration

    struct Token;

    • Declaration

      nothrow void setString(const(char)* ptr, size_t length);

      Set to contents of ptr[0..length]

      Parameters

      const(char)* ptr

      pointer to string

      size_t length

      length of string

    • Declaration

      nothrow void setString(const ref OutBuffer buf);

      Set to contents of buf

      Parameters

      OutBuffer buf

      string (not zero terminated)

    • Declaration

      nothrow void setString();

      Set to empty string