4.2.2 Annotated examples Program with unusual syntax

Assume that you had a natural language preprocessor for a program that took an unusual syntax. You then could write the following code:

(defun run-strange-interactive-program-smartly (args)
  (with-open-stream (strange (run-program 
                              :input :stream
                              :output :stream
                              :error-output :output
                              :wait nil
                              (strangify-arguments args)))
                       (read-english-command *standard-input*))
                        (read-strange-response strange))

This program has the following effects:

The Advanced User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker