PirateLang is a fun, pirate-themed programming language implemented in Python. Perfect for pirates who want to code while sailing the seas!
shout- Print something to the console- Example:
shout "Ahoy, matey!"
- Example:
ask- Get input from the user- Example:
ask name
- Example:
stash- Store a value in a variable- Example:
gold stash 100
- Example:
if- Conditional statements- Example:
if gold > 50 { shout "Rich!" }
- Example:
loop- Looping structure- Example:
loop if i < 10 { shout i }
- Example:
plunder- Declare a function- Example:
plunder greet() { shout "Ahoy!" }
- Example:
aye- Boolean true- Example:
if aye { shout "Truth!" }
- Example:
nay- Boolean false- Example:
if nay { shout "Lie!" }
- Example:
be- Equality comparison- Example:
if x be 10 { shout "Ten!" }
- Example:
booty- Return from a function- Example:
booty treasure
- Example:
- Strings:
"treasure" - Numbers:
3,7.5 - Booleans:
ayeornay
- Clone the repository:
git clone https://github.com/PrasmitP/piratelang.git cd piratelang