Difference between revisions of "Do"

From Free Pascal wiki
Jump to navigationJump to search
m (→‎occurences: link article statement)
(clean a bit)
 
Line 1: Line 1:
 
{{do}}
 
{{do}}
  
<syntaxhighlight lang="pascal" inline>do</syntaxhighlight> is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]].
+
The {{HL|do}} keyword is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]].
  
 
== occurences ==
 
== occurences ==
<syntaxhighlight lang="pascal" inline>do</syntaxhighlight> usually separates a language construct from an associated (compound) [[statement]].
+
The keyword {{HL|do}} usually separates a language construct from an associated (compound) [[statement]].
  
 
* loops
 
* loops
** [[For|<syntaxhighlight lang="pascal" inline>for</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>to</syntaxhighlight> <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
+
** [[For|{{HL|for}}]] … {{HL|to}} {{HL|do}}
** [[While|<syntaxhighlight lang="pascal" inline>while</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
+
** [[While|{{HL|while}}]] … {{HL|do}}
* [[Identifier|identifier]] scope lookup routing: [[With|<syntaxhighlight lang="pascal" inline>with</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
+
* [[Identifier|identifier]] scope lookup routing: [[With|{{HL|with}}]] … {{HL|do}}
* [[Exceptions|exception]] handling: [[Try|<syntaxhighlight lang="pascal" inline>try</syntaxhighlight>]] … [[Except|<syntaxhighlight lang="pascal" inline>except</syntaxhighlight>]] <syntaxhighlight lang="pascal" inline>on</syntaxhighlight> <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
+
* [[Exceptions|exception]] handling: [[Try|{{HL|try}}]] … [[Except|{{HL|except}}]] {{HL|on}} {{HL|do}}
* in [[Extended Pascal|extended Pascal]] the start of initialization and finalization parts of a module: <syntaxhighlight lang="pascal" inline>to begin do …;</syntaxhighlight> and <syntaxhighlight lang="pascal" inline>to end do …;</syntaxhighlight>
+
* in [[Extended Pascal|extended Pascal]] the start of initialization and finalization parts of a module: {{HL|to begin do …;}} and {{HL|to end do …;}}
  
 
{{Keywords}}
 
{{Keywords}}

Latest revision as of 23:52, 14 October 2020

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

The do keyword is a reserved word that is only used in conjunction with other keywords.

occurences

The keyword do usually separates a language construct from an associated (compound) statement.


Keywords: begindoelseendforifrepeatthenuntilwhile