Language construct
Encyclopedia
A language construct is a syntactically
allowable part of a program
that may be formed from one or more lexical tokens in accordance with the rules of a programming language
.
The term Language Constructs is often used as a synonym for control structure, and should not be confused with a function.
, for example,
is the same as:
Syntax
In linguistics, syntax is the study of the principles and rules for constructing phrases and sentences in natural languages....
allowable part of a program
Computer program
A computer program is a sequence of instructions written to perform a specified task with a computer. A computer requires programs to function, typically executing the program's instructions in a central processor. The program has an executable form that the computer can use directly to execute...
that may be formed from one or more lexical tokens in accordance with the rules of a programming language
Programming language
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely....
.
The term Language Constructs is often used as a synonym for control structure, and should not be confused with a function.
Examples of language constructs
In PHPPHP
PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document...
, for example,
print
is a language construct. According to http://www.php.net/manual/en/function.print.phpis the same as: