内容源自Delphi XE5 UPDATE 2官方帮助《Delphi Reference》,本人水平有限,欢迎各位高人修正相关错误!
也欢迎各位加入到Delphi学习资料汉化中来,有兴趣者可QQ:34484690@qq.com
Fundamental Syntactic Elements
第三章 基本语法元素
Fundamental syntactic elements, called tokens, combine to form expressions, declarations, and statements. A statement describes an algorithmic action that can be executed within a program. An expression is a syntactic unit that occurs within a statement and denotes a value. A declaration defines an identifier (such as the name of a function or variable) that can be used in expressions and statements, and, where appropriate, allocates memory for the identifier.
基本语法元素被称为tokens,它们组合起来构成表达式、声明和命令语句。命令语句描述算法行为,它是可执行的;表达式是一个语法单元,它出现在命令语句中并表示一个值;声明定义一个标识符(比如函数或变量的名称),可以用在表达式或命令语句中,并在适当的地方为标识符分配内存。
token就是把程序的语句进行类似分词得到的单词。是系统中的唯一标识。
This topic introduces the Delphi language character set, and describes the syntax for declaring:
本主题介绍了Delphi语言的字符集,并介绍了语法声明:
Identifiers
标识符
Numbers
数字
Character strings
字符串
Labels
标签
Source code comments
源代码注释