A Non- Statically-Typed compiled programming language that compiles to x86.
Contact me for help, because I will respond. Discord: amukh1#9613
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
BEFORE YOU INSTALL: please read the prerequisites
From Github:
$ git clone https://github.com/amukh1/Ritchie-Plus-Plus
$ cd Ritchie-Plus-Plus
$ g++ *.cpp -o rpp
$ sudo cp ./rpp /usr/bin
From APT:
$ sudo apt install rpp
$ rpp ./name.rpp -o name
$ nasm -f elf name.asm
$ ld -m elf_i386 -o -s name.o -o name
$ ./name
$ rpp ./name.rpp -c name
$ gcc name.c -o name
$ ./name
ASM compiles to bytecode with NASM on Linux (if your on Windows/OSX use an online assembler).
$ sudo apt install qemu
$ rpp ./name.rpp -o name
$ nasm -f elf name.asm
$ ld -m elf_i386 -o -s name.o -o name
$ qemu-i386 ./name
import "stdio"; /* Imports the standard input/output library */
import "stdlib"; /* Imports the standard library */
func main(argc, argv) {
println("Hello World!", 12); /* Prints "Hello World!" */
var v = 0; /* Declares a variable */
var v = "hi"; /* Re-Declares a variable */
println(v, 2); /* Prints the value of v */
var& a = v; /* Declares a reference to v */
var* b = a; /* De-Reference a */
println(b, 2); /* Prints the value of b */
return 0; /* Returns 0 */
};
Hello World!
hi
hi
Note: If you choose to try out the examples in the example folder, you will need to compile them using r++ on your system
You can contribute to the project by making a pull request on GitHub.
- Amukh1 - Github / amukh1#9613
See also the list of contributors who participated in this project.
MIT License © Amukh1