Hi Tim,
swensont wrote:I wondered why my ears were burning earlier this morning.
Norman, if you have any questions on SSB, feel free to reach out to me.
Tim
First of all, thanks for SSB, what an excellent program. I'm typing in VSCode on Linux, and SSB runs to pick up the source and write the S*Basic back to Linux from where, S*BASIC loads it and runs it. I can move functions and procedures around will-nilly and not have to worry about renumbering. It's so much easier! I love it and will be using it from now on whenever I need to do S*BASIC code. I wish I'd used this application years ago!
However, I have possibly broken it! Given this test file:
Code: Select all
Define Procedure test
x = 1: ** Just a variable named x.
** Indented comment.
End define test
The generated BASIC code is:
Code: Select all
1000 Define Procedure test
1010 x = 1: ** Just a variable named x.
1020 REMark Indented comment.
1030 End define test
The first remark, after the "x" variable is not translated from "**" to "REMark".
The indented comment's "REMark" is not indented correctly to match the rest of the procedure. The indentation seems to come after the "REMark" keyword.
If you don't mind, I have a couple of nice to haves:
Where we are allowed to use blank lines in the SSB file, It would be rather nice to have those translated to a correctly indented line consisting of a line number and a colon. I used this quite often in my S*BASIC code to split things up neatly. For the same example SSB file above, I would hopefully see:
Code: Select all
1000 Define Procedure test
1010 x = 1: REMark Just a variable named x.
1020 :
1030 REMark Indented comment.
1040 End define test
I use the command line to run SSB. This lets me pass the input file and starting line number. If the output file already exists, it appears to delete it, and exit. A subsequent execution will generate quite happily not that the output file is gone. Is it possible to have the output file deleted if it exists, and the generation proceed as normal? The file is gone whatever happens! Maybe an additional Y/N parameter on the command line to indicate that the file should be deleted or not? If not given, or if "N" then the run should exit if the file exists, without deleting it.
Thanks.
Cheers,
Norm.