A Blazing-Fast Language for the Blazing-Fast world.
The Peregrine Programming Language
Peregrine is a Compiled, Systems Programming Language, currently under development.
Purpose and intent
Why am I creating this language?
I am creating it to have the simplicity of Python with the efficiency of C.
- Ease of use
- Highly modular
- Occupies less memory
How does it work?
You can consider it to be a dialect of python which compiles to clean C++. It will have no garbage collector because it is a system programming language.
Requirements to build from source
1)Clone the rewrite branch of https://github.com/peregrine-lang/Peregrine.git
git clone https://github.com/peregrine-lang/Peregrine.git
2)Cd into the directory
meson builddir cd builddir ninja
This will create the binary of the compiler named
./peregrine.elf in the builddir folder
C++ backend To compile it using the c++ backing just run
./peregrine.elf compile path_to_file.pe .It will create the executable named
./a.out. Run it to see the result. Check the can_comp.pe file in the root directory to know what you can do with the c++ backend at this point
node index.js. Check the can_comp.js.pe file in the root directory to know what you can do with the js backend at this point
Currently we are working on the codegen and some Peregrine programs are working
Here is a small example for you to understand:
def main(): printf("Hello, World!")
main function is the entry point for the program.
Cool, you can contact me via mail.
Email: [email protected]
Discord : https://discord.gg/CAMgzwDJDM
Want to contribute?
Great, go ahead and make the changes you want, then submit a new pull request
Take a look at the open issues to find a mission that resonates with you.
Please check CONTRIBUTING.md to learn how you can contribute.
The Peregrine compiler is licensed under the Mozilla Public License, which is attached in this repository