UPDATE: This is now available on GitHub: https://github.com/natenorrish/enhanced-basic-transpiler
I've recoded the script completely to parse and output as a tokenized PRG.
I'm also planning to add inline ASM directives to use BASIC, but enabling the option to optimize parts of the program - this will be an experimental feature ?
------------------------------
Hey all,
My retro programming background is more Qbasic than BASIC, so for me getting used to the first 2 characters only being used for variables was quite painful for me. I'm also not a fan of using line numbers, and would prefer to use subroutines as with Qbasic.
I created a script (which I'll no doubt continue to develop) which converts Qbasic style code into BASIC with line numbers (please see screenshots)
The BASIC output isn't pretty, and I may work on that at some stage.
Features:
@LABEL: Create labels using @LABEL: - this will be automatically converted to a line number, and anywhere in the code that references @LABEL will be converted to the line number
Variable names: can use alphanumeric characters with underscore (I know not valid in Qbasic). Script will convert variable names to a unique 2 letter variable. This eliminates the worry of having to chose your variable names.
Line numbers: automatically added in and whitspaces / blank lines are removed
Comments: Qbasic style comments with single quote '
Planning to add in sub routines which auto handle variables.
Anyone interested?
Nate

