Development History¶
- Lexer & Parser (October 2025)
- Complete MBASIC 5.21 tokenizer
- Full recursive descent parser
- 60+ AST node types
- 100% parsing success on corpus
-
Shared infrastructure for both interpreter and compiler
-
Interpreter (October 2025)
- Runtime state management
- All built-in functions
- Statement execution
- Expression evaluation
- Bug fixes (GOSUB/RETURN, FOR/NEXT)
- File I/O (sequential and random)
-
Error handling (ON ERROR GOTO, RESUME)
-
Interactive Mode (October 2025)
- Full REPL implementation
- All direct commands
- Save/load functionality
- Immediate mode
-
Multiple UI backends (CLI, Curses, Tk, Web)
-
Z80/8080 Compiler (October-November 2025)
- Semantic analyzer with type checking
- C code generator (Z88dk backend)
- Custom string runtime (O(n log n) GC)
- Memory optimization (zero malloc design)
- Complete file I/O (sequential, random, binary)
- Error handling implementation
-
Final push (November 11, 2025):
- Hardware access (PEEK/POKE/INP/OUT/WAIT)
- Machine language interface (CALL/USR/VARPTR)
- File management (RESET/NAME/LPRINT/CHAIN)
- 100% feature complete!
-
JavaScript Compiler (November 2025)
- JavaScript code generator
- Dual runtime (Node.js + browser)
- Virtual filesystem (localStorage)
- Complete file I/O (sequential, random, binary)
- Error handling implementation
- Final push (November 13, 2025):
- Random file access (FIELD/LSET/RSET/GET/PUT)
- Program chaining (CHAIN)
- 100% feature complete!