CommandToolProceduresDoc.tioga
Spreitzer, August 15, 1985 2:00:49 pm PDT
CommandToolProcedures
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
CommandToolProcedures
Mike Spreitzer
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: CommandToolProcedures adds some interpreter procedures that are useful to invoke from a command tool (and maybe an interpreter tool too!): &cmd (execute command in command tool), &stdin, &stdout, &stderr (get streams from command tool), and &printRope (print on command tool).
Created by: Mike Spreitzer
Maintained by: Mike Spreitzer <Spreitzer.pa>
Keywords: Command, Command Tool, Interpreter, Function, Procedure, Print, Execute, STREAM, stdin, stdout, stderr
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
1. The procedures
&cmd: PROC [command: ROPE] RETURNS [result: REF ANY]
Executes the command in the command tool this is being interpreted in.
&stdin, &stdout, &stderr: PROC [] RETURNS [IO.STREAM]
These procedures get streams from the command tool.
&printRope: PROC [ROPE] RETURNS [ROPE--the argument--]
Prints the ROPE on the output stream of the command tool.