DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T p

⟦7f982c39d⟧ TextFile

    Length: 885 (0x375)
    Types: TextFile
    Names: »ptoc.man«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec1/ptoc/ptoc.man« 

TextFile

		  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.