Start from a main routine: Difference between revisions

Added Seed7 example
(Removed omit from Go template.)
(Added Seed7 example)
Line 362:
# This code runs for each line of input.
s/\./!!!/g</lang>
 
=={{header|Seed7}}==
Code execution in Seed7 always starts with main. This holds for text programs:
 
<lang seed7>$ include "seed7_05.s7i";
 
const proc: main is func
begin
writeln("hello world");
end func;</lang>
 
And for grahical programs:
 
<lang seed7>$ include "seed7_05.s7i";
include "draw.s7i";
include "keybd.s7i";
 
const proc: main is func
begin
screen(200, 200);
KEYBOARD := GRAPH_KEYBOARD;
ignore(getc(KEYBOARD));
end func;</lang>
 
=={{header|Tcl}}==