Difference between revisions of "Identifier"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 5: Line 5:
 
For example, in the following piece of code:
 
For example, in the following piece of code:
  
<syntaxhighlight>
+
<syntaxhighlight lang="pascal">
 
program WittsEnd;
 
program WittsEnd;
 
const  
 
const  

Revision as of 21:15, 28 June 2019

Deutsch (de) English (en) suomi (fi) français (fr) русский (ru)

An identifer is a symbol used in a Pascal program which consists of letters, numbers and certain special characters, used to indicate a specific variable, constant, object, record, type, procedure or function.

For example, in the following piece of code:

program WittsEnd;
const 
  Y = 2;
var 
  Plugh: Integer;

procedure Xyzzy;
begin
end;

begin
  Plugh := Y * 2;
end.

we can say that

  • WittsEnd
  • Y
  • Plugh
  • Xyzzy

Are all identifiers.