[net.text] help with vgrind

dberry@ucla-cs.UUCP (01/16/85)

I cannot seem to get vgrind to work. I invoked vgrind with the command
vgrind -f -lp pascaltest

with the file pascaltest containing:

.\" vgrind -f -lp pascaltest|troff -mX
.\" vgrind -x -lp index|troff -mX
.en
.LL 6.5i
.ls 1
.ds BL ''%''
.pp
Below is found a pascal program from Jensen and Wirth:
.vS
program egfor(input,output);
var	i,n:interger;
	h:real;
begin
	read(n);
	write(n);
	h:=0;
	for i:= n downto 1 do
		h:=h+1/i;
	{ This is a comment }
	writeln('The next number is');
	writeln(h);
end.
.vE
Wasn't that exciting???????? 

The initial command lines are the opening scenario for use of mX.
The only words that got boldfaced were for do and the braces {}.
I looked at the vgrind -f output, and it is clear that only the for
do and braces were marked as keywords. Thus it seems that despite
my -lp, the text is being interpreted as a C program.
What am I doing wrong??????

Daniel M. Berry         UCLA Computer Science Department
dberry@ucla-locus.arpa  ..!{sdcrdcf,ihnp4,cepu,trwspp,ucbvax}!ucla-cs!dberry