Difference between revisions of "Keyword"

From Lazarus wiki
Jump to navigationJump to search
m
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{keyword}}
+
{{Keyword}}
<br>
 
<br>
 
A keyword is a word with a special meaning in the programming languages(See [[Reserved words|reserved words]]), it's in <b>bold</b> characters and it has a particular function. Some words (like [[Read|read]] or [[Write|write]]) are functions, not keywords.
 
<br>
 
<br>
 
  
[[Category:Glossary]]
+
A keyword is an [[Identifier|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
 +
[[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]]).
 +
 
 +
[[Lazarus]] will usually display keywords in [[Pascal]] text files ([[Source code|source code]]) in '''bold''' black characters using [[Syntax highlighting|syntax highlighting]]. Use [[IDE Window: Editor Options HighlightColors|[IDE options|Editor|Colors]]] to change.
 +
 
 +
Some very common Free Pascal words like [[Read|<syntaxhighlight lang="pascal" enclose="none">read</syntaxhighlight>]] or [[Write|<syntaxhighlight lang="pascal" enclose="none">write</syntaxhighlight>]], are in fact [[Procedure|<syntaxhighlight lang="pascal" enclose="none">procedure</syntaxhighlight>]] names, not keywords.

Revision as of 21:06, 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.