Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-05 - 43,50337/23/checkf.mac
There is 1 other file named checkf.mac in the archive. Click here to see a list.
COMMENT * SIMULA specification;
OPTIONS(/E:CODE,checkfrac);
INTEGER PROCEDURE checkfrac(t);   NAME t;   TEXT t;
COMMENT checkfrac analyses the text t from t.pos and on.
If a getfrac operation from this position is legal the
returned value is +1. If it would give an error - then
if the remaining text string is blank, the result is 0,
else -1. Pos is placed after a legal item (+1),
after the first nonblank illegal character (-1) or after
the text if the rest is empty (0).
;

!*;! MACRO-10 code !*;!

	TITLE	checkfrac
	ENTRY	checkfrac
	SUBTTL	SIMULA utility, Lars Enderin Dec 1975

;!*** Copyright 1975 by the Swedish Defence Research Institute. ***
;!*** Copying is allowed.					***


	sall
	search	simmac,simmcr,simrpa
	macinit

	EXTERN	.check

	;! Local definitions ;!

	result==ZBI%S
	t==result+1

checkfrac:	PROC
	LI	XTAC,TXGF
	BRANCH	.check
	EPROC
	LIT
	END;