CrankDoc.tioga
Michael Plass, March 23, 1993 12:57 pm PST
Crank
CEDAR 10.1 —
Crank
Michael F. Plass
© Copyright 1987, 1993 Xerox Corporation. All rights reserved.
Abstract: We posed ourselves the problem of translating a fairly large piece of Cedar code (the Imager) into Lisp. The first (Cedar) half is called the "Crank" (since the phrase "turning the crank" kept coming up), and the second (Lisp) half is called the "Grinder" (since initially we expected it to produce hamburger).
Created by: Michael Plass
Maintained by: Michael Plass:PARC:Xerox
Keywords: Cedar language, compiler, translator, Lisp, programming tools
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

1. Commands
Crank <name>
Reads the named file, writes the corresponding .sexpr file in the current working directory. If <name> does not specify the full path name, the current working directory is checked first, and then the version map is consulted. The same search rules (current working directory, then version map) are applied for any dependencies.
CrankPrinter <name>
Reads the named file, which should be an interface. Say the module name is Mumble; then CrankPrinter writes MumblePrintImpl.mesa; MumblePrintImpl knows how to print REFs to types in the Mumble interface, and registers itself with a module named RefPrint. This is a hack for making early PCedar debugging less painful.
UpdateCLImager
a command file that copies all the new .sexpr files from the current working directory to [qv]<CLImager>Plass>
NoteNewPlaintextSources
Looks for new released versions of the Imager files on [qv]<CLImager>PlainTextCedar> and updates the latter as needed.