delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/29/18:43:03

Message-ID: <37794BF9.2075E426@unb.ca>
Date: Tue, 29 Jun 1999 18:43:05 -0400
From: Endlisnis <s257m AT unb DOT ca>
Organization: Nortel Networks
X-Mailer: Mozilla 4.51 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
CC: "Thiago F.G. Albuquerque" <thiagofga AT ambr DOT com DOT br>, djgpp AT delorie DOT com
Subject: Re: RHIDE: Sugestion: prototype completion
References: <37275C2B DOT CEC5A114 AT unb DOT ca> <m10cw83-000S24C AT inti DOT gov DOT ar>
Reply-To: djgpp AT delorie DOT com

    Some of you may remember this thread from late April, it was a discussion
about how there exist some editors (IDE's) out there with fancy code scanning
techniques (Borland Delphi 3/4, Visual Basic 5/6, Visual C++ 6).  At the time I
offered a simple little grep command/eLisp function that looked for substring
matches in a preprocessed version of the current file in SetEdit/RHIDE.  Well
I've done a lot of work on it over the last 2 months and I have something to
distribute.
    Version 0.0 (alpha) of my scanning program (yet to be named).

http://www.geocities.com/CollegePark/Quad/1974/PROTO0.ZIP

[note: that address is case sensitive]
It includes an eLisp macro for SetEdit/RHIDE (which I map to a key like F12), an
executable, and a readme.txt file.  How to use it:

#include<stdio.h>

int main(int argc, char *argv[])
{
 pr_
 return 0;
}

[note: the only "_" notes the cursor location]
In that situation, my macro would display
int printf(const char *_format, ...);
int the message window as that is the way it is declared in <stdio.h>.
It is not just doing a grep for that word, it is doing a full parse and
reconstruction as this example shows:

void*
jack
(
int, ...
);

ja_

In this situation my program displays:
void *jack(int , ...);


You might say a full parser is over-kill just to list functions, and you'd be
right, but I have much further plans for this.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT HotMail DOT com
          ICQ: 32959047


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019