โ 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 number | doubloon |
| decimal | piece |
| text | scroll |
| true / false | oath |
| true | aye |
| false | nay |
| nothing | davy |
| if | arr |
| else | vast |
| while-loop | sail |
| repeat | reload |
| times | rounds |
| function | quest |
| return | plunder |
| holler | |
| break | abandon |
| continue | sailon |
| array / list | fleet |
| map / object | chart |
| for-each | forevery |
| in | aboard |
| import | raid |
| type of | whatbe |
| length / count | headcount |
| assert | iswear |
| shout (uppercase) | bellow |
Error tone
Even mistakes stay in character:
Blimey [line 3]: Division by zero! ye scallywag!