Command Files

Files that contain SPECTRA commands are invoked by:
SPECTRA> run file_name[.gra] [a1 [a2 ...]]
The arguments (a1, a2, ...) are copied to a stack. They are accessible through the variables verb or the arg() function. The number of arguments is returned by n_arg(). Command files may be executed recursivly, i.e. a files can call other files.

The return status of command files can be set with the end statement. It is tested with gra_status().

An example for variables can be found in section 15.3.80, for arg() in section 14.5.1.



Subsections