Some time ago I posted some code to save and restore (almost) arbitrary
data-structures. This save_data and restore_data facility is very
flexible. Essentially it visits every data-item reachable from the root
it is given and performs a user-specifyable action at each. By default
save_data creates a file that can just be read back with restore_data,
but it can be used to write a C-program that will recreate an equivalent
structure to the original POP one... It will in particular treat circular
structures. I have a new version that corrects certain bugs (e.g. it
will now save Prolog terms).
Robin.
|