Article View: net.lang.c
Article #9391Re: Equality vs Assignment
From: Eliel
Date: Wed, 24 Sep 1986 04:39
Date: Wed, 24 Sep 1986 04:39
20 lines
1356 bytes
1356 bytes
This is a good question, although I think that for CMS/SP users, using yacc
or lex may be a bit overboard when XEDIT provides the "all" command that
would let one easily scan for that kind of error. I suppose that a macro
to do this before compiling would be easy to write. As I don't have time
right now, let me outline what I mean:
in CW EXEC :
"XEDIT "fn ft/* h or c */" (PROFILE chk_equ"
if rc ^= 0 then exit /* flag indicating desire to continue or no*/
else CW ....
chk_equ XEDIT would have something like this :
"all /for/ && /=/ "
some search code...
"all /while/ && /=/ "
some more..., etc, etc.
Let me know if any one has the time to do it so that I can get a copy!
also, if any one knows of versions of yacc and/or lex for the CMS/SP environ-
ment, please let me know as well!
have a day,
eliel
Technical Details
Message-ID:
<4081@brl-smoke.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!brl-smoke!smoke!Eliel Mamousette, II@Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!brl-adm!brl-smoke!smoke!Eliel Mamousette, II@ From: Eliel@smoke.UUCP Newsgroups: net.lang.c Subject: Re: Equality vs Assignment Message-ID: <4081@brl-smoke.ARPA> Date: Wed, 24-Sep-86 00:39:31 EDT Article-I.D.: brl-smok.4081 Posted: Wed Sep 24 00:39:31 1986 Date-Received: Thu, 25-Sep-86 07:32:31 EDT Sender: news@brl-smoke.ARPA Lines: 20