Skip to content

PrasmitP/piratelang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PirateLang - A Pirate-Themed Interpreted Language

PirateLang is a fun, pirate-themed programming language implemented in Python. Perfect for pirates who want to code while sailing the seas!

Language Features

Keywords

  1. shout - Print something to the console
    • Example: shout "Ahoy, matey!"
  2. ask - Get input from the user
    • Example: ask name
  3. stash - Store a value in a variable
    • Example: gold stash 100
  4. if - Conditional statements
    • Example: if gold > 50 { shout "Rich!" }
  5. loop - Looping structure
    • Example: loop if i < 10 { shout i }
  6. plunder - Declare a function
    • Example: plunder greet() { shout "Ahoy!" }
  7. aye - Boolean true
    • Example: if aye { shout "Truth!" }
  8. nay - Boolean false
    • Example: if nay { shout "Lie!" }
  9. be - Equality comparison
    • Example: if x be 10 { shout "Ten!" }
  10. booty - Return from a function
    • Example: booty treasure

Data Types

  • Strings: "treasure"
  • Numbers: 3, 7.5
  • Booleans: aye or nay

Getting Started

  1. Clone the repository:
    git clone https://github.com/PrasmitP/piratelang.git
    cd piratelang

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages