johnscript
v1.4.0
Published
Hello, and welcome to JohnScript. Offered as a Node module that exposes a command-line tool function to execute instructions.
Downloads
6
Readme
Synopsis
Hello, and welcome to JohnScript. Offered as a Node module that exposes a command-line tool function to execute instructions.
API usage:
// Import the module
const example = require('./js');
// Use of API function CLI
example.cli();
Data types
Unsigned integer
Available programming instructions
// Enter in 'exit' to exit the interactive CLI at any time
// Setting a variable
exampleVar = 10
// Setting a const variable
const exampleConst = 20
// Re-assigning a variable
exampleVar = 5
// Evaluating simple booleans using eval
eval 5 < 5
eval 10 > 0
// Output a variable or positive integer to program output console
print exampleVar
print exampleConst
print 123456