And speaking of CHIPMUNK ...
The original PASCAL source code by Dave Gillespie, upon which Ron Nicholson derived Chipmunk, is indeed
interesting. Unfortunately, because it was not covered by GPL or the like, Ron is not obligated (or inclined)
to share any of the source code from his derived works from it.
Back in 2005, I pulled the (original) basic.p file from the P2C package, converted it to C, and set about
trying to make sense of it. I was initially quite interested in it. I added basic file handling, killed a few
bugs, and added many string functions from the BCX run time library. The initial result was a 32-bit
Windows console program that was considerably more powerful than the original.
Then I lost interest in it for 5 years ... until about a month ago (what a coincidence that I am discussing
this on this forum). I made a few more improvements like adding simple binary file access to the language.
For example: OPEN "filename.bin" for BINARY AS 1 : Get 1, A$, 255 : CLOSE 1
I was feeling pretty smug with my efforts until I stumbled onto the fact that it is leaking memory.
The magnitude of the leak is a function of the currently loaded BASIC program and the consecutive
number of times that program has been run in memory. It is obviously not freeing memory correctly,
especially in BASIC programs containing arrays. Programs with large arrays reveal the problem quickly.
Wayne Halsdorf was kind enough to take an initial look but I don't believe he has the time or inclination
to immerse himself into one of my on-again, off-again, hobby projects at this time.
I've been calling my version "GILLESPIE BASIC", in honor of the man who did the heavy lifting. It really
is a neat implementation, bordering on genius in my opinion. It starts up in a windows console window
waiting for commands to be entered from the keyboard, just like in the old days. It can load and save
files, and I've added the Windows OpenFile dialog to make navigating to source files a little easier.
The current executable is a tiny 114kb (uncompressed)
Okay - here's the part you've been waiting for ... if anyone wants to take up the cause, I've zipped up
my current efforts for you to download, explore, improve, and SHARE.
Download link:
http://www.bcxgurus.com/GillespieBasic.zipBe sure to skim through the file BASIC.TXT for a quick overview.