Open source BASIC interpreter embeddable into a Delphi application.
Based on Chipmunk BASIC 1.0 Pascal code from comp.source.misc donated in march 1990 by David Gillespie.
Ever dreamed about "simple" yet powerfull shell for Microsoft Windows?
Ever longed for old times, when text mode StarTrek(~600 KB) was the game to play?
Well, I did. So I took that Chipmunk BASIC interpreter written in Pascal and ported it to Delphi, added ability to callback to Delphi methods and functions from dynamically loaded libraries (DLLs), created "terminal" emulator with BASIC as the shell language... and then abandoned the project.
Yet, there are some antiques to think about left.
Latest version is available for download here: cmd_v12_2004_09_27.zip(~1 MB), some small documentation is available here.
Some source code
- Chip.pas(~1.1 MB) - core file, implements TBasic - BASIC interpreter.
- ChipThr.pas(~50 KB) - wrapper redirecting console I/O for multiple instances of the TBasic class.
- basShell.pas(~100 KB) - interpreter attached directly to console I/O, ability to spawn console applications and other BASIC interpreters added.
- Cmd.dpr - command interpreter application using BASIC as the control language.
- bexec.dpr - interpreter that can turn BASIC files into *.exe files by
copy /B bexec.exe + %1.bas %1.exe
"Readme" for latest version
- cmd.exe - BASIC interpreter, console version.
- bos.exe - BASIC interpreter terminal with 12 parallel threads available.
Use function keys F1...F12 to switch between screens.
Use Ctrl+Enter to start new thread in not-yet-active screen.
Use ScrollLock key to trigger screen scrolling on/off. - Try
LOAD "bigstartrek.bas"
in any of the interpreter shells.
RUN
Downloads
- cmd_v12_2004_09_27.zip(~1 MB)
- cmd_v11_2002_09_08.zip(~1 MB)
- cmd_v10_2002_08_20.zip(~1 MB)
- cmd_v09_2002_08_03.zip(~0.8 MB)
- cmd_v08_2002_07_30.zip(~0.8 MB)
- cmd_v07_2002_06_23.zip(~57 KB)
- cmd_v06_2002_06_20.zip(~42 KB)
- cmd_v05_2002_06_20.zip(~42 KB)
- cmd_v04_2002_06_19.zip(~40 KB)
- cmd_v03_2002_06_17.zip(~51 KB)
- cmd_v02_2002_06_16.zip(~19 KB)
- cmd_v01_2002_06_16.zip(~19 KB)