A modern BASIC interpreter that runs right inside our browser.
# Clone this repo
git clone https://github.com/easy-basic/interpreter.git
# Install dependencies
yarn
# OR
npm Install
# Compiling project
npm run watch
- Stream Scanning
- Expression Parsing
- Top level program parsing
- Statements Parsing
- Plugable operators support
- Expression evaluator
- Plugable functions support in expression parsing
- Statement Execution
- 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.
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
`)
- PcBASIC https://github.com/robhagemans/pcbasic
- IronBASIC https://github.com/uadnan/IronBasic
- qb.js https://github.com/th0r/qb.js
This project is licensed under the MIT License - see the LICENSE file for details