Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

dmd.tokens

Defines lexical tokens.

SpecificationTokens

Authors:
Walter Bright
License:
Boost License 1.0

Sourcetokens.d

Documentationhttps://dlang.org/phobos/dmd_tokens.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/tokens.d

enumEXP: ubyte;
Expression nodes
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.
structToken;
nothrow voidsetString(const(char)*ptr, size_tlength);
Set to contents of ptr[0..length]
Parameters:
const(char)*ptrpointer to string
size_tlengthlength of string
nothrow voidsetString(ref const OutBufferbuf);
Set to contents of buf
Parameters:
OutBufferbufstring (not zero terminated)
nothrow voidsetString();
Set to empty string
nothrow const(char)[]toString() const;
Returns:
a zero-terminated string representation of the token, sometimes reusing a static buffer, sometimes leaking memory
nothrow voidwriteCharLiteral(ref OutBufferbuf, dcharc);
Write a character, using a readable escape sequence if needed
Useful for printing "" string literals in e.g. error messages, ddoc, or the.stringof property
Parameters:
OutBufferbufbuffer to append character in
dcharccode point to write
nothrow voidwriteSingleCharLiteral(ref OutBufferbuf, dcharc);
Write a single-quoted character literal
Useful for printing '' char literals in e.g. error messages, ddoc, or the.stringof property
Parameters:
OutBufferbufbuffer to append character in
dcharccode point to write
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 12:43:30 2026

[8]ページ先頭

©2009-2026 Movatter.jp