next up previous
Next: Invalid Commands Up: Command Parsing Guidelines Previous: Parameter Delimiting

Output

For all valid commands, you should print ''*****\n'' followed by a '' ==> `` and an echo of the command given. For instance, the entire valid output to EXIT() is

*****
==> EXIT()
mission complete

The sample output should make this clear. This is done to negate the effects of input redirection and to assist in grading. Note that although it is done in the samples that will appear later, you are not required to reformat the original command (fixing spacing, for instance) in any way. And, you are required to satisfy the specification as written, and not merely the sample output, which might have errors.3

At certain times multiple error messages may be applicable. In this situation, the left most error message in the BNF takes precedence. So if you have a list of errors, eg:

<error>:=<DoesNotExist>|<AlreadyExists>|<RoadAlreadyExists>

and all of the errors are applicable to this situation, you would only print the <DoesNotExist> error since it is the left most error in the BNF.



MM Hugue 2004-02-28

Web Accessibility