XDPXI's Documentation

Installation

Installation

On Linux

Homebrew

brew tap XDPXI/tap
brew install XDPXI/tap/sponge

Binaries

Linux x86_64 Binary


On macOS

Homebrew

brew tap XDPXI/tap
brew install XDPXI/tap/sponge

Binaries

macOS aarch64 Binary
macOS x86_64 Binary


On Windows

WinGet

winget install xdpxi.sponge --source winget

Binaries

Windows x64 Installer
Windows x64 Portable

Building from Source

Rust 1.56 or later is required when building from source.

git clone https://github.com/XDPXI/Sponge.git
cd Sponge
cargo build --release

Running Your First Program

Create a file named hello.sp:

print("Hello, Sponge!");

Run it:

sponge hello.sp

Debugging Your Program

For debugging, use the debug flag:

sponge hello.sp -d

This displays tokenization time, parsing time, and execution time. You can also use the extra debug flag:

sponge hello.sp -D

This will display all function and variable calls.

Compiling Your First Program

Compiling your first Sponge program is as simple as running the build command.

sponge build hello.sp

The binary will be located in the .sponge/build directory.