Closed Mehdi-YC closed 2 years ago
fixed it by just adding mut to split_path at line 46
Peregrine is being rewritten in C++ at the moment, so I do not recommend using the current compiler version of the language. You can see the development in the rewrite branch.
As told by @procrastinar , clone the rewrite branch Follow the following steps to compile:-
1)Clone the rewrite branch of https://github.com/peregrine-lang/Peregrine.git
git clone -b rewrite https://github.com/peregrine-lang/Peregrine.git
2)Cd into the directory
cd Peregrine
3)Build it
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
JS Backend
To use the javascript backend use the following command
./peregrine.elf compile path_to_file.js.pe -js
.
It will create the javascript file named index.js
. Run the generated javascript using 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
Use the main branch because we have merged rewrite with main. I am closing it due to inactivity
Describe the bug i could not even install it basically , i installed V in my wsl2
V version is 0.2.4
Screenshots
Desktop (please complete the following information):
It might be a new feature of V lang that is causing it ?
btw : i want to help make this lag good , i think i can use it instead of nim to create some simple exe for the moment.