ABasic
A BASIC Interpreter
Installation
clone this repo (duh)
npm run setup
Running the Tests
npm run test
With Code Coverage:
npm run test-with-coverage
Usage
node ./dist/abasic.js -i <basic.bas>
Code Documentation
can be found in docs/
Code Coverage
can be found in coverage/ Make sure to run before
npm run test-with-coverage
Implemented Commands
Maths (+ - / * MOD AND OR)
Variables (duh)
ABS ATN BEEP CHR$ CINT CLEAR DIV EXP FOR TO NEXT GOSUB GOTO HEX$ IF INSTR
INT LEFT$ LEN LOG MID$ NINT OCT$ PRINT R2D RETURN RIGHT$ RND SGN SIN
SQR STEP STR$ TAN TIME$ TIMER VAL
Not yet implemented or partially
INPUT DATA RESTORE RELOAD HEIGHT WIDTH INKEY$ SLEEP SPACE SQRT