Content deleted Content added
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
Add text |
||
Line 3:
A '''language construct''' is a [[syntax|syntactically]] allowable part of a [[Computer program|program]] that may be formed from one or more [[lexical token]]s in accordance with the rules of a [[programming language]].<ref>{{cite web |title=ISO/IEC 2382, Information technology — Vocabulary |url=https://www.iso.org/obp/ui/#iso:std:iso-iec:2382:ed-1:v1:en}}</ref>
The term "language construct" is often used as a synonym for [[Control flow|control structure]].
[[Control flow]] statements (such as [[Conditional (computer programming)|conditionals]], [[foreach loop]]s, [[while loop]]s, etc) are language constructs, not functions. So <code>while (true)</code> is a language construct, while <code>add(10)</code> is a function call.
==Examples of language constructs==
|