<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Language_construct</id>
	<title>Language construct - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Language_construct"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Language_construct&amp;action=history"/>
	<updated>2026-10-26T01:01:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Language_construct&amp;diff=1651568&amp;oldid=prev</id>
		<title>imported&gt;Covert23: basic grammar clarification</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Language_construct&amp;diff=1651568&amp;oldid=prev"/>
		<updated>2024-07-07T22:03:45Z</updated>

		<summary type="html">&lt;p&gt;basic grammar clarification&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Syntactically valid part of a program formed from lexical tokens}}&lt;br /&gt;
{{More sources|date=January 2021}}&lt;br /&gt;
&lt;br /&gt;
In [[computer programming]], a &amp;#039;&amp;#039;&amp;#039;language construct&amp;#039;&amp;#039;&amp;#039; is &amp;quot;a [[Syntax (programming languages)|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 the [[programming language]]&amp;quot;, as defined by in the [[ISO/IEC 2382]] standard ([[ISO/IEC JTC 1]]).&amp;lt;ref name=&amp;quot;ISO/IEC 2382&amp;quot;&amp;gt;{{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}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;term&amp;#039;&amp;#039;&amp;#039; is defined as a &amp;quot;linguistic construct in a [[conceptual schema]] language that refers to an entity&amp;quot;.&amp;lt;ref name=&amp;quot;ISO/IEC 2382&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While the terms &amp;quot;language construct&amp;quot; and &amp;quot;control structure&amp;quot; are often used synonymously, there are additional types of logical constructs within a computer program, including [[variable (computer science)|variables]], [[expression (computer science)|expressions]], [[function (computer science)|functions]], or [[modular programming|modules]].&lt;br /&gt;
&lt;br /&gt;
[[Control flow]] statements (such as [[Conditional (computer programming)|conditionals]], [[foreach loop]]s, [[while loop]]s, etc) are language constructs, not [[Subroutine|function]]s. So &amp;lt;code&amp;gt;while (true)&amp;lt;/code&amp;gt; is a language construct, while &amp;lt;code&amp;gt;add(10)&amp;lt;/code&amp;gt; is a function call.&lt;br /&gt;
&lt;br /&gt;
==Examples of language constructs==&lt;br /&gt;
In [[PHP]] &amp;lt;code&amp;gt;print&amp;lt;/code&amp;gt; is a language construct.&amp;lt;ref&amp;gt;{{Cite web |title=PHP: print - Manual |url=https://www.php.net/manual/en/function.print.php |access-date=2022-11-18 |website=www.php.net}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
print &amp;#039;Hello world&amp;#039;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is the same as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
print(&amp;#039;Hello world&amp;#039;);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Language Construct}}&lt;br /&gt;
[[Category:Programming constructs]]&lt;br /&gt;
&lt;br /&gt;
In Java a [[class (computer programming)|class]] is written in this format:&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class MyClass {&lt;br /&gt;
    //Code . . . . . .&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In C++ a class is written in this format:&amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
class MyCPlusPlusClass {&lt;br /&gt;
    //Code . . . .&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}{{Compu-lang-stub}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Covert23</name></author>
	</entry>
</feed>