Difference between revisions of "Keyword"

From Free Pascal wiki
Jump to navigationJump to search
Line 1: Line 1:
 
{{Keyword}}
 
{{Keyword}}
  
A keyword is a word with a special meaning and function in a programming language.
+
A keyword is an [[Ientifier|identifier]] with a special meaning and function in a programming language.
 
Keywords include [[Reserved word|reserved words]] (such as [[Begin|<syntaxhighlight lang="pascal" enclose="none">begin</syntaxhighlight>]] or  
 
Keywords include [[Reserved word|reserved words]] (such as [[Begin|<syntaxhighlight lang="pascal" enclose="none">begin</syntaxhighlight>]] or  
 
[[While|<syntaxhighlight lang="pascal" enclose="none">while</syntaxhighlight>]]) and [[modifier]]s (such as [[Reintroduce|<syntaxhighlight lang="pascal" enclose="none">reintroduce</syntaxhighlight>]] or [[Absolute|<syntaxhighlight lang="pascal" enclose="none">absolute</syntaxhighlight>]]) (see also [[FPC|Free Pascal]] [[Reserved words|reserved words]]).  
 
[[While|<syntaxhighlight lang="pascal" enclose="none">while</syntaxhighlight>]]) and [[modifier]]s (such as [[Reintroduce|<syntaxhighlight lang="pascal" enclose="none">reintroduce</syntaxhighlight>]] or [[Absolute|<syntaxhighlight lang="pascal" enclose="none">absolute</syntaxhighlight>]]) (see also [[FPC|Free Pascal]] [[Reserved words|reserved words]]).  

Revision as of 20:04, 14 October 2020

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

A keyword is an identifier with a special meaning and function in a programming language. Keywords include reserved words (such as begin or while) and modifiers (such as reintroduce or absolute) (see also Free Pascal reserved words).

Lazarus will usually display keywords in Pascal text files (source code) in bold black characters using syntax highlighting. Use [IDE options|Editor|Colors] to change.

Some very common Free Pascal words like read or write, are in fact procedure names, not keywords.