Interpreter
A modern & plugable BASIC interpreter
Install / Use
/learn @easy-basic/InterpreterREADME
EasyBasic Interpreter
A modern BASIC interpreter that runs right inside our browser.
Getting Started
# Clone this repo
git clone https://github.com/easy-basic/interpreter.git
# Install dependencies
yarn
# OR
npm Install
# Compiling project
npm run watch
Progress
- [x] Stream Scanning
- [x] Expression Parsing
- [x] Top level program parsing
- [x] Statements Parsing
- [x] Plugable operators support
- [x] Expression evaluator
- [x] Plugable functions support in expression parsing
- [x] Statement Execution
- [x] Complete Runtime
- [ ] Implement Loops
- [ ] User defined functions
Actually whole alot of stuff is still lacking and I think current my implementation is also not that good.
Runing
There is no GUI provided yet but project can be test by opening dist/test.html in browser and using following commands
var basic = new BASIC();
basic.execute(`
10 x = 10+30/5*43-cos(30)
20 print x
`)
Related Projects
- PcBASIC https://github.com/robhagemans/pcbasic
- IronBASIC https://github.com/uadnan/IronBasic
- qb.js https://github.com/th0r/qb.js
License
This project is licensed under the MIT License - see the LICENSE file for details
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
