SWITCH BASIC
! RSTS RSX command file built on Wed Jun 12 16:15:42 1985
!
! Edit the following line to redefine tool source, output, and protection
!
ASSIGN DK: SRC
ASSIGN DK: BIN
ASSIGN <40>
!
! ** Compile LEX
!
pip LEXLEX.H=SRC:LEXLEX.H
pip YTAB.H=SRC:YTAB.H
xcc SRC:BASE.C 
xas BASE.S -d
xcc SRC:DFA.C 
xas DFA.S -d
xcc SRC:ECLOSU.C 
xas ECLOSU.S -d
xcc SRC:LEX.C 
xas LEX.S -d
xcc SRC:IMPURE.C 
xas IMPURE.S -d
xcc SRC:MIN.C 
xas MIN.S -d
xcc SRC:OUT1.C 
xas OUT1.S -d
xcc SRC:OUT2.C 
xas OUT2.S -d
xcc SRC:LEXSRT.C 
xas LEXSRT.S -d
xcc SRC:YTAB.C 
xas YTAB.S -d
pip LEX.TMP=_kb:
;
; ODL FOR BUILDING LEX ON RSX11M.
; BOB DENNY  29-MAY-81
; BOB DENNY  19-MAR-82
; BOB DENNY  03-MAY-82
; BOB DENNY  30-OCT-82   PUT SOME FCS JUNK IN OVERLAY. REORGANIZE FOR
;			 SIMPLICITY.
;
.NAME	OVR1
.NAME   FCSJNK
.NAME	LXPROC
.NAME	PARSER
.ROOT	L0,L1
;
L0:	.FCTR	LEX-IMPURE-OUT2-C:C/LB
;
L1:	.FCTR	OVR1-*(FCS,STAT,PARS)
;
FCS:	.FCTR	FCSJNK-(F1,F2)
;
F1:	.FCTR	LB:[1,1]SYSLIB/LB:.CSI1:.CSI2
F2:	.FCTR	LB:[1,1]SYSLIB/LB:OPEN-(OP1,OP2)
;
OP1:	.FCTR	LB:[1,1]SYSLIB/LB:CREATE:CLOSE:DEL:FINIT:MKDL:OPFNB:RQLCB
OP2:	.FCTR	LB:[1,1]SYSLIB/LB:PARSE
;
STAT:	.FCTR	LXPROC-LEXSRT-DFA-BASE-ECLOSU-MIN-OUT1-C:C/LB/LB
;
PARS:	.FCTR	PARSER-YTAB-C:C/LB/LB
;
.END

^Z
tkb 
BIN:LEX=LEX.TMP/MP
STACK = 3000
TASK  = ...LEX
;DON'T TRY TO USE FCSRES (RBD)
//
pip BIN:LEX.TSK<104>/re
pip LEX.TMP/de
pip BASE.OBJ/de
pip DFA.OBJ/de
pip ECLOSU.OBJ/de
pip LEX.OBJ/de
pip IMPURE.OBJ/de
pip MIN.OBJ/de
pip OUT1.OBJ/de
pip OUT2.OBJ/de
pip LEXSRT.OBJ/de
pip YTAB.OBJ/de
