Running Djazair Scripts
The Djazair interpreter offers a command-line interface (CLI) to execute code, check versions, and configure file paths.
CLI Usage
The general syntax of the interpreter CLI is:
djazair [options] [script_file.dz] [arguments...]
Available Options
| Option | Description |
|---|---|
-c "code" |
Executes the given inline script string directly. |
-d / --debug |
Enable virtual machine debugger mode (traces bytecode execution and stack status). |
-v / --version |
Prints the interpreter build version and exits. |
--disasm |
Disassembles compiled code instructions to standard output. |
Script Arguments
Any arguments passed after the script file path are automatically collected and made available inside your code as a list named args:
# script.dz
print("Supplied Arguments:")
for arg in args
print(" - " + arg)
end
Run it like this:
djazair script.dz first second third