Here is a copy of the Altair Basic Manual;
http://www.swtpc.com/mholley/Altair/Altair_Basic.htm
I think this manual describes what microcontroller Basic should look
like. Various assembly source codes exist for different platforms.
Some are TinyBasic, ZXSpectrum Basic, etc. All are a serious mess.
Studying the code has become very helpful. A much simpler organization
is possible. The logic of microcontroller Basic should be simple.
First, the original code sets up buffers. Pascal and C call these
buffers records and structures, respectively. Since I understand
Pascal better, that is my model. The original code calls these buffers
"workspaces." If you have ever dug into ncurses character terminal
code you will recognize this standard technique. The original code is
far too stingy with memory.
Second, there are various modes the Basic interpreter enters. The
manual describes a command line and program line mode. I suggest we
recognize a third mode; a system mode. The system mode is for
instructions CLEAR, LIST, RUN, NEW, CONT, LOAD, SAVE, and interrupts.
Anyway, this is an effort to organize microcontroller Basic from the
ground up. I like the modern Z80 cpu tools out there. Other
microcontroller Basics, like 8052 basic are too minimal. I also like
the editor Nedit on Linux. Nedit has great text search tools.
I'm looking for thoughtful suggestions. My programming time is spaced
between weather related work, so it comes in chunks.
Thanks,
Rick.