Prettyprinting REDUCE Expressions
Date: 2020-10-07 18:10:00

Up | Next | Prev | PrevTail | Tail

### 19.4 Prettyprinting REDUCE Expressions

REDUCE includes a module for printing REDUCE syntax in a standard format. This module is activated by the switch PRET, which is normally oﬀ.

Since the system converts algebraic input into an equivalent symbolic form, the printing program tries to interpret this as an algebraic expression before printing it. In most cases, this can be done successfully. However, there will be occasional instances where results are printed in symbolic mode form that bears little resemblance to the original input, even though it is formally equivalent.

If you want to prettyprint a whole ﬁle, say off output,msg; and (hopefully) only clean output will result. Unlike DEFN, input is also evaluated with PRET on.

Up | Next | Prev | PrevTail | Front