[Experimental] Object-oriented, compiled, VM-based language designed for optimal performance and portability across different environments.
git clone <repository-url>
cd run-lang
Ensure you have a C compiler (e.g., GCC or Clang) installed. Then run:
make
Create a file named examples/example.run
and add the following code:
fun returnSum(a, b) {
return a + b;
}
print returnSum(2, 3);
fun fib(n) {
if (n < 2) return n;
return fib(n - 2) + fib(n - 1);
}
var start = clock();
print fib(4);
print clock() - start;
Run the program with:
./build/release/rvm examples/example.run
- A C compiler (e.g., GCC, Clang)
- Make
- Clone the repository:
git clone <repository-url> cd run-lang
- Build the binaries:
make
After making modifications, recompile and test your changes:
make clean && make
./build/release/rvm examples/main.run
- src/: Contains the source code for the compiler and VM.
- tests/: Example
.run
files to validate the language's features. - Makefile: Automates the build process.
- Fork the repo.
- Create a branch:
git checkout -b feature-name
. - Push changes:
git push origin feature-name
. - Open a pull request!
Don’t forget to ⭐ the repo if you find it interesting