Nikscript is a programming language written in JavaScript. It's inspired by JavaScript (variables) and Python (# for comments) but also has some language specific syntax like its for loops: for (i = lowerLimit < upperLimit).
This Repository contains an interpreter for Nikscript that can be used on any website. All you need to do is to import nikscript.js inside your html page as follows:
<script src="nikscript.js"></script>And run the interpreter by executing the interpret function whilst giving the code to execute as its parameter.
var i = 0;
#comment
if (condition){ code; }
for (i = lowerLimit < upperLimit){ code; }
while (condition){ code; }
func name (arguments){ code; }
name(arguments);
return value;
- print(value);
- len(string); #returns length of a string
Niklas Ziermann
© Niklas Ziermann
MIT License