ZINC is a programming language written in C++ that aims to provide the same (if not more) functionality, but is easier to learn and has a faster development cycle.
ZINC is for Linux/UNIX systems. (Windows port is planned, although it works well in WSL)
C++ libraries are compatable with ZINC.
Insall dependnecies
sudo dnf install make g++ gcc
clone repository
git clone https://github.com/Talleeenos69/ZINC/
cd into ZINC
cd ./ZINC
Build
make
Install dependnecies
sudo apt-get install make g++ gcc
clone repository
git clone https://github.com/Talleeenos69/ZINC/
cd into ZINC
cd ./ZINC
Build
make
Insall dependnecies
sudo pacman -S make gcc
clone repository
git clone https://github.com/Talleeenos69/ZINC/
cd into ZINC
cd ./ZINC
Build
make
Install the WSL and follow the instructions for your distribution.
(The default ZINC file format is .zc but is not required.)
[zinc executable] {zinc script} [flags]
-k or --keep-translation (Keeps the generated C++ file even after compilation)
-v or --verbose (Verbose output - tells you exactly what's going on)
-O0, -O1, -O2, -O3, -Os, -Ofast (Control the level of optimization during compilation)
-asm or --assembly (Generate assembly code instead of an executable)
./zinc /home/$USER/Documents/ZINC/main.zc -k -v -O2
using zincstd;
main(){
let zinc_version = 0.0.2;
string name = input("Enter name : ");
loop(2, i){
print("HI ");
println(name);
}
rest(1s);
print("Zinc Version : ");
println(zinc_version);
return 0;
}
To properly use ZINC in the VSCode IDE, ensure you have installed the language support extension from this GitHub repository :
https://github.com/Talleeenos69/ZINC-VSCode-Language_Support
(Refer to this guide for manual installation of VSCode extensions)