asdlGen Reference Manual
: Pickles
: Pretty Printing Pickles
asdlGen --pp_pkl [ --text | (--html [--lists|--tables]) ] file.typ file.pkl
type-id ...
asdlGen has an option that will dump pickles into either a simple
textual format or HTML. In order to display a pickle asdlGen needs
to have a description of the type environment and the name of the type
in the pickle. A description of the type environment, which produced
the pickle, is obtained by running asdlGen with the --typ option
on the set of files that describe the modules that produced the code
which produced the pickle. The resulting env.typ should be the
first file provided to asdlGen after the --pp_pkl
argument. The --output_file> option can be use to change the name
of the resulting type environment. The file that contains the pickle
comes next, and finally a list of fully qualified type identifiers
that describe the pickles in the file.
Produce a type environment
% asdlGen --typ slp.asdl --output_file=slp.typ
Produce a pickle file called slp.pkl that contains Slp.exp
and Slp.stm
% asdlGen --pp_pkl slp.typ slp.pkl Slp.exp Slp.stm
asdlGen Reference Manual
: Pickles
: Pretty Printing Pickles