Page 1 of 1

New community dev tool uploaded: BASIC Line Number tool in Python

Posted: Fri Jun 10, 2022 11:49 pm
by TomXP411



BASIC Line Number tool in Python




View File






This is a simple Python utility to add line numbers to BASIC programs.

GOTO and GOSUB use labels instead of line numbers, like this:



GOTO @HELLO 

END

@HELLO 

PRINT "HELLO WORLD"

In addition, the special @@ label resolves to "current line", like this:



GET A$:IF A$="" THEN @@ 

This will resolve to something like

100 GET A$:IF A$="" THEN 100

I have included a little Morse Code translator as a proof of concept and simple test program.

This program and the Morse demo are open source, distributed under CC-BY license.