execdict begin
clearinterrupt disableinterrupt
/execdepth execdepth 1 add def
(\nPostScript(tm) Version ) print version print
(\n\nCopyright (c) 1985 Adobe Systems Incorporated.\n) print
{ % loop ...
/quitflag false def
$error /newerror false put
% execute prompt
/prompt load stopped
{ % if stopped ...
handleerror
(Error during prompt execution\n) print
exit
} if
{ % open (%statementedit) ...
mark idleproc clearinterrupt
/stmtfile (%statementedit) (r) file def
disableinterrupt
} stopped
{ % if stopped ...
disableinterrupt cleartomark
$error /newerror get { % if ...
$error /errorname get
/undefinedfilename ne { % if ...
handleerror
} if
$error /newerror false put
exit
} if
}
{ % if not stopped ...
pop
stmtfile
end % execdict
{ clearinterrupt cvx exec disableinterrupt } stopped
execdict begin
{ % if stopped ...
disableinterrupt
handleerror
stmtfile closefile
} if
} ifelese
checkquit
} loop
/quitflag false def
/execdepth execdepth 1 sub def
end % execdict