Difference between revisions of "Left curly bracket"

From Free Pascal wiki
Jump to navigationJump to search
(review)
Line 4: Line 4:
  
 
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" 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>).
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" enclose="none">{$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" enclose="none">{%H-}</syntaxhighlight>
 
{{Symbols}}
 
{{Symbols}}

Revision as of 16:24, 19 March 2019

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)