PEWPEW.EXE
โ—„ all skins
๐Ÿดโ€โ˜ ๏ธ

๐Ÿดโ€โ˜ ๏ธ PirateLang

Arr! Code be a quest, output be a holler, ye scallywag.

PirateLang is a spinoff skin โ€” quest for functions, holler to print, plunder to return, aye / nay for booleans. Build yer own binary with ./build.sh skin piratelang and set sail.

Sample programs

ahoy

quest greet(scroll name) {
    holler("ahoy " + name + "!")
}
greet("matey")

count the loot

doubloon n = 1
sail (n <= 3) {
    holler("coin " + n)
    n = n + 1
}

Vocabulary

Concept๐Ÿดโ€โ˜ ๏ธ PirateLang word
whole numberdoubloon
decimalpiece
textscroll
true / falseoath
trueaye
falsenay
nothingdavy
ifarr
elsevast
while-loopsail
repeatreload
timesrounds
functionquest
returnplunder
printholler
breakabandon
continuesailon
array / listfleet
map / objectchart
for-eachforevery
inaboard
importraid
type ofwhatbe
length / countheadcount
assertiswear
shout (uppercase)bellow

Error tone

Even mistakes stay in character:

Blimey [line 3]: Division by zero! ye scallywag!