(12-04-2024, 02:59 PM)bplus Wrote: +1 for Pete, good challenge exercise!
The first thing I'd look for are Dim's, For's, and stuff before an = sign. UDT's eeeh!
@bplus
Thanks!
Yeah, to be honest I think I left UDTs out of the one I made many years ago. I didn't use TYPE back then, so I didn't need it, and I realized it would greatly complicate the process of identifying and parsing out variables.
There were also fewer keywords. Of course if we get rid of the option not to underscore the new QB64 keywords, then all we need to do is dismiss any word that starts with an underscore. Easy peasy.
For lazy folks like me, who never used to dim anything, looking for math symbols was a great way to hunt numeric variables, otherwise just look for the type declarations like !, &, etc. at the end of a word.
If you are interested in making one, feel free to use all or part of utility I posted for Dimster to remove remarks for code. That at least narrows the hunt by excluding quoted and remarked text.
I'm working on a couple of different projects at the moment, so I'm not sure if I will revisit this one. I just used Fell's vWatch routine to put up a list in the IDE window and typed the variables to notepad.
Pete