MetaCedarDoc.tioga
Michael Plass, September 27, 1985 5:36:27 pm PDT
MetaCedar
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
MetaCedar
Michael Plass
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: MetaCedar allows the use of Cedar as a meta-language for generating Cedar code, sort of a poor-man's macro expander. It is most useful for unrolling loops and such.
Created by: Michael Plass
Maintained by: Michael Plass <Plass.pa>
Keywords: hack, macro
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
MetaCedar foo
Reads the file foo.meta and writes foo.mesa. The input file looks like a cedar-mesa file, except that things within placeholder brackets () and after ampersands are treated specially. The code within placeholders is executed at pre-processor time. The identifiers after ampersands are treated as meta-variables, and are evaluated at pre-processor time (i.e., &s is short for PutInt[s], where PutInt is a procedure supplied by MetaCedar at pre-processor time). The output is indented according to some simple rules. Try
% MetaCedar MetaTest
for an example.
MetaCedar is released to CedarChest primarily for the use of one package, FontTune.