tailieunhanh - The D Programming Language

There are no digraphs or trigraphs in D. The source text is split into tokens using the maximal munch technique, ., the lexical analyzer tries to make the longest token it can. For example is a right shift token, not two greater than tokens | The D Programming Language Format BOM UTF-8 EF BB BF UTF-16BE FE FF UTF-16LE FF FE UTF-32BE 00 00 FE FF UTF-32LE FF FE 00 00 UTF-8 none of the above There are no digraphs or trigraphs in D. The source text is split into tokens using the maximal munch technique . the lexical analyzer tries to make the longest token it can. For example is a right shift token not two greater than tokens. End of File EndOfFile physical end of the file u0000 u001A The source text is terminated by whichever comes first. End of Line EndOfLine u000D u000A u000D u000A EndOfFile There is no backslash line splicing nor are there any limits on the length of a line. White Space WhiteSpace Space Space WhiteSpace Space u0020 u0009 u000B u000C EndOfLine Comment White space is defined as a sequence of one or more of spaces tabs vertical tabs form feeds end of lines or comments. Comments Comment Characters Characters EndOfLine Characters 24 The D Programming Language D has three kinds of comments 1. Block comments can span multiple lines but do not nest. 2. Line comments terminate at the end of the line. 3. Nesting comments can span multiple lines and can nest. Comments cannot be used as token concatenators for example abc def is two tokens abc and def not one abcdef token. Identifiers Identifier IdentiferStart IdentiferStart IdentifierChars IdentifierChars IdentiferChar IdentiferChar IdentifierChars Identifierstart Letter IdentifierChar IdentiferStart Digit Identifiers start with a letter or _ and are followed by any number of letters _ or digits. Identifiers can be arbitrarilly long and are case sensitive. Identifiers starting with_are reserved. String Literals StringLiteral SingleQuotedString DoubleQuotedString EscapeSequence SingleQuotedString SingleQuotedCharacters SingleQuotedCharacter Character EndOfLine DoubleQuotedString DoubleQuotedCharacters DoubleQuotedCharacter Character EscapeSequence EndOfLine EscapeSequence a b .