The pretty printer module

To compile the module generated for the basic pretty printer, we rely on a Buildfile to direct the compilation from unix, as we did for Metal. We suppose that the Buildfile has been generated by centaur-language.

Typing ctmake in the directory containing Exp-basic.ppml compiles this file into a Le-Lisp module if necessary, then compiles the module. We suggest that you only compile a module once the pretty printer specification has stabilized. Use the interpreted version during development.

N.B.

Since we will continue to develop the pretty printer, we prefer to always load the interpreted module. Make sure the following resource appears in the file: contrib/Exp/pprinters/basic/basic.rdb


Centaur.Exp.ppml.basic.Mode : interp

Don't forget to reset the resource manager by clicking on the button. When you are ready to used the compiled version of the pretty printer module, switch the value from interp to compiled.

Now we extend our pretty printer with more utilities offered by the Ppml language.


Tutorial