1.基本赋值语句
Code
Size := 20;
Price := 10;
Size := 20;
Price := 10;
2.特殊符号
1)单个特殊符号
# $ & ' ( ) * + , - . / : ; < = > @ [ ] ^ { }
2)成对的特殊符号
(* (. *) .) .. // := <= >= <>
3).等价的特殊符号
特殊符号
|
等价的特殊符号
|
[
|
(.
|
]
|
.)
|
{
|
(*
|
}
|
*)
|
3.注释和编译器指令
1)注释
Code
{ Text between a left brace and a right brace constitutes a comment. }
(* Text between a left-parenthesis-plus-asterisk and an asterisk-plus-right-parenthesis is also a comment *)
// Any text between a double-slash and the end of the line constitutes a comment.
{ Text between a left brace and a right brace constitutes a comment. }
(* Text between a left-parenthesis-plus-asterisk and an asterisk-plus-right-parenthesis is also a comment *)
// Any text between a double-slash and the end of the line constitutes a comment.
2)编译器指令
{$WARNINGS OFF} 说明:告诉编译器不要产生警告信息。