executable statement
英 /ˈeksɪkjuːtəbl ˈsteɪtmənt/美 /ˈɛksɪˌkjutəbl ˈsteɪtmənt/
n. 名词短语
可执行语句;在程序中能够被运行并产生效果的语句
编程中可被执行的语句,区别于声明或注释。本义指在编程语言中,一条能够被计算机实际执行并产生某种操作或效果的语句。它通常包含赋值、函数调用、控制流(如条件、循环)、输入输出等操作,与声明(declaration)、定义(definition)或注释(comment)相对。
用法须知
executable statement 是名词短语,可数。常见句型包括:主语 + 谓语 + 宾语(如 The compiler checks each executable statement.);介词短语(如 in an executable statement)。易错点:不可与 executive statement(行政声明)混淆;executable 是形容词,修饰 statement,而非动词。在编程语境中,通常用单数形式指代一类语句,复数形式 executable statements 指多条可执行语句。注意区分 executable 与 executional(较少用),后者不是标准术语。
近义比较
与 executable statement 意思相近的词组有 executable code(可执行代码)、executable instruction(可执行指令)、command(命令)等。executable code 通常指已编译或可运行的二进制代码,范围比语句大;executable instruction 多指机器级指令,而 executable statement 多指高级语言中的语句。command 强调用户发出的操作命令,不特指程序语句。在编程语境中,executable statement 更强调语句在源代码层面的可执行性,与声明性语句(declarative statement)相对。选择时需根据语境:描述源代码结构用 executable statement,描述运行时代码用 executable code。