JarKnight Mascot

Getting Started with Jarlang

Welcome!

Jarlang is a warrior-themed, beginner-friendly language for learning programming and experimenting with new ideas. Its syntax is playful, but its features are powerful—perfect for both new coders and creative tinkerers.

đź’¬ Questions or suggestions?
Share your feedback or report issues →

Why Jarlang?

1. Running Jarlang

To run a .vase file, use the provided runner script:

./run.sh

Then use the !run command in the REPL:

!run yourfile.vase

2. Language Concepts Tutorial

Variables

Declare with wield:

wield x 10
wield name "JarKnight"

Types: Ints, Doubles, Strings

wield a 42      # int
wield b 3.14    # double
wield s "hello" # string

Conditionals

wield n 5
judge n > 0 mend chant "positive"
orjudge n == 0 mend chant "zero"
orjudge mend chant "negative"

Functions & Function Defining

forge add(a, b) {
  mend a + b
}
chant add(2, 3)  # prints 5

Loops

While loop: lest

wield i 0
lest i < 3 {
  chant i
  i = i + 1
}

For loop: endure

endure wield j 0; j < 3; j = j + 1 {
  chant j
}

Strings & Operations

wield greeting "Hello, " + name
chant greeting

Importing & Using the Standard Library

summon "stdlib.vase"
chant commune(3, 4)  # prints 7.0

3. Standard Library Highlights

Jarlang's standard library includes many helpers for math, strings, and more. Here are some favorites:

See the full list for more!

4. Tips & Best Practices

Ready to experiment?
Jarlang is designed for learning and creativity. Try changing values, writing your own functions, and exploring the standard and test libraries. The best way to learn is by doing—so start forging your own Jarlang scripts!

Need help? Explore the docs or ask for examples!