I made a new spellchecker to check thinBasic-Files for bugs and typos - (the old one was pretty slow)
- but this time I avoided the use of String-methods as Len and Mid$ etc...
MinVersion 1.9.6.0 or 1.9.7.0 - when came the drag-in to TBGL?
It works the following:
Run the script from thinAir,
drag any .tBasic, .tBasicC, .tBasicU or .inc -files from windows-explorer or from desktop into the spellchecker-window. Check starts immediately and stops if some serious problem in script structure is found.
It checks for #IF+ If + Select + Do/Loop + While/Wend + Repeat/Until + For/Next + Type + Union + Sub/Function-nesting levels, also checks for even parenthesis & quotes, and for typos and a few things more. So if some expression is used just once per script it will inform about some dubious expression that you might to check back for.
It will inform you, if found anything - click on the information to display the codeline then for further examinations.
Only one problem to which I have no solution yet: It complains uneven paranthesis if the script uses line-continuation without underscore.
_____________________________________________________________________________________
Edit: @Eros
(who else could answer this question?)
Is there a way to add in some user-defined function or utility as this to thinAir? So I could instantly run the spellcheck from within thinAir on the current active scripts text without cumbersome actions as save script, change to spellchecker, start it, (search folder of script to check) dragging that there - checking here and then back to thinAir for corrections
- I imagine like some menuitem on Tools\Utilities\"User defined" which can be choosen through thinAir-options - set User-defined-utility-Path + Command$ (OS_GetCommands) there then thinAir "knows" if to pass script-filename & path or plain text-string of current script or whatever (list of all current opened scriptnames, crlf-delimited?) as command to the user-utility...... ok, I would rewrite it, so you pass some tB-script as String to the function and get some $crlf-delimited error-report back?
Bookmarks