$EXEC {General exec file to compile %0                                        }
$     {Placing .obj file in %1 (if "$" then %1 is %0, default PAS/PASX.OBJ)   }
$     {Using intrinsic.lib %2 (default INTRINSIC.LIB)                         }
$
$     {Note, this exec file is used by the Pascal compiler generation exec    }
$     {file (<CL/PAS) and all params are explicitly set there.  However, this }
$     {exec file can be used directly to just compile the compiler (or        }
$     {anything else for that matter).  You could then use the exec file      }
$     {<LINK/PAS to link it.                                                  }
$
$IF %0='' THEN
   $REQUEST %0 WITH 'Compile what text? [PAS/Pascal][.TEXT] '
$ENDIF
$
$DEFAULT %0 TO 'pas/pascal'
$
$IF %1='' THEN
   $REQUEST %1 WITH Concat('To what obj file? [', %0, 'x][.OBJ]/$ ')
$ENDIF
$
$IF %1='$' THEN
   $SET %1 TO %0
$ELSE
   $DEFAULT %1 TO Concat(%0,'x')
$ENDIF
$
$IF %2='' THEN {no special intrinsic.lib}
p%0

%1
$ELSE          {explicit intrinsic.lib in %2}
p?
%2
%0

%1
$ENDIF
g%1
%1
fd%1.i
derr.log.text
q
$ENDEXEC

