Start from a main routine: Difference between revisions

Added Algol 68
(Added Algol 68)
Line 20:
Ada.Text_IO.Put_Line("Bar");
end Foo;</lang>
 
=={{header|ALGOL 68}}==
An Algol 68 program consists of a sequence of declarations and expressions. The expressionss are executed and so form the main program.
<lang algol68>BEGIN
print( ( "Hello, World!", newline ) )
END</lang>
 
=={{header|AutoHotkey}}==
AutoHotkey always starts at the top of the script. A main() function can be called from there, or event hooks set.
 
=={{header|AWK}}==
 
3,048

edits