V2EX  ›  英汉词典

Subexpression

定义 Definition

subexpression(子表达式):在一个更大的表达式中,作为其中一部分、可以单独看作一个表达式的片段。常见于数学编程语言正则表达式(regex)中;例如括号里的部分或运算树中的某个子节点。

发音 Pronunciation

/ˌsʌbɪkˈsprɛʃən/

例句 Examples

The calculator evaluates each subexpression inside parentheses first.
计算器会先计算括号内的每个子表达式。

In the compiler, common subexpression elimination improves performance by reusing previously computed results.
在编译器中,“公共子表达式消除”通过复用已计算结果来提升性能。

词源 Etymology

由 **sub-**(“下一级、次级、部分”)+ expression(“表达式”)构成,字面意思是“表达式的一个子部分”。该词在计算机科学语境中尤为常见,用来强调“可嵌套、可分解”的结构。

相关词 Related Words

文献与作品 Literary / Notable Works

  • Compilers: Principles, Techniques, and Tools(《编译原理:原理、技术与工具》,俗称“龙书”)
  • Structure and Interpretation of Computer Programs(《计算机程序的构造和解释》)
  • Mastering Regular Expressions(《精通正则表达式》)
  • The C Programming Language(《C 程序设计语言》)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1162 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 65ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
♥ Do have faith in what you're doing.