Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework


The Delphi Character Set and Basic Syntax



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə42/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   38   39   40   41   42   43   44   45   ...   294
DelphiLanguageGuide

The Delphi Character Set and Basic Syntax
On the simplest level, a program is a sequence of tokens delimited by separators. A token is the smallest meaningful
unit of text in a program. A separator is either a blank or a comment. Strictly speaking, it is not always necessary to
place a separator between two tokens; for example, the code fragment
Size:=20;Price:=10;
is perfectly legal. Convention and readability, however, dictate that we write this as
Size := 20;
Price := 10;
Tokens are categorized as special symbols, identifiers, reserved words, directives, numerals, labels, and character
strings. A separator can be part of a token only if the token is a character string. Adjacent identifiers, reserved words,
numerals, and labels must have one or more separators between them.
Special Symbols
Special symbols are non-alphanumeric characters, or pairs of such characters, that have fixed meanings. The
following single characters are special symbols:
# $ & ' ( ) * + , - . / : ; < = > @ [ ] ^ { }
The following character pairs are also special symbols:
(* (. *) .) .. // := <= >= <>
The following table shows equivalent symbols:
25



Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   38   39   40   41   42   43   44   45   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin