A silly little compiler for a programming language.
Except it's not a compiler right now, it's just an interpreter. Compilation will come in the future though! (with full compile time execution using the interpreter)
If no command line arguments are given, it will test the folder named 'tests' where the command is called. This is not final behaviour, it is only there for testing against regressions when working on the compiler.
If you want to compile a specific program, just type cargo run file_name.im
and it will run
file_name.im
.
Because every language needs a hello world.
print("Hello, World!\n");
Check out the tests/
directory for lots of tests which will show you how features work.
Syntax changes so often I'm not gonna write about it yet.