Difference between revisions of "Do"
From Free Pascal wiki
Jump to navigationJump to searchJwdietrich (talk | contribs) |
m (→occurences: link article statement) |
||
(8 intermediate revisions by 6 users not shown) | |||
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]]. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | == occurences == | ||
+ | <syntaxhighlight lang="pascal" inline>do</syntaxhighlight> usually separates a language construct from an associated (compound) [[statement]]. | ||
+ | * loops | ||
+ | ** [[For|<syntaxhighlight lang="pascal" inline>for</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>to</syntaxhighlight> … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight> | ||
+ | ** [[While|<syntaxhighlight lang="pascal" inline>while</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight> | ||
+ | * [[Identifier|identifier]] scope lookup routing: [[With|<syntaxhighlight lang="pascal" inline>with</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight> | ||
+ | * [[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> | ||
+ | * 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> | ||
{{Keywords}} | {{Keywords}} | ||
− | |||
− |
Revision as of 22:28, 19 October 2019
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
français (fr) │
русский (ru) │
do
is a reserved word that is only used in conjunction with other keywords.
occurences
do
usually separates a language construct from an associated (compound) statement.
- loops
- identifier scope lookup routing:
with
…do
- exception handling:
try
…except
on
…do
- in extended Pascal the start of initialization and finalization parts of a module:
to begin do …;
andto end do …;
Keywords: begin — do — else — end — for — if — repeat — then — until — while