0.0.3 • Published 5 years ago
node-basic.js v0.0.3
BASIC
BASIC interpreter
Installation
Install library:
npm install node-basic.js
Create a file to import the library such as app.js:
var nodeBasic = require('node-basic.js');
Create a BASIC program using the guidelines below.
Run the BASIC program that you created
node <filename you created in step 2> <program name>
Usage
Valid commands
PRINT
- Prints lines to the console.REM
- Comments for the user. The interpreter ignores these lines.
File extensions
File should end in .bas
.
Sample file
10 REM "BASIC HELLO WORLD PROGRAM"
20 PRINT "HELLO WORLD"
30 PRINT "HELLO WORLD 2X"
40 PRINT "HELLO WORLD 3X"