Files
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

1 line
1.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-*-fill,indent:0,fillw:70-*-
PTOC - A Pascal to C partial translator
=======================================
by
Robert Heller
Synopis:
PTOC <sourcefile >outputfile
PTOC is a program for doing a partial translation of a Pascal
module into a C module. The sourcefile is a Pascal source file. The
outputfile is the partial translation. PTOC does the following
translations:
Pascal (sourcefile) C (outputfile)
------------------- --------------
AND &&
OR ||
THEN (null string)
BEGIN {
END ;}
WRITE printf
WRITELN printf
READ scanf
READLN scanf
(* /*
{ /*
*) */
} */
' "
:= =
= ==
<> !=
The input words are case folded - that is they are matched in a case
independent fashion. The resulting output file still needs editing to
complete the translation - PTOC just does the common and obvious
translations.  ==
<> !=