.split("/n").join(";")
in C
#include <studio.h>#include <stdlib.h>
won't work. In perl, strings with literal new lines or here docs will break (terminator must be on a line by itself)Any language with 'comment till end of line' would break.
Any language that does not use semicolons as statement terminator or separator such as Forth, Postscript, and XML-based languages wouldn't like the inserted semicolons.
Even pascal would break, as it has a few places where repeated semicolons are illegal, as in the third line of
type
T = record
a : integer;
end;
Algol has a problem changing if x=4 then y:=5
else y:=6;
into if x=4 then y:=5;else y:=6;
Because a semicolon is a statement separator in Algol (I think pascal has this problem, too)So, can anybody suggest a language where this would work?