Warning: Parameter 3 to renderTablelist() expected to be a reference, value given in /home/acad/acain/www/htdocs/mediawiki/includes/parser/Parser.php on line 3243

Warning: Parameter 3 to renderTablelist() expected to be a reference, value given in /home/acad/acain/www/htdocs/mediawiki/includes/parser/Parser.php on line 3243

Warning: Parameter 3 to renderTablelist() expected to be a reference, value given in /home/acad/acain/www/htdocs/mediawiki/includes/parser/Parser.php on line 3243
Pascal - Identifiers - SwinBrain

Pascal - Identifiers

From SwinBrain

Identifiers are used in programming languages to "identify" or name a keyword, variable, constant, function, procedure, type, or program.

Identifiers

Identifiers in pascal can have up to 255 significant characters, meaning that the first 255 characters of each identifier must be unique. Identifiers in pascal must abide by the following syntax diagram.

ref8x.png

Here are some examples of valid identifiers.


Reserved Words

A reserved word is a valid identifier that is used to identify something within the programming language itself. This means that these identifiers cannot be used to identify variables, etc. within your programs.


Modifiers

Pascal also has the following modifiers. These identifiers have special meaning to the compiler, but can also be used as identifiers within your programs. As these do have special meaning to the compiler they are best avoided as identifiers within your programs.


Note: Predefined types such as Byte, Boolean and constants such as maxint are not reserved words. They are identifiers, declared in the system unit. This means that these types can be redefined in other units. The programmer is, however, not encouraged to do this, as it will cause a lot of confusion.

[edit]Pascal: Programs | Functions and Procedures | Statements | Data Types | Identifiers | ...
Links: Topic Brains
Return to Swin Brain