Google
 

Trailing-Edge - PDP-10 Archives - decuslib20-04 - decus/20-0135/07/cocos.blb
There are 4 other files named cocos.blb in the archive. Click here to see a list.
        COCOS - Conditional Compilation in SIMULA
        =========================================

     COCOS is a program to allow one SIMULA source program to
     compile into several differing programs. A preprocessor selects
     statements from the initial source program according to
     selection statements. The initial source program can also be
     compiled directly as one of the versions.

     Example:                            Output:
     BEGIN                               BEGIN
     %COCOS GERMAN = FALSE;              outtext("I am.");
     %IF GERMAN;                         outimage;
     outtext("Ich bin.");                END;
     %IFNOT GERMAN;
     outtext("I am.");
     %IFEND GERMAN;
     outimage;
     END;