Directive (programming): Difference between revisions

Content deleted Content added
markup code
Line 35:
 
A common use of pragmats in ALGOL 68 is in specifying a [[Stropping (syntax)|stropping]] regime, meaning "how keywords are indicated". Various such directives follow, specifying the POINT, UPPER, RES (reserved), or quote regimes. Note the use of stropping for the '''pragmat''' keyword itself (abbreviated '''pr'''), either in the POINT or quote regimes:
{{sxhl|2=man|1=
.PR POINT .PR
.PR UPPERPOINT .PR
.PR RESUPPER .PR
.PR POINTRES .PR
'pr' quote 'pr'
 
}}
Today directives are best known in the C language, of early 1970s vintage, and continued through the current [[C99]] standard, where they are either instructions to the [[C preprocessor]], or, in the form of <code>#pragma</code>, directives to the compiler itself. They are also used to some degree in more modern languages; see below.