A system and method for automatically generating a gopher program is provided.
The system invokes a debugger and loads a type library into the debugger. The type
library containing information regarding each data type used in a program. The
system reads each line of a command file, wherein the command file is comprised
of literal text and one or more predefined instructions. For each predefined instruction
read, the system calls a corresponding function in the debugger and the debugger
returns a numerical offset value based upon information in the type library. The
system copies the each line of the command file to an output file, with each predefined
instruction replaced with its corresponding offset value.