node package manager


BASIC language interpreter in Javascript


BASIC language interpreter in Javascript. Work in Progress

Via npm on Node:

npm install basicscript

Reference in your program:

var basicscript = require('basicscript');

Evaluate expression with constants

basicscript.evaluate('1+2'); // 3 

Evaluate expression with variables

var context = new basicscript.Context();
context.setValue('one', 1);
context.setValue('two', 2);
basicscript.evaluate('one+two'); // 3 

Execute command

basicscript.execute('one = 1');
git clone git://
cd BasicScript
npm install
npm test


  • Samples

Feel free to file issues and submit pull requests � contributions are welcome.

If you submit a pull request, please be sure to add or update corresponding test cases, and ensure that npm test continues to pass.