johnscript

Hello, and welcome to JohnScript. Offered as a Node module that exposes a command-line tool function to execute instructions.

Usage no npm install needed!

<script type="module">
  import johnscript from 'https://cdn.skypack.dev/johnscript';
</script>

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