Socoder -> Blitz -> TinyBasic (TinyBBasic)
|Posted : Thursday, 12 April 2018, 10:58|
Here is the Sourcecode for the TinyBasic, which can be found on: TinyBasic in Runbasic in Webbrowser
converted to run in BlitzBasic (3d).
The code, so far is run-able (haven't tested if it is 100% bug free). This interpreter understands only numeric variables, which can be placed between a to z chars.
I have added a small delay each 2 seconds, to avoid 100% cpu usage. Following line can be commented out:
To break a running program, press Ctrl + D. Auto Loading/Running of an program is also supported, if you save it as 0 (save 0).
The Windows api calls are made only By the Functions, which are not really needed for this interpreter. The needed decls addition are in or before the functions, in the code.
You can safely remove all the Functions and their calls by commenting/removing the Include line, and uncommenting the 2 graphic calls.
ini functions require the Program to be compiled. If you run in in the Ide, the settings and the programs will be made in the blitzbasic bin folder.
The Graphic calls are intentionally left as ,2 and ,3 (instead of ,6 ,7) because the time call functions need a runable code, if the window looses the focus.
and the include file ScreenIni.bb :
|Posted : Thursday, 12 April 2018, 13:16|
Pretty cool that!