Getting Started
This page assumes you’ve already installed Tulpar — if not, head to Installation for the one-line installer.
Try it in the browser
Section titled “Try it in the browser”You can play with Tulpar directly in this page. Edit the snippet below and hit Run — no installation required:
Run a file locally
Section titled “Run a file locally”Save the program to a file named hello.tpr, then run it from any
terminal — tulpar is on your PATH after installation:
tulpar hello.tprThe default tulpar <file> invocation AOT-compiles via LLVM and runs
the resulting native binary. For instant startup at the cost of a small
runtime overhead, use the bytecode VM instead:
tulpar --vm hello.tprTo produce a standalone native executable you can ship without the Tulpar toolchain:
tulpar build hello.tpr # → ./hello (or hello.exe on Windows)Interactive REPL
Section titled “Interactive REPL”Tulpar also has a Read-Eval-Print Loop. Run the binary with no arguments to start it:
tulpar --replType expressions or statements and see results immediately. Use
Ctrl+D (Linux/macOS) or Ctrl+Z (Windows) to exit.
Where to go next
Section titled “Where to go next”- Syntax & Variables — types, literals, operators.
- Control Flow —
if,while,for. - Functions — definition, recursion, return.
- Examples — runnable sample programs.