Pascal pretty-printing: an example of "preprocessing with TEX"

Jean-luc Doumont · 1994

Pretty-printing a piece of Pascal code with is often done via an external preprocessor. Actually, the job can be done entirely in TEX; this paper introduces PPP, a Pascal pretty-printer environment that allows you to typeset Pascal code by simply typing \Pascal {Pascal code) \endpascal. The same approach of preprocessing with TEX - namely two-token tail-recursion around a \FIND-like macro - can be applied easily and successfully to numerous other situations.

Read the paper · More papers on PaperTik