Quick Start Guide
Get up and running with XDL in minutes.
Installation
git clone https://github.com/TuringWorks/xdl
cd xdl
cargo build --release
cargo install --path xdl-cli
Your First XDL Program
Create a file hello.xdl:
; Hello World in XDL
print, 'Hello, XDL!'
; Basic arithmetic
x = 10
y = 20
print, 'x + y =', x + y
Run it:
xdl hello.xdl
Interactive REPL
Launch the interactive REPL:
xdl
Try some commands:
XDL> x = findgen(100)
XDL> y = sin(x * !pi / 50)
XDL> print, 'Min:', min(y), 'Max:', max(y)
XDL> .quit
Next Steps
- Installation Guide - Detailed installation
- Examples - More sample code
- Graphics Quick Start - Learn plotting
- Core Features - Language reference
For the complete quick start documentation, see QUICK_START.