declare at the top level
start: ^!$
end: ^/$
The program main body is
written at the unindented top level,
starting with an
exclamation mark
and ending with a
slash:
It's like an event handler without a name.
C:
#include <stdio.h>
int main(void){
fputs("Hello World!");
}
C++:
#include <iostream>
int main(){
std::cout << "Hello World!";
}
Pascal:
Program HW1;
Begin
Write("Hello World!");
End;
JavaScript:
document.onload=function(){
document.write("Hello World!")
}
Eas:
!
SAY:"Hello World!"
/