END INDEX

END _ _ _ _ _ _ _ _ _ _ _ _ command

The command end has two main uses:

_ _ _ (i) as the ending of a begin...end block; and

_ _ _ (ii) to end input from a file.

In a begin...end block, there need not be a delimiter (; or $) before the end, though there must be one after it, or a right bracket matching an earlier left bracket.

Files to be read into REDUCE should end with end;, which must be preceded by a semicolon (usually the last character of the previous line). The additional semicolon avoids problems with mistakes in the files. If you have suspended file operation by answering n to a pause command, you are still, technically speaking, ``in" the file. Use end to exit the file.

An end at the top level of a program is ignored.