node index.js your-nooblang-file.noob
to run a filenode index.js
for interactive shell
-
oof <any>
Prints the value given -
noob
Returns the user input -
<variable <any>> be <any>
Assigns the value to the variable -
eef <boolean>
Executes the code after untillol
if the boolean expression istrue
-
elz
Used inside aneef
block. If the condition isfalse
, then execute theelz
block -
for [<variable> in] [<number> to] <number>
Loops from (including) the start value to (excluding) the end value and store the value into the variable -
wow <boolean>
Executes the code untillol
while the boolean expression istrue
-
lol
Ends aneef
,for
orwow
block
-
<number|string> add <number|string>
Returns the sum of the operands
Does string concentration if any of them is astring
-
<number> sub <number>
Returns the difference of the operands -
<number> mul <number>
Returns the product of the operands -
<number> div <number>
Returns the quotient of the operands -
<number> pow <number>
Returns the result of the left operand to the power of the right operand -
inc <variable <number>>
Increases the variable by 1 -
dec <variable <number>>
Decreases the variable by 1 -
<any> eq <any>
Returnstrue
if the two operands are equal orfalse
if not -
<any> nq <any>
Returnsfalse
if the two operands are equal ortrue
if not -
<number> las <number>
Returnstrue
if the left operand is less than the right operand -
<number> mor <number>
Returnstrue
if the left operand is more than the right operand -
<number> laq <number>
Returnstrue
if the left operand is less than or equal to the right operand -
<number> moq <number>
Returnstrue
if the left operand is more than or equal to the right operand -
not <boolean>
Returnsfalse
if the boolean expression istrue
, or vice versa -
num <any>
Converts the value to a number -
str <any>
Converts the value to a string
-
string
:
Quoted by a pair of"
or'
-
number
:
In number format (negative numbers are acceptable) -
boolean
:
true
orfalse
//
:
For single-line comments
-
Version 2.0:
- Added
for..in..to
- Added
elz
- Right-to-left for
pow
- Better error reporting
- Fixed wrong documentation title version
- Added
-
Version 1.2:
- Fixed bug where tabs does not work
-
Version 1.1:
- Fixed bug where carriage return does not work