A trivial interpreted programming language, just for fun π¦
- C interpreter, which takes a file that ends in
.njs - Read file content
- Parse content
- Execute the program
- variables declared with
letand number of bytes (types are specified on use, lol) - functions, maybe with
fn, and number of bytes in return! -
if, cos we need branching baby -
indentationdecides scopes π -
print, cos that's the least we can do (it takes a template string, we need to decide how to print stuff) - +, -, *, / (these are enough)
So basically we can do loops by using recursion, and we are happy! π
