I'd certainly agree with that, Martyn.martyn_hill wrote:Hi everyone
[Arguably going off-topic - or rather expanding upon this specific and valid use-case that Dilwyn's solution aims to address...]
I would also like to encourage exploring MasterBasic in this context - fundamentally it works 'within' the SBASIC environment, thus knows the context of each name in the Name Table, rather than trying to deduce usage from a purely external syntactical analysis using awk, sed and their ilk.
Whilst I'm not so thrilled in limiting SBASIC editing capability to what QDOS/SMSQE offer (i.e. ED), MasterBasic to my mind is a truly impressive bit of software engineering with some incredible SBASIC profiling tools. To my mind, if QD or some other SBASIC 'aware' editing tool could be integrated with MasterBasic's tools against a 'resident' SBASIC tokenised program, I think we'd have a fantastic basis for a next-gen SBASIC 'IDE'. Wishful thinking, I know...
If Davide (Ergon) is able to update the program (afraid I can't remember who the original author was), that would be a good direction to take the program to. Yes, we have things like SSB and the JMS QD/QLib utility whose name I've forgotten, but a true development environment with profiling tools and S*BASIC aware would be great.
Actually, I learned a few things in writing NameCheck (I forced myself to study SMSQ/E sources to learn a few things), so even if it never gets completed, it would have been worth it.