Strip block comments: Difference between revisions
m
→{{header|ALGOL W}}: corrected comments
m (→{{header|ALGOL W}}: Added note) |
m (→{{header|ALGOL W}}: corrected comments) |
||
Line 161:
% strips block comments from a source %
% the source is read from standard input and the result written to %
%
% is in cEnd. %
% As strings are fixed length in Algol W, the first space in cStart/cEnd %
% is assumed to terminate the delimiter, i.e. the comment start/end %
% delimiters cannot contain spaces. %
% If non-
% If escape is non-blank it indicates that quotes can be embedded in %
% string literals by
procedure stripBlockComments( string(32) value cStart, cEnd
; string(1) value quote1, quote2, escape
|