Article View: net.text
Article #427help with vgrind
From: dberry
Date: Wed, 16 Jan 1985 18:26
Date: Wed, 16 Jan 1985 18:26
39 lines
1680 bytes
1680 bytes
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
Technical Details
Message-ID:
<3266@ucla-cs.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!teddy!panda!talcott!harvard!seismo!hao!hplabs!sdcrdcf!trwrb!trwrba!cepu!ucla-cs!dberryShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ucla-cs.ARPA Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!teddy!panda!talcott!harvard!seismo!hao!hplabs!sdcrdcf!trwrb!trwrba!cepu!ucla-cs!dberry From: dberry@ucla-cs.UUCP Newsgroups: net.text Subject: help with vgrind Message-ID: <3266@ucla-cs.ARPA> Date: Wed, 16-Jan-85 13:26:29 EST Article-I.D.: ucla-cs.3266 Posted: Wed Jan 16 13:26:29 1985 Date-Received: Mon, 21-Jan-85 03:40:39 EST Reply-To: dberry@ucla-cs.UUCP (Dan Berry) Organization: UCLA Computer Science Department Lines: 39