Dilwyn Jones wrote: > Is there such a thing as an OS call of any description which when presented > with a line of BASIC as simple ascii will check the syntax so that a program > such as Tim's can check what is being entered without necessarily inserting > the line of BASIC into a program directly?
Well, there are the mentioned vectors (which I didn't know about until today). Their usage is shown in sbsext_ed_basint_asm (albeit with archaic names and thus difficult to find using a simple text search). It look like they could do the job, but they need to be called from within an S(uper)Basic job, just like ED. This makes things a bit more complicated. On the other hand, SBAS/QD also shows how this could be done. It actually fetches the program line by line from the QD editor and manually builds the SBasic program with it. In case of an error QD is instructed to jump to the offending line and show the appropriate message. I had a look at the code and it's pretty much intertwined with the QD editor and probably not suitable for others, but in theory similar interfaces could be implemented for other editors or purposes, I personally just don't see the need. Plus I'd like to avoid the "oh, why did you make it SMSQ/E only" complaints. Marcel _______________________________________________ QL-Users Mailing List
