1: /D command option sets &DUMP to 1 so that a dump will occur at termination.
2: /Q command option (quiet) causes no information about file assignments to be displayed, turns listing off initially (-UNLIST) and sets &STAT to zero so that no execution statistics are given.
Where <user-string> is additional information on the command line you may wish to pass to the SNOBOL4.2 program. The semicolon ";" keeps SNOBOL4.2 from looking any further for file assignments or command options. The program can look at this information (as well as the file assignments) using the keyword &PARM which is a string consisting of everything after the command SNOBOL4. For example the following program residing in file program.sno:
The command SNOBOL4 is used to run SNOBOL4 programs.
The program must be stored in a file, usually
a file with an extension of .SNO.
An example program resides in the file named ENGLISH.SNO.
So in the simplest case, when you issue the command:
Note that the compilation and execution times are real time (as opposed to
cpu time) and include any waiting time during input or output.
If CON: is specified for a filespec, the input is from the keyboard
(and output is to the display monitor screen).
When SNOBOL4 is ready for some input from the keyboard, a question mark
appears on the screen.
You can then enter a line of data and press the return key when
you have finished typing the line.
The DOS editing functions are available when you enter this line.
This means that you can backspace to correct characters, for example.
See the DOS manual for a complete description of these editing functions.
To indicate an end of file from the keyboard, press the Ctrl key and
while holding it down press the Z key.
Sometimes you may wish to stop a running SNOBOL4 program before it
is finished. You can do this by pressing the Ctrl key and while holding
it down, pressing the Break key.
The SNOBOL4 program will then terminate and indicate the statement
that it was executing at the time.
This is very useful when you suspect that the program is in an
infinite loop.
You may wish to set the keyword &DUMP = 1 at the beginning of any
program you are debugging so that a dump of all of your SNOBOL4 variables
is printed at the end of the run, even when ended with Ctrl-Break.
Prior Page, Next Page, First Page of the Minnesota SNOBOL4 Reference
Figure 1. Output from ENGLISH.SNO sample program
Input from the keyboard
Interrupting your program