expression,statement,definition ,identifier(symbol) 的区别

a statement containing executable code

a definition instantiating an identifier,

an expression evaluates to a value only

=========================================================

expression表达式

表达式是 常量、变量、操作符、函数的组合,最后通过计算返回一个值。

这个计算的过程被称作 evaluation

变量也是一个expression因为它代表着内存中的一个值

statement语句

语句包含着可执行代码

(containing executable code)

definition声明

definition会实例化一个identifier

identifier(symbol)

符号表: symbol table.

猜你喜欢

转载自www.cnblogs.com/eret9616/p/11250832.html
今日推荐