/Rick-Lang-Scripts

An (unofficial) guide and list of scripts to show how to use the best programming language in the world because python's for losers and this is the real shit

Primary LanguageShell

Rick-Lang Official Repo Stats:

Contributors Forks Stargazers Issues MIT License


Logo

Rickroll-Lang Guide and Scipts

An (unofficial) guide and list of scripts to show how to use the best programming language in the world because python's for losers and this is the real shit
Language Source Code (Github) »

Discord Server · Report Bug (Issues) · Website

!!! This is not complete yet !!!

Table of Contents
  1. Getting Started:
  2. Variables:
  3. Printing:
  4. Importing:

Getting Started


Note: Language name is rickroll-lang but I find ricklang easier to say so I will use that in the examples but remember it is actualy rickroll-lang

Installation

The first thing you need to do to use this amazing language is to install it.

Currently the only way to get it, is to download from github. You can either git pull it or just download as zip.

Here is the link to the github repo/source code for the project

Here is the link to download as zip

Shell Script:

I have included a shell instalation script which will download the latest version of the rickroll language and install it as a command in your /usr/local/bin directory.

Usage:

Download the install.sh file
Run sudo bash install.sh
Make sure you run with sudo perms or it will not work

Also if you dont want to download the script and then run it like that you can just do it all in one line witht this: curl -s -L https://raw.githubusercontent.com/FusionSid/Rick-Lang-Scripts/master/install.sh | sudo bash

Now whenever you want to run ricklang code you do ricklang <filename> [*optional cli args]

  • Eg: To run main.rickroll: ricklang main.rickroll
  • Eg: Run with time and audio: ricklang main.rickroll --time --audio

Note: This only works on mac and linux

For windows @micfun123 made a bat script for this but im not sure if it works because I don't use windows and he said it didn't work when he tested it.

VSCode extension

This is not needed but this extension contains some snippets for the language it also provides syntax highlighting for otherwise plain-text files: Link to download


Ricklang files

Making a rickroll file is easy, just make a file and end it with .rickroll

Note: File names wont actually matter so .rr or .get_good or .you_suck_imma_rickroll_you will all work.
You can even use no file extension. (which I do sometimes when i'm lazy)


The main method

All code in rick lang MUST go inside the main method

You start the main method with take me to ur heart

And end it with say goodbye

Example:

take me to ur heart
    [code goes here]
say goodbye

Note:

Rickroll-Lang + Python

  • Rickroll-Lang is written in python3
  • The interpreter converts the rickroll-lang code into python code and runs that which means you can use things from python in rickroll-lang

But: Rick-Roll-Lang is not the same as python!

  1. It doesn't need indentation
  2. The code must be written inside the main method, otherwise the interpreter will not execute
  3. The keywords can be separated freely

Hello World

Next, Lets learn how to print "Hello World" to the console.

To print in rickroll-lang we use the keyword i just wanna tell u how im feeling

Example: i just wanna tell u how im feeling "Hello World"

So now that we know that lets put it into the main function and run it!

Code in rickroll-lang:

take me to ur heart
    i just wanna tell u how im feeling "Hello World\n"
say goodbye

Same code in Python:

if __name__ == '__main__':
  msg = "Hello World\n"
  print(msg, end='')

Same code in c++

#include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
    cout << "Hello World!";
}

Congratulations! You just printed "Hello World" in rickroll-lang :)

Now you can look in the folders for examples and explanations for different things in rickroll-lang

(back to top)


Acknowledgments

This language was made by Satin Wuker:

  • Wechat: githubsherlockcxk
  • Discord: Satin Wuker#0572

The song "Never gonna give you up" was made by Rick Astley:

Source code / Github page for rickroll-lang

(back to top)