Mail Archives: djgpp/1999/06/29/18:43:03
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 -