SYMBOLIC EDITOR DESCRIPTION The Symbolic Editor provides facilities for editing and updating symbolic source language programs or files. The input to the Symbolic Editor is a file to be edited, the Symbolic File, and a file of editing information, the Edit File. The output is an altered symbolic file, the Updated File. The Symbolic File and the Updated File contain a series of records, each of which is a statement of 1 to 72 ASCII charac- ters terminated by an end-of-statement mark. The Edit File contains the editing control statements and any source language statements that are to be applied to the Symbolic File. The Edit File may be entered from either the Standard Keyboard Input unit (e.g., 2752A Teleprinter) or the Standard Input unit (e.g., 2737A Punched Tape Reader) depending on the setting of Switch 15. The following editing functions are available: /I,r Insert one or more records following record r. The records to be inserted follow the control statement. /D,r1[,r2] Delete record r1, or records rl through r2. /R,r1[,r2] Replace record r1, or records r1 through t2 with the records following the control statement. /CI,r,c Insert characters following character c of record r. The char- acters to be inserted follow the control statement. /CD,r,c1[,c2] Delete character cl, or characters cl through c2 of record r with the characters following the control statement. /CR,r,c1[,c2] Replace character c1, or characters c1 through c2 off record r with the characters following the control-statement. /L Produce numbered listing of Symbolic File. /E Terminates the Edit File. If E is only control statement in Edit File, a copy is made of the Symbolic File. All sequence numbers must be in ascending order, greater than zero, and unique. A particular sequence number may be used in one statement only in the Edit File. OPERATING PROCEDURES The following procedures indicate the sequence of steps for execution of the Sym- bolic Editor: A. Set Teleprinter to LINE and check that all equipment to be used is operable. B. Load the Symbolic Editor using the Basic Binary Loader. t C. Set Switch Register to starting address of Symbolic Editor: 000100 -------------------- t The appropriate System Input/Output subroutines (drivers) are assumed to be in- cluded on the Symbolic Editor tape. 9-1 D. Press LOAD ADDRESS. E. Specify unit containing the Edit File: 1. If Edit File is to be read from the 2752A Teleprinter keyboard or reader, set Switch 15 to 1 (up) position. The Edit File is printed as it is read. 2. If Edit File is to be read from the Standard Input unit, set Switch 15 to 0 (down) position. Either type in editing information or place Edit File tape in read unit. F. Press RUN. During the reading of the Edit File, the following halts may occur: Teleprinter T-Register Message Contents Explanation Action none 102002 Loading of the Edit File Place Symbolic tape in is complete. the input unit. END OF TAPE 102001 Physical end of tape has Place next Edit File tape been detected, but /E in reader or, set Switch control statement not 15 to up position, to type encountered. control statements on Teleprinter keyboard. EDIT 102000 Number of records in Prepare smaller Edit OVERFLOW Edit File exceeds avail- File and restart the run. able core; the run is ter- minated. CS ERR 102004 a) Illegal control state- a) To delete control control statement ment code. statement and con- tinue, press RUN. b) Missing parameter. b) To correct control c) Second sequence pa- statement: rameter less than first. (1) Set Switch 15 to up position. (2) Press RUN. (3) Type correct statement up to but not including (LF). (4) If Edit File is be- ing read from Standard Input unit, set Switch 15 to down position. (5) Type (LF). ILLEGAL 102004 An r or c parameter is See Action for CS ERR. VALUE not numeric or is great- er than 4 digits (r) or 2 digits (c). 9-2 Teleprinter T-Register Message Contents Explanation Action SEQUENCE 102004 The sequence numbers See Action for CS ERR. ERROR in the control statement (control statement) are less than previous sequence numbers. G. When the Edit File has been read successfully, place Symbolic File tape in in- put unit and turn on punch unit. H. Press RUN. During processing of the Symbolic File, the following halts may occur: Teleprinter T-Register Message Contents Explanation Action END OF TAPE 102003 Physical end of tape has a) If all tapes of the Sym- been detected for Sym- bolic File have been bolic File. read, set all switches to down (0) position. The remaining part of the editing run is to be completed. b) If another tape is to be processed, set any switch of Switch Reg- ister to up and place tape in reader. SEQUENCE 102004 The sequence numbers To delete control state- ERROR in the control statement ment and bypass any re- (control statement) exceed the range of the lated Edit File source Symbolic File. records and continue, press RUN. INSERT ERROR 102004 No symbolic statements See Action for SE- REPLACE ERROR follow an Insert or Re- QUENCE ERROR. (control statement) place (record or char- acter) control state- ment. CS ERROR 102004 A value of a character To ignore control state- (control statement) position parameter in a ment and transfer orig- CI or CR control state- inal record from Sym- ment is greater than the bolic File to Updated number of characters in File, press RUN. the record being edited. CHAR OV 102004 The new record result- See Action for CS ERR- (control statement) ing from character edit- OR. ing exceeds the maxi- mum length of 72 char- acters. I. To continue the editing process, press RUN. 9-3 J. On completion of edit run the Symbolic Editor halts with the T-Register con- taining 102077. K. To perform another edit run, start at Step C. 9-4