piratelang
v1.2.17
Published
Small and fun programming language
Downloads
24
Readme
PirateLang-V2
Small and fun programming language
Example code:
This code will make a function called varTOeet which adds 1337 to the input value which is a variable called scrub and on the last line we print the new value out
do(
define(makeLeet, fun(varTOleet, +(varTOleet, 1337))),
define(scrub, 420),
ahoy(makeLeet(scrub))
)
output: 1757
TODO
- Make IS (interactive shell)
- Plugin for editors
- Make it more pirate like
- Add some form of graphics api
#Install: To install Piratelang you will need to have nodejs installed on your computer, when you have that run this command
npm i piratelang -g
NOTE: if you are on mac you may have to run the command as sudo now you can run your programs by typing
pirate -f file.txt
Whenever you want to update piratelang you simply type
pirate -u
Huge thanks Marijn Haverbeke and his book Eloquent JavaScript second edition book