Installation
Installation
On Linux
Homebrew
brew tap XDPXI/tap
brew install XDPXI/tap/spongeBinaries
On macOS
Homebrew
brew tap XDPXI/tap
brew install XDPXI/tap/spongeBinaries
macOS aarch64 Binary
macOS x86_64 Binary
On Windows
WinGet
winget install xdpxi.sponge --source wingetBinaries
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 --releaseRunning Your First Program
Create a file named hello.sp:
print("Hello, Sponge!");Run it:
sponge hello.spDebugging Your Program
For debugging, use the debug flag:
sponge hello.sp -dThis displays tokenization time, parsing time, and execution time. You can also use the extra debug flag:
sponge hello.sp -DThis 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.spThe binary will be located in the .sponge/build directory.