0.0.3 • Published 5 years ago

node-basic.js v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

BASIC

BASIC interpreter

Installation

  1. Install library:

    npm install node-basic.js
  2. Create a file to import the library such as app.js:

    var nodeBasic = require('node-basic.js');
  3. Create a BASIC program using the guidelines below.

  4. 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"
0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago