-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|609|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> TinyBasic (TinyBBasic)

Posted : Thursday, 12 April 2018, 10:58
Dan

TinyBasic (TinyBBasic)


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).

p.s.:
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.

p.p.s:
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.

p.p.p.s.
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 :



-=-=-
Emu.zone
Posted : Thursday, 12 April 2018, 13:16
Dabz
Pretty cool that!

Dabz