Installing Djazair
Djazair is built to compile cleanly on Linux, macOS, and Windows. It relies on standard compiler environments and has minimal external dependencies.
Linux & macOS Compilation
Ensure you have GCC or Clang and make installed. Open a terminal and run the following commands:
# Clone the repository
git clone https://github.com/djazair-language/djazair.git
cd djazair
# Build the interpreter using Makefile (very fast!)
make
# Optionally install it system-wide (requires root/sudo)
sudo make install
The build outputs will be placed under build/bin/djazair.
Windows Compilation
To compile on Windows, you must have a MinGW-w64 compiler environment installed, along with libregex (specifically mingw-w64-x86_64-libgnurx) for pattern matching capabilities. Run the automated build script in PowerShell:
# Navigate to workspace directory
cd djazair-language
# Run build script
tools\build.ps1
The compiler will output build\bin\djazair.exe.
MinGW Dependency Tip: If you receive linker errors regarding regular expressions on Windows, ensure that libgnurx or a compatible regex library is installed in your MSYS2 / MinGW installation.