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 using
			a local clone.
		
	dmd.tokens
Defines lexical tokens.
Specification Tokens
Authors: 
License: 
Source tokens.d
Documentation https://dlang.org/phobos/dmd_tokens.html
- 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_t lengthlength of string 
- nothrow voidsetString(ref const OutBufferbuf);
- Set to contents of bufParameters:OutBuffer bufstring (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 neededUseful for printing "" string literals in e.g. error messages, ddoc, or the .stringof propertyParameters:OutBuffer bufbuffer to append character in dchar ccode point to write 
- nothrow voidwriteSingleCharLiteral(ref OutBufferbuf, dcharc);
- Write a single-quoted character literalUseful for printing '' char literals in e.g. error messages, ddoc, or the .stringof propertyParameters:OutBuffer bufbuffer to append character in dchar ccode point to write 
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:39 2025