home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ENTERPRS
/
C64
/
B2UTIL
/
KYANPSCL.LNX
/
readme.seq
< prev
Wrap
Text File
|
2000-06-30
|
4KB
|
189 lines
KYAN PASCAL - IMPORTANT NOTES...
----------- ------------------
COMMANDS CONCERNING THE PASCAL EDITOR
B [FILE] --> BUILD OBJECT FILE
THIS COMMAND ALLOWS YOU TO MAKE A
STAND ALONE VERSION OF YOUR
COMPILED PROGRAM. ONLY THEN IS IT
EXECUTABLE FROM BASIC (WHEN YOU
TURN ON YOUR COMPUTER)
C [FILE] --> COMPILE SOURCE CODE
THIS COMMAND COMPILES THE FILE
SPECIFIED FILE TO DISK SO IT CAN BE
RUN FROM THE SHELL. THE COMPILED
VERSION WILL HAVE "$" ADDED TO THE
FILENAME
E [FILE] --> EDIT SOURCE CODE
THIS IS THE EDITOR WHERE THE PASCAL
SOURCE CODE IS WRITTEN
F [FILE] --> PUT FILE IN MEMORY
THIS COMMAND PUTS THE SPECIFIED
NAME OF A FILE INTO MEMORY, SO
FREQUENT RETYPING OF THE FILENAME
IS NOT NEEDED. "B", "C", "E", "P",
OR "R" MAY BE USED WITHOUT A
FILENAME. IF NO FILENAME IS IN
MEMORY, WHEN A FILENAME IS NOT
SPECIFIED, "NONAME" WILL BE
ASSIGNED.
P [FILE] --> PRINT FILE TO PRINTER
THIS COMMAND GENERATED A HARDCOPY
OF THE SOURCE CODE OF THE FILE
SPECIFIED
R [FILE] --> RUN FILE
ONCE A FILE HAS BEEN SUCCESSFULLY
COMPILED TO DISK, THIS COMMAND
ALLOWS THE PROGRAM TO BE RUN
DISK RELATED AND OTHER COMMANDS
PERTAINING TO THE MENU
Q --> QUIT KYAN PASCAL
D --> VIEW DIRECTORY
- --> CHECK DRIVE STATUS
-C0:NEWFILE=FILE --> COPY FILE TO
NEWFILE
THIS COMMAND ALLOWS MULTIPLE COPIES
OF THE SAME SOURCE CODE TO BE
GENERATED
-C0:NEWFILE=FILE1,FILE2,... --> MERGE
THIS COMMAND ALLOWS THE LINKING OF
SEVERAL FILE TOGETHER TO MAKE ONE
LARGE FILE
-R0:NEWNAME=OLDNAME --> RENAME FILE
THE FILE NAME CAN BE CHANGED USING
THIS COMMAND
-S0:FILE --> DELETE (SCRATCH) FILE
THIS COMMAND DELETES "FILE" FROM
THE WORK DISK
MISCELLANEOUS
1. TO STOP A PROGRAM IN AN INFINITE
LOOP, PRESS RUN/STOP + RESTORE TO
RETURN TO THE MENU PROMPT
2. IT IS A GOOD IDEA TO ADD AN EXTRA
LINE AT THE END OF THE SOURCE CODE
FILE FOR PRINTING PURPOSES
INFORMATION CONCERNING TEXTFILES
'-' DENOTES A SPACE
<EOLN> DENOTES END OF LINE
<EOF> DENOTES END OF FILE
DUE TO AN UNEXPLAINABLE QUIRK,
A. THEáEND OF A LINE IN A DATAFILE
IS ALWAYS PRECEDED BY A SPACE
B. WHEN CREATING DATAFILES IN
GENERAL THEY MUST END ON A
SEPARATE LINE
C. FILENAMES FOR DATAFILES MUST BE
EXACTLY 8 CHARACTERS IN LENGTH
I.E. FILE: DATAFILE
THIS-IS-A-TEXTFILE.-<EOLN>
-<EOLN> (* EMPTYLINE *)
LAST-LINE,-DONE!!!-<EOLN>
-<EOF>
D. WHEN READING FROM OR WRITING TO
A DATAFILE, TO PROMPT THE FILE
POINTER TO GOTO THE NEXT LINE,
A SIMPLE :
READLN(DATAFILE) OR
WRITELN(DATAFILE)
CANNOT BE USED. SOMETHING MUST
BE READ IN FROM OR WRITTEN TO
THE FILE :
READLN(DATAFILE, CH)
IS SUFFICIENT, BECAUSE THERE IS
AN EXTRA SPACE BEFORE THE <EOLN>
MARKER. IN THE CASE OF WRITING
TO THE FILE :
WRITELN(DATAFILE, ' ')
CAN BE USED TO PUT AN <EOLN>
MARKER TO SIGNAL THE END OF THE
LINE, OR TO PRINT AN BLANK LINE
SAMPLE PROGRAM FOR READING DATAFILE
PROGRAM SAMPLE(INPUT, OUTPUT,
INDATAFL, OTDATAFL);
(* THIS PROGRAM REPLACES THE SPACES
BETWEEN THE WORDS OF TEXT IN
INDATAFL WITH "*" IN OTDATAFL *)
VAR
INDATAFL,
OTDATAFL : TEXT;
CH : CHAR;
BEGIN (* READFILE *)
RESET(INDATAFL);
REWRITE(OTDATAFL);
WHILE NOT EOF(INDATAFL) DO
BEGIN
WHILE NOT EOLN(INDATAFL) DO
BEGIN
READ(INDATAFL, CH);
IF CH = ' '
THEN CH := '*';
WRITE(OTDATAFL, CH)
END;
READ(INDATAFL, CH);
WRITELN(OTDATAFL, CH)
END
END. (* READFILEá*)
GRAPHICS