After you had written your program to the filesystem with the „.g“ extention (i.e. „prg.g“), you can compile your program by calling
gsys prg.g
If you see nothing everything should be fine. Else you should see error messages.
If you also want to interprete your program use the „-r“ or „–run“ switch.
gsys -r prg.g