Enter the following script into the debug console of a mission and press LOCAL EXEC. Note the lack of a closing curly brace on the spawn block.
[] spawn { while { true } do { systemchat format ["Hello %1", diag_tickTime]; sleep 1; }
Add the closing curly brace, press LOCAL_EXEC and the script will spawn.
Misspell "systemchat", press LOCAL EXEC and the compiler will report an error.