Trailing-Edge
-
PDP-10 Archives
-
decuslib20-03
-
decus/20-0078/util/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;