Difference between revisions of "Left curly bracket"

From Free Pascal wiki
Jump to navigationJump to search
(review)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
<div style="float:left; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777; clear:both;">{</div>
 
<div style="float:left; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777; clear:both;">{</div>
  
The left curly bracket <syntaxhighlight lang="pascal" enclose="none">{</syntaxhighlight> is defined in [[ASCII]] as having the value is <syntaxhighlight lang="pascal" enclose="none">123</syntaxhighlight> ([[Hexadecimal|hexadecimal]] <syntaxhighlight lang="delphi" enclose="none">$7B</syntaxhighlight>).
+
The left curly bracket <syntaxhighlight lang="pascal" inline>{</syntaxhighlight> is defined in [[ASCII]] as having the value is <syntaxhighlight lang="pascal" inline>123</syntaxhighlight> ([[Hexadecimal|hexadecimal]] <syntaxhighlight lang="delphi" inline>$7B</syntaxhighlight>).
In Pascal it always appears in conjunction with a corresponding right curly bracket constituting a pair.
+
In [[Pascal]] it always appears in conjunction with a corresponding right curly bracket constituting a pair.
 
Such a pair is used to:
 
Such a pair is used to:
 
* write [[Comments#block comments|block comments]]
 
* write [[Comments#block comments|block comments]]
* [[FPC]] and Delphi interpret such comments with an initial [[Dollar sign|dollar sign]] as compiler directives, for example <syntaxhighlight lang="delphi" enclose="none">{$longStrings on}</syntaxhighlight>
+
* [[FPC]] and Delphi interpret such comments with an initial [[Dollar sign|dollar sign]] as [[Compiler directive|compiler directives]], for example <syntaxhighlight lang="delphi" inline>{$longStrings on}</syntaxhighlight>
* integrated development environments such as [[Lazarus]] interpret block comments with an initial [[Percent sign|percent sign]] as [[IDE directives]], for instance <syntaxhighlight lang="delphi" enclose="none">{%H-}</syntaxhighlight>
+
* integrated development environments such as [[Lazarus]] interpret block comments with an initial [[Percent sign|percent sign]] as [[IDE directives]], for instance <syntaxhighlight lang="delphi" inline>{%H-}</syntaxhighlight>
 
{{Symbols}}
 
{{Symbols}}

Latest revision as of 16:26, 6 August 2022

English (en)

{

The left curly bracket { is defined in ASCII as having the value is 123 (hexadecimal $7B). In Pascal it always appears in conjunction with a corresponding right curly bracket constituting a pair. Such a pair is used to:


navigation bar: topic: Pascal symbols
single characters

+ (plus)  •  - (minus)  •  * (asterisk)  •  / (slash)
= (equal)  •  > (greater than)  •  < (less than)
. (period)  •  : (colon)  •  ; (semi colon)
^ (hat)  •  @ (at)
$ (dollar sign)  •  & (ampersand)  •  # (hash)
' (single quote)

character pairs

<> (not equal)  •  <= (less than or equal)  •  := (becomes)  •  >= (greater than or equal)

 •  >< (symmetric difference)  •  // (double slash)