system/extras/util/pp.ijs proports to pretty print.
I have been unsuccessful at getting an example to work. The
errors I get seem to be related to the verb jpath (which is
not used in pp.ijs, but I got past one error by editting the
script to use jpath, only to hang up on a line within jpath
that contains the phrase "jpathname nam").
The script pp.ijs loads into locale jpp and
contains the verb pp, so I tried executing the following
commands.
cocurrent'jpp'
pp '~system/main/stdlib.ijs'
|domain error: ucp
| dat=. ucp y
Looking at the pp.ijs script I determined that he
'y' above is supposed to be the result of
freads '~system/main/stdlib.ijs' NB. original
so I inserted jpath into that sentence as follows.
freads jpath '~system/main/stdlib.ijs' NB. revised
But then I got an error in the verb jpath itself at
the instruction "jpathname nam", so I decided to ask here in
the forum if anyone has been successful in using pp.ijs
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm