rickroll-lang
Rick Roll Language is a rickroll based, process oriented, dynamic, strong, esoteric programming language. All of the keywords/statements are coming from Rick Astley's lyrics.
- his language is in its testing period, we will probably change some keywords.
- We don't usually update The Chinese Documentation / 中文文档
- Also, I am a little bit buzy these days, so I am not going to update rickroll-lang recently
Run Code
Execute by converting .rickroll to Python
python3 RickRoll.py -py [Source Code File Name]
Execute by converting .rickroll to C++ (Requires g++ compiler)
python3 RickRoll.py -cpp [Source Code File Name]
If you want to know the execution time:
Add "--time"
python3 RickRoll.py -py [Source Code File Name] --time
Generate and play an audio from .rickroll
python3 RickRoll.py -py [Source Code File Name] --audio
Hello World
The syntax of RickRoll-Lang is not completely similar to Python
- It doesn't need indentation
- The code must be written inside the main method, otherwise the interpreter will not execute
Rick Roll-Lang:
take_me_to_ur_heart # This is the MAIN METHOD
give_u_up msg = "Never gonna give you up, never gonna let you down~\n" # Define a variable
i_just_wanna_tell_u_how_im_feeling msg # print the "msg" variable
say_good_bye # End the main method
Equivalent to Python
if __name__ == '__main__':
msg = "Never gonna give you up, never gonna let you down~\n"
print(msg, end='')
Equivalent to C++
#include<iostream>
using namespace std;
int main(int argc, char* argv[]){
string msg = "Never gonna give you up, never gonna let you down~\n";
cout<<msg;
}
And you can get the output on your terminal:
Sorry, it's this:
Never gonna give you up, never gonna let you down~
Features
- Turing-complete
- Support Python 3.6+
- Keywords/statements are all comming from Rick Astley's lyrics
- Examples to get started
- Translate RickRoll source code to Python3 and C++
- Generate and play audios from .rickroll source code
- Documentation for both English and Chinese
Generate Audio
How to use this generator:
python3 RickRoll.py -r [Source Code File Name] --audio
This generates an audio from the .rickroll program and plays it in your terminal
Requirements
- Python libraries
- Python 3.6+
- G++ compiler (For translating RickRoll to C++)