osBasic demo 2 release.
Posted: Thu May 01, 2008 7:54 am
Hi all.
I once wondered could i do a simple tinyBasic interpreter with FB or yaBasic.
This is my third try. First one with FB was a mess, second one with yaBasic did lead in situation from where i wanted to move it back to FB due several reasons.
Anyway, hunger grows while you eat so this one has pretty much extra stuff if we comapre it to original tinyBasic. So we can call this as "tinyBasic Pro" or something
Code is not optimized yet, though i have worked to move it to use pointers more. There is still some MID() style code too, but idea is to get riddof them in some point.
Once i get that part of work done, ill release this as GPL2.
Some error checking is still missing (specially when reading code to interpret from file) but hopefully i get that all done in a week or two.
With this post, i also want to show my respect to FB dev.team. If a average hobby programmer like me, can do interpreter that works somehow and is decently fast (for an interpreter) it only measn that tool with what it is made (FB in this case) must be awesome.
Off the record. I havent ever studied how a "real" interpreter should be made, basicly this has been made by reading FB wiki only and with some farmer logic
FB rocks.
Download: http://www.basicprogramming.org/ekv_fil ... _demo2.zip (167k)
.zip includes linux, dos and windows binaries with few example codes and documents.
p.s By opening Examples/goto_speed.bas you can see how much code is faster after Demo1.
I once wondered could i do a simple tinyBasic interpreter with FB or yaBasic.
This is my third try. First one with FB was a mess, second one with yaBasic did lead in situation from where i wanted to move it back to FB due several reasons.
Anyway, hunger grows while you eat so this one has pretty much extra stuff if we comapre it to original tinyBasic. So we can call this as "tinyBasic Pro" or something
Code is not optimized yet, though i have worked to move it to use pointers more. There is still some MID() style code too, but idea is to get riddof them in some point.
Once i get that part of work done, ill release this as GPL2.
Some error checking is still missing (specially when reading code to interpret from file) but hopefully i get that all done in a week or two.
With this post, i also want to show my respect to FB dev.team. If a average hobby programmer like me, can do interpreter that works somehow and is decently fast (for an interpreter) it only measn that tool with what it is made (FB in this case) must be awesome.
Off the record. I havent ever studied how a "real" interpreter should be made, basicly this has been made by reading FB wiki only and with some farmer logic
FB rocks.
Download: http://www.basicprogramming.org/ekv_fil ... _demo2.zip (167k)
.zip includes linux, dos and windows binaries with few example codes and documents.
p.s By opening Examples/goto_speed.bas you can see how much code is faster after Demo1.