HP 3000 Manuals

SKIP_TEXT [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

SKIP_TEXT 

SKIP_TEXT is an HP Pascal Option.

The compiler ignores everything between $SKIP_TEXT ON$ and $SKIP_TEXT
OFF$.

Syntax 

$SKIP_TEXT {ON }$
           {OFF}

Default       OFF

Location      Anywhere.

Example 

     PROGRAM show_skiptext (output);
     BEGIN
        writeln('This will print.');
        $SKIP_TEXT ON$
        writeln('This won''t print.');
        $SKIP_TEXT OFF$
        writeln('This will print.');
     END.

The preceding program prints:

     This will print.
     This will print.

There is one exception to how SKIP-TEXT works.  Symbols that begin a
comment ({ or (*) are recognized and cause text to be commented out until
a closing comment symbol (} or *)) is encountered.

Example 

        0     1.000   0   PROGRAM show_skiptext_exception (output);
        0     2.000   1   BEGIN
        0     3.000   1      writeln('This will print.');
        1     4.000   1   $SKIP_TEXT ON$
       **     5.000   1      (* This unclosed comment causes the following option
       **     6.000   1         to be considered part of the comment:
       **     7.000   1   $SKIP_TEXT OFF$
       **     8.000   1      writeln('This will not print because the ');
       **     9.000   1      writeln('"skip_text off" option was commented out.');
       **    10.000   1       Comment is closed on the next line.
       **    11.000   1      *)
        1    12.000   1   $SKIP_TEXT OFF$
        1    13.000   1      writeln('This also will print.');
        2    14.000   1   END.

Output:

     This will print.
     This also will print.



MPE/iX 5.0 Documentation