Quantum v1.0.0 — A dynamically-typed, cybersecurity-ready scripting language written in C++17.
- Prerequisites
- Build from Source
- Adding Quantum to PATH
- Verifying Installation
- Running Your First Script
- REPL Mode
- Editor Support
- Troubleshooting
Before building Quantum, ensure you have the following tools installed:
| Tool | Minimum Version | Notes |
|---|---|---|
| C++ Compiler | C++17 compatible | MSVC 2019+, GCC 9+, or Clang 10+ |
| CMake | 3.15+ | Required for all platforms |
| Git | Any recent version | For cloning the repository |
git clone https://github.com/SENODROOM/Quantum-Language.git
cd Quantum-Language# Create and enter build directory
mkdir build
cd build
# Generate Visual Studio project or MinGW Makefiles
cmake ..
# Build in Release mode
cmake --build . --config ReleaseThe binary will be at: build\Release\quantum.exe
A convenience batch script is included at the root:
build.batThis script handles the CMake configuration and build steps automatically on Windows.
# In MSYS2 MinGW64 terminal
mkdir build && cd build
cmake .. -G "MinGW Makefiles"
cmake --build . --config Release# Install build tools if needed
sudo apt update
sudo apt install -y build-essential cmake git # Ubuntu/Debian
# sudo dnf install gcc-c++ cmake git # Fedora/RHEL
# Clone and build
git clone https://github.com/SENODROOM/Quantum-Language.git
cd Quantum-Language
mkdir build && cd build
cmake ..
cmake --build . --config ReleaseThe binary will be at: build/quantum
# Install Xcode command-line tools if needed
xcode-select --install
# Install CMake via Homebrew if needed
brew install cmake
# Clone and build
git clone https://github.com/SENODROOM/Quantum-Language.git
cd Quantum-Language
mkdir build && cd build
cmake ..
cmake --build . --config ReleaseThe binary will be at: build/quantum
To use quantum from any directory, add the binary to your system PATH.
$env:PATH += ";C:\path\to\Quantum-Language\build\Release"To make it permanent:
[System.Environment]::SetEnvironmentVariable(
"PATH",
$env:PATH + ";C:\path\to\Quantum-Language\build\Release",
[System.EnvironmentVariableTarget]::User
)Alternatively, copy quantum.exe to a folder already in your PATH (e.g., C:\Windows\System32 or a custom C:\tools\bin).
A helper quantum.bat is included in the root directory. You can copy it anywhere in your PATH to invoke Quantum without needing the full path to the binary.
# Copy to /usr/local/bin (system-wide)
sudo cp build/quantum /usr/local/bin/
# Or add the build directory to your shell profile
echo 'export PATH="$PATH:/path/to/Quantum-Language/build"' >> ~/.bashrc
source ~/.bashrcAfter setup, confirm everything works:
quantum --version
# → Quantum v1.0.0
quantum --help
# → Shows usage information- Create a file called
hello.sa:
# hello.sa
name = "World"
print("Hello,", name, "from Quantum!")- Run it:
quantum hello.sa
# → Hello, World from Quantum!- Check syntax without executing:
quantum --check hello.sa
# → Syntax OK (or error details)Start an interactive session by running quantum with no arguments:
quantumQuantum v1.0.0 REPL
Type 'exit' or Ctrl+C to quit.
>>> x = 42
>>> print(x * 2)
84
>>> fn greet(name): return "Hello, " + name
>>> greet("Hacker")
"Hello, Hacker"
>>> exit
Editor extensions for syntax highlighting are available in the extensions/ directory. Currently supported:
| Editor | Status |
|---|---|
| VS Code | ✅ Available in extensions/vscode/ |
# From the repository root
cd extensions/vscode
npm install
npm run compile
# Then install via VS Code Extensions panel → "Install from VSIX"
# Or press F5 inside VS Code to launch a development instanceThe extension provides:
- Syntax highlighting for
.safiles - Keyword recognition for all Quantum language constructs
Install CMake from cmake.org/download or via your package manager.
- Windows: Install Visual Studio Build Tools or MinGW via MSYS2
- Linux: Run
sudo apt install build-essential - macOS: Run
xcode-select --install
Ensure your compiler supports C++17. Pass the standard explicitly:
cmake .. -DCMAKE_CXX_STANDARD=17Restart your terminal/shell session or run source ~/.bashrc on Linux/macOS.
chmod +x build/quantumgit clone https://github.com/SENODROOM/Quantum-Language.git
cd Quantum-Language && mkdir build && cd build
cmake .. && cmake --build . --config Release
sudo cp quantum /usr/local/bin/ # Linux/macOS
quantum --version # Verify
quantum script.sa # Run your script
For full language reference, see SYNTAX.md.