Difference between revisions of "Do"

From Lazarus wiki
Jump to navigationJump to search
(clean a bit)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{do}}
 
{{do}}
  
<syntaxhighlight lang="pascal" enclose="none">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" enclose="none">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" enclose="none">for</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">to</syntaxhighlight> … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
** [[For|{{HL|for}}]] … {{HL|to}} … {{HL|do}}
** [[While|<syntaxhighlight lang="pascal" enclose="none">while</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
** [[While|{{HL|while}}]] … {{HL|do}}
* [[Identifier|identifier]] scope lookup routing: [[With|<syntaxhighlight lang="pascal" enclose="none">with</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">do</syntaxhighlight>
+
* [[Identifier|identifier]] scope lookup routing: [[With|{{HL|with}}]] … {{HL|do}}
* exception handling: [[try|<syntaxhighlight lang="pascal" enclose="none">try</syntaxhighlight>]] … <syntaxhighlight lang="pascal" enclose="none">except on</syntaxhighlight> … <syntaxhighlight lang="pascal" enclose="none">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: {{HL|to begin do …;}} and {{HL|to end do …;}}
  
 
{{Keywords}}
 
{{Keywords}}
[[Category:Pascal]]
 
[[Category:Control Structures]]
 

Latest revision as of 00:52, 15 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