From 964b91311ef68245147afcc22d9961e3fca6fc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:09:18 -0400 Subject: [PATCH 1/9] Create doc-SP.md --- doc-SP.md | 175 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 doc-SP.md diff --git a/doc-SP.md b/doc-SP.md new file mode 100644 index 0000000..9cbfce2 --- /dev/null +++ b/doc-SP.md @@ -0,0 +1,175 @@ + + +
+ +# Rickroll Programming Language +![Build](https://img.shields.io/badge/Build-passing-orange?style=for-the-badge&logo=appveyor) +![Python](https://img.shields.io/badge/Python-3.6%2B-brightgreen?style=for-the-badge&logo=appveyor) +![License](https://img.shields.io/badge/License-MIT-red?style=for-the-badge&logo=appveyor) +
+Rick Roll Programming Language, a language that is rickroll based! + +![](https://repository-images.githubusercontent.com/367934588/4a27ae00-b73b-11eb-801b-36dd1756dc93) + +## Hello World +**Although Rickroll can be transpiled into Python3, its syntax is not completely similar to Python's** +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** + +Rickroll-Lang: +``` +take me to ur heart + give msg up "Never gonna give you up, never gonna let you down~\n" + i just wanna tell u how im feeling msg +say goodbye +``` +Equivalent to Python +```python +if __name__ == '__main__': + msg = "Never gonna give you up, never gonna let you down~\n" + print(msg, end='') + +``` + +Equivalent to C++ +```c++ +#include +using namespace std; +int main(int argc, char* argv[]){ + string msg = "Never gonna give you up, never gonna let you down~\n"; + cout< + +
+ +**Sorry, it's this:** +``` +Never gonna give you up, never gonna let you down~ +``` +**The keywords can be separated freely** +``` +takemetourheart + give msg up "Never gonna give you up, never gonna let you down~\n" + i justwanna telluhowim feeling msg +say good bye +``` +This is also executable + + +## Run Code +Execute by converting .rickroll to Python +```shell +python3 RickRoll.py [Source Code File Name] +``` +Execute by converting .rickroll to C++ (Requires g++ compiler and has numerous bugs) +```shell +python3 RickRoll.py -cpp [Source Code File Name] +``` +Execute by interpreter +```shell +python3 RickRoll.py -intpr [Source Code File Name] +``` +If you want to know the execution time: +> Add "--time" +```shell +python3 RickRoll.py [Source Code File Name] --time +``` +Generate and play an audio from .rickroll +```shell +python3 RickRoll.py [Source Code File Name] --audio +``` + +## VsCode Extension +https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang + + +## Requirements +- [Python libraries](https://github.com/Rick-Lang/rickroll-lang/blob/main/requirements.txt) +- [Python 3.6+](https://www.python.org/downloads/release/python-3610/) +- G++ compiler (For translating RickRoll to C++) + + +## Features +- *[Turing-complete](https://en.wikipedia.org/wiki/Turing_completeness)* +- *Support [Python 3.6+](https://www.python.org/downloads/release/python-3610/)* +- *Keywords/statements are all comming from [Rick Astley's](https://en.wikipedia.org/wiki/Rick_Astley) lyrics* +- *Keywords can be separated freely* +- *[Examples](https://github.com/Rick-Lang/rickroll-lang/tree/main/examples) to get started* +- *Translate RickRoll source code to Python3 and C++* +- *[Generate and play audios from .rickroll source code](https://github.com/Rick-Lang/rickroll-lang#Generate-Audio)* +- *Chinese, Russian, and English documentation* (Hope you guys can pull request docs in other languages lol) +- [*An editor for writing .rickroll code*](https://github.com/RedEnder666/RickRoll_IDE) +- [*An Vscode extension*](https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang) + + +## Generate Audio +Command: +``` +python3 RickRoll.py [Source Code File Name] --audio +``` +After running this command, the generator is gonna generate an audio from the .rickroll program and play it on your terminal + +![](https://github.com/Rick-Lang/rickroll-lang/blob/main/img/au_generator.PNG) + +## Documentation +We don't usually update [The Chinese Documentation / 中文文档](doc-Ch.md) + +**[English](doc.md)** +
+**[简体中文](doc-Ch.md)** +
+**[Russian](doc-RU.md)** + +# Rickroll-lang Editor +See https://github.com/RedEnder666/RickRoll_IDE + +# Todo! +In order to make RICKROll becoming a world heritage, YOU and I still have a bunch of things to do! +1. Add more keywords and built-in functions! +2. Write algorithms in RickRoll-Lang and upload them to [examples folder](examples). +3. Make syntax highlights for [VS Code](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide) and [Sublime](https://www.sublimetext.com/docs/syntax.html)! +4. Improve the current audio generator! +5. Improve the RickRoll interpreter! +6. Support "writing code by singing"! +7. Design a better icon! +8. [**SPREAD RICKROLL EVERYWHERE!!!**](https://www.bilibili.com/video/BV1uT4y1P7CX) + +# Rickroll Language Website +**[https://rickroll-lang.tech/introduction/](https://www.bilibili.com/video/BV1uT4y1P7CX)** +
+**_or_** +
+**https://rick-lang.github.io/rickroll-lang/** + +# Offcial Discord Server/Contact +https://discord.gg/bRrbZPjVDH +Join this server to chat with cool people or for support +
We currently need some people to join! + +Wechat/微信: githubsherlockcxk +
+Discord: Satin Wuker#0572 +
Valcan#1407 + +# Purpose +Despite the fact that the Rickroll Language is considered an esoteric programming language, it has its unignorable significance. I believe that rick roll is not only a way to promote people’s communication, it is also one of the most paramount art in the human history. The purpose of the Rickroll Language is to introduce this art to people in a distinctive way – programming. + +# Related Repos +Here are the projects that are inspired by Rickroll-lang +1. [Ricky](https://github.com/thevvx/Ricky) +2. [Rickroll-lang API](https://github.com/FusionSid/RicklangAPI) +3. [RickRoll IDE](https://github.com/RedEnder666/RickRoll_IDE) +4. [Rick Astley Bot](https://github.com/FusionSid/Rick-Astley-Bot) +5. [Rickroll Lang Vscode extension](https://github.com/FusionSid/Rickroll-Lang-VScode-Extension) + +# Credit: Rick Astley + Youtube: https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw +
Twitter: https://twitter.com/rickastley +
Facebook: https://www.facebook.com/RickAstley +
Spotify: https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt + From 0a8eff223940ac7122046677e2535949523cd5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:25:16 -0400 Subject: [PATCH 2/9] Update doc-SP.md --- doc-SP.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index 9cbfce2..412e680 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -2,17 +2,17 @@
-# Rickroll Programming Language +# Lenguaje de Programación Rickroll ![Build](https://img.shields.io/badge/Build-passing-orange?style=for-the-badge&logo=appveyor) ![Python](https://img.shields.io/badge/Python-3.6%2B-brightgreen?style=for-the-badge&logo=appveyor) -![License](https://img.shields.io/badge/License-MIT-red?style=for-the-badge&logo=appveyor) +![Licencia](https://img.shields.io/badge/License-MIT-red?style=for-the-badge&logo=appveyor)
-Rick Roll Programming Language, a language that is rickroll based! +Lenguaje de Programación Rick Roll, un lenguaje basado en rickroll! ![](https://repository-images.githubusercontent.com/367934588/4a27ae00-b73b-11eb-801b-36dd1756dc93) -## Hello World -**Although Rickroll can be transpiled into Python3, its syntax is not completely similar to Python's** +## Hola Mundo +**Aunque Rickroll se puede transpilar a Python3, su sintaxis no es completamente similar a la de 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** @@ -24,7 +24,7 @@ take me to ur heart i just wanna tell u how im feeling msg say goodbye ``` -Equivalent to Python +Equivalente a Python ```python if __name__ == '__main__': msg = "Never gonna give you up, never gonna let you down~\n" @@ -172,4 +172,3 @@ Here are the projects that are inspired by Rickroll-lang
Twitter: https://twitter.com/rickastley
Facebook: https://www.facebook.com/RickAstley
Spotify: https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt - From 8782f75207a7bbb071bbfb77068ebbaaf0bc2ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:29:02 -0400 Subject: [PATCH 3/9] Update doc-SP.md --- doc-SP.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index 412e680..fd612ab 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -13,32 +13,32 @@ Lenguaje de Programación Rick Roll, un lenguaje basado en rickroll! ## Hola Mundo **Aunque Rickroll se puede transpilar a Python3, su sintaxis no es completamente similar a la de 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** +1. No necesita sangría +2. El código debe escribirse dentro del método principal, de lo contrario, el intérprete no se ejecutará +3. **Las palabras clave se pueden separar libremente** Rickroll-Lang: ``` take me to ur heart - give msg up "Never gonna give you up, never gonna let you down~\n" - i just wanna tell u how im feeling msg + give msj up "Never gonna give you up, never gonna let you down~\n" + i just wanna tell u how im feeling msj say goodbye ``` Equivalente a Python ```python if __name__ == '__main__': - msg = "Never gonna give you up, never gonna let you down~\n" - print(msg, end='') + msj = "Never gonna give you up, never gonna let you down~\n" + print(msj, end='') ``` -Equivalent to C++ +Equivalente a C++ ```c++ #include using namespace std; int main(int argc, char* argv[]){ - string msg = "Never gonna give you up, never gonna let you down~\n"; - cout< Date: Wed, 19 Oct 2022 12:44:04 -0400 Subject: [PATCH 4/9] Update doc-SP.md --- doc-SP.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index fd612ab..f537eec 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -41,50 +41,50 @@ int main(int argc, char* argv[]){ cout<
-**Sorry, it's this:** +**Lo siento, es esto:** ``` Never gonna give you up, never gonna let you down~ ``` -**The keywords can be separated freely** +**Las palabras clave se pueden separar libremente** ``` takemetourheart give msj up "Never gonna give you up, never gonna let you down~\n" i justwanna telluhowim feeling msj say good bye ``` -This is also executable +Esto también es ejecutable -## Run Code -Execute by converting .rickroll to Python +## Ejecutar Código +Ejecutar convirtiendo .rickroll a Python ```shell -python3 RickRoll.py [Source Code File Name] +python3 RickRoll.py [Nombre del Archivo de Código Fuente] ``` -Execute by converting .rickroll to C++ (Requires g++ compiler and has numerous bugs) +Ejecutar convirtiendo .rickroll a C++ (Requiere compilador g++ y tiene numerosos bugs) ```shell -python3 RickRoll.py -cpp [Source Code File Name] +python3 RickRoll.py -cpp [Nombre del Archivo de Código Fuente] ``` -Execute by interpreter +Ejecutar con intérprete ```shell -python3 RickRoll.py -intpr [Source Code File Name] +python3 RickRoll.py -intpr [Nombre del Archivo de Código Fuente] ``` -If you want to know the execution time: -> Add "--time" +Si quieres saber el tiempo de ejecución: +> Añade "--time" ```shell -python3 RickRoll.py [Source Code File Name] --time +python3 RickRoll.py [Nombre del Archivo de Código Fuente] --time ``` Generate and play an audio from .rickroll ```shell -python3 RickRoll.py [Source Code File Name] --audio +python3 RickRoll.py [Nombre del Archivo de Código Fuente] --audio ``` -## VsCode Extension +## Extensión de VsCode https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang @@ -94,8 +94,8 @@ https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang - G++ compiler (For translating RickRoll to C++) -## Features -- *[Turing-complete](https://en.wikipedia.org/wiki/Turing_completeness)* +## Características +- *[Turing-completo](https://en.wikipedia.org/wiki/Turing_completeness)* - *Support [Python 3.6+](https://www.python.org/downloads/release/python-3610/)* - *Keywords/statements are all comming from [Rick Astley's](https://en.wikipedia.org/wiki/Rick_Astley) lyrics* - *Keywords can be separated freely* @@ -110,7 +110,7 @@ https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang ## Generate Audio Command: ``` -python3 RickRoll.py [Source Code File Name] --audio +python3 RickRoll.py [Nombre del Archivo de Código Fuente] --audio ``` After running this command, the generator is gonna generate an audio from the .rickroll program and play it on your terminal From df7a4f3737b47f8aa79c81c46b360efacb9eff49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:47:51 -0400 Subject: [PATCH 5/9] Update doc-SP.md --- doc-SP.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index f537eec..d4f8230 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -88,8 +88,8 @@ python3 RickRoll.py [Nombre del Archivo de Código Fuente] --audio https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang -## Requirements -- [Python libraries](https://github.com/Rick-Lang/rickroll-lang/blob/main/requirements.txt) +## Requisitos +- [Bibliotecas de Python](https://github.com/Rick-Lang/rickroll-lang/blob/main/requirements.txt) - [Python 3.6+](https://www.python.org/downloads/release/python-3610/) - G++ compiler (For translating RickRoll to C++) From 6755a689b7eb3832ac85b78676736e7c6a8b3371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:59:27 -0400 Subject: [PATCH 6/9] Update doc-SP.md --- doc-SP.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index d4f8230..91c1454 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -91,20 +91,20 @@ https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang ## Requisitos - [Bibliotecas de Python](https://github.com/Rick-Lang/rickroll-lang/blob/main/requirements.txt) - [Python 3.6+](https://www.python.org/downloads/release/python-3610/) -- G++ compiler (For translating RickRoll to C++) +- Compilador G++ (Para traducir RickRoll a C++) ## Características - *[Turing-completo](https://en.wikipedia.org/wiki/Turing_completeness)* -- *Support [Python 3.6+](https://www.python.org/downloads/release/python-3610/)* -- *Keywords/statements are all comming from [Rick Astley's](https://en.wikipedia.org/wiki/Rick_Astley) lyrics* -- *Keywords can be separated freely* -- *[Examples](https://github.com/Rick-Lang/rickroll-lang/tree/main/examples) to get started* -- *Translate RickRoll source code to Python3 and C++* -- *[Generate and play audios from .rickroll source code](https://github.com/Rick-Lang/rickroll-lang#Generate-Audio)* -- *Chinese, Russian, and English documentation* (Hope you guys can pull request docs in other languages lol) -- [*An editor for writing .rickroll code*](https://github.com/RedEnder666/RickRoll_IDE) -- [*An Vscode extension*](https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang) +- *Compatibilidad [Python 3.6+](https://www.python.org/downloads/release/python-3610/)* +- *Las palabras clave/declaraciones provienen de las letras de [Rick Astley](https://en.wikipedia.org/wiki/Rick_Astley)* +- *Las palabras clave se pueden separar libremente* +- *[Ejemplos](https://github.com/Rick-Lang/rickroll-lang/tree/main/examples) para comenzar* +- *Traduce código fuente de RickRoll a Python3 y C++* +- *[Generar y reproducir audios desde el código fuente de .rickroll](https://github.com/Rick-Lang/rickroll-lang#Generate-Audio)* +- *Documentación en chino, ruso, e inglés* (Espero ustedes puedan hacer pull requests de docs en otros idiomas lol) +- [*Un editor para escribir código .rickroll*](https://github.com/RedEnder666/RickRoll_IDE) +- [*Una extensión para Vscode*](https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang) ## Generate Audio From d12a6dd5d1d95d3ac5e128160be430b2e3831308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 13:05:05 -0400 Subject: [PATCH 7/9] Update doc-SP.md --- doc-SP.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index 91c1454..55235fa 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -89,32 +89,32 @@ https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang ## Requisitos -- [Bibliotecas de Python](https://github.com/Rick-Lang/rickroll-lang/blob/main/requirements.txt) +- [Bibliotecas de Python](requirements.txt) - [Python 3.6+](https://www.python.org/downloads/release/python-3610/) - Compilador G++ (Para traducir RickRoll a C++) ## Características -- *[Turing-completo](https://en.wikipedia.org/wiki/Turing_completeness)* +- *[Turing-completo](https://es.wikipedia.org/wiki/Turing_completo)* - *Compatibilidad [Python 3.6+](https://www.python.org/downloads/release/python-3610/)* -- *Las palabras clave/declaraciones provienen de las letras de [Rick Astley](https://en.wikipedia.org/wiki/Rick_Astley)* +- *Las palabras clave/declaraciones provienen de las letras de [Rick Astley](https://es.wikipedia.org/wiki/Rick_Astley)* - *Las palabras clave se pueden separar libremente* -- *[Ejemplos](https://github.com/Rick-Lang/rickroll-lang/tree/main/examples) para comenzar* +- *[Ejemplos](examples) para comenzar* - *Traduce código fuente de RickRoll a Python3 y C++* -- *[Generar y reproducir audios desde el código fuente de .rickroll](https://github.com/Rick-Lang/rickroll-lang#Generate-Audio)* +- *[Generar y reproducir audios desde el código fuente de .rickroll](#Generar-Audio)* - *Documentación en chino, ruso, e inglés* (Espero ustedes puedan hacer pull requests de docs en otros idiomas lol) - [*Un editor para escribir código .rickroll*](https://github.com/RedEnder666/RickRoll_IDE) - [*Una extensión para Vscode*](https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang) -## Generate Audio +## Generar Audio Command: ``` python3 RickRoll.py [Nombre del Archivo de Código Fuente] --audio ``` After running this command, the generator is gonna generate an audio from the .rickroll program and play it on your terminal -![](https://github.com/Rick-Lang/rickroll-lang/blob/main/img/au_generator.PNG) +![](img/au_generator.PNG) ## Documentation We don't usually update [The Chinese Documentation / 中文文档](doc-Ch.md) From dd171dc908b206e1358806c4da9c937ba33c4147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 13:21:51 -0400 Subject: [PATCH 8/9] **BIG MISTAKE FIXED** LMAO --- doc-SP.md | 251 ++++++++++++++++++++++++------------------------------ 1 file changed, 109 insertions(+), 142 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index 55235fa..415862c 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -1,174 +1,141 @@ +# Documentation +its not a rickroll! get into the car and the journey is gonna start in 3 secs - -
+# Notice: +**The syntax of RickRoll-Lang is not 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 -# Lenguaje de Programación Rickroll -![Build](https://img.shields.io/badge/Build-passing-orange?style=for-the-badge&logo=appveyor) -![Python](https://img.shields.io/badge/Python-3.6%2B-brightgreen?style=for-the-badge&logo=appveyor) -![Licencia](https://img.shields.io/badge/License-MIT-red?style=for-the-badge&logo=appveyor) -
-Lenguaje de Programación Rick Roll, un lenguaje basado en rickroll! - -![](https://repository-images.githubusercontent.com/367934588/4a27ae00-b73b-11eb-801b-36dd1756dc93) - -## Hola Mundo -**Aunque Rickroll se puede transpilar a Python3, su sintaxis no es completamente similar a la de Python.** -1. No necesita sangría -2. El código debe escribirse dentro del método principal, de lo contrario, el intérprete no se ejecutará -3. **Las palabras clave se pueden separar libremente** - -Rickroll-Lang: +## Commands to execute your code +Execute by converting .rickroll to Python ``` -take me to ur heart - give msj up "Never gonna give you up, never gonna let you down~\n" - i just wanna tell u how im feeling msj -say goodbye +python3 RickRoll.py [Source Code File Name] ``` -Equivalente a Python -```python -if __name__ == '__main__': - msj = "Never gonna give you up, never gonna let you down~\n" - print(msj, end='') - +Execute by converting .rickroll to C++ (Requires g++ compiler, however this feature is quite immature, sometimes probably won't work) ``` - -Equivalente a C++ -```c++ -#include -using namespace std; -int main(int argc, char* argv[]){ - string msj = "Never gonna give you up, never gonna let you down~\n"; - cout< - -
- -**Lo siento, es esto:** +If you want to know the execution time: +> Add "--time" ``` -Never gonna give you up, never gonna let you down~ +python3 RickRoll.py [Source Code File Name] --time ``` -**Las palabras clave se pueden separar libremente** +Generate and play an audio from .rickroll (This feature is quite new) ``` -takemetourheart - give msj up "Never gonna give you up, never gonna let you down~\n" - i justwanna telluhowim feeling msj -say good bye +python3 RickRoll.py [Source Code File Name] --audio ``` -Esto también es ejecutable - -## Ejecutar Código -Ejecutar convirtiendo .rickroll a Python -```shell -python3 RickRoll.py [Nombre del Archivo de Código Fuente] -``` -Ejecutar convirtiendo .rickroll a C++ (Requiere compilador g++ y tiene numerosos bugs) -```shell -python3 RickRoll.py -cpp [Nombre del Archivo de Código Fuente] +## Hello World ``` -Ejecutar con intérprete -```shell -python3 RickRoll.py -intpr [Nombre del Archivo de Código Fuente] +take me to ur heart # This is the MAIN METHOD + give msg up "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 goodbye # End the main method ``` -Si quieres saber el tiempo de ejecución: -> Añade "--time" -```shell -python3 RickRoll.py [Nombre del Archivo de Código Fuente] --time +And you can get the output on your terminal: ``` -Generate and play an audio from .rickroll -```shell -python3 RickRoll.py [Nombre del Archivo de Código Fuente] --audio +Never gonna give you up, never gonna let you down~ ``` -## Extensión de VsCode -https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang +## Defining Variable +You can define int, float, string, list/array, set, and tuple. +``` +give a up 10 +give b up "It is a string" +give c up ["This", "is", "an", "array"] +``` -## Requisitos -- [Bibliotecas de Python](requirements.txt) -- [Python 3.6+](https://www.python.org/downloads/release/python-3610/) -- Compilador G++ (Para traducir RickRoll a C++) +## If Statement +Indentation in RickRoll-lang is optional. +``` +take me to ur heart~ # You can add "~" at the end of the statement (it is totally optional) + give a up 10 + and if u ask me how im feeling a is 10 + i just wanna tell u how im feeling "A is 10!" + say goodbye -## Características -- *[Turing-completo](https://es.wikipedia.org/wiki/Turing_completo)* -- *Compatibilidad [Python 3.6+](https://www.python.org/downloads/release/python-3610/)* -- *Las palabras clave/declaraciones provienen de las letras de [Rick Astley](https://es.wikipedia.org/wiki/Rick_Astley)* -- *Las palabras clave se pueden separar libremente* -- *[Ejemplos](examples) para comenzar* -- *Traduce código fuente de RickRoll a Python3 y C++* -- *[Generar y reproducir audios desde el código fuente de .rickroll](#Generar-Audio)* -- *Documentación en chino, ruso, e inglés* (Espero ustedes puedan hacer pull requests de docs en otros idiomas lol) -- [*Un editor para escribir código .rickroll*](https://github.com/RedEnder666/RickRoll_IDE) -- [*Una extensión para Vscode*](https://marketplace.visualstudio.com/items?itemName=FusionSid.rickroll-lang) +say goodbye~ +``` +Equivalent to Python: +```python +if __name__ == '__main__': + a = 10 + if a == 10: + print("A is 10!") +``` -## Generar Audio -Command: +And you will get this on your terminal ``` -python3 RickRoll.py [Nombre del Archivo de Código Fuente] --audio +"A is 10!" ``` -After running this command, the generator is gonna generate an audio from the .rickroll program and play it on your terminal -![](img/au_generator.PNG) +## Loop +RickRoll supports 2 kinds of loop, the first one is endless loop, and the second one is while loop +``` +take me to ur heart + together forever and never to part # Endless loop -## Documentation -We don't usually update [The Chinese Documentation / 中文文档](doc-Ch.md) + say goodbye -**[English](doc.md)** -
-**[简体中文](doc-Ch.md)** -
-**[Russian](doc-RU.md)** +say_good_bye +``` +Equivalent to Python: +```Python +if __name__ == "__main__": + while True: + pass +``` +While loop +``` +take me to ur heart + give a up 10 + together forever with a is less than 10 + give a up a + 1 + say goodbye -# Rickroll-lang Editor -See https://github.com/RedEnder666/RickRoll_IDE +say goodbye +``` +Equivalent to python: +``` +if __name__ == "__main__": + a = 0 + while a < 10: + a += 1 -# Todo! -In order to make RICKROll becoming a world heritage, YOU and I still have a bunch of things to do! -1. Add more keywords and built-in functions! -2. Write algorithms in RickRoll-Lang and upload them to [examples folder](examples). -3. Make syntax highlights for [VS Code](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide) and [Sublime](https://www.sublimetext.com/docs/syntax.html)! -4. Improve the current audio generator! -5. Improve the RickRoll interpreter! -6. Support "writing code by singing"! -7. Design a better icon! -8. [**SPREAD RICKROLL EVERYWHERE!!!**](https://www.bilibili.com/video/BV1uT4y1P7CX) +``` -# Rickroll Language Website -**[https://rickroll-lang.tech/introduction/](https://www.bilibili.com/video/BV1uT4y1P7CX)** -
-**_or_** -
-**https://rick-lang.github.io/rickroll-lang/** +## Defining Function +RickRoll supports return function +``` +gonna do_something arg1, arg2 # Define a function + when i give my arg1, arg2 it will be completely # Return arg1 and arg2 +say goodbye +``` +Equivalent to Python: +```python +def do_something(arg1, arg2): + return arg1, arg2 +``` -# Offcial Discord Server/Contact -https://discord.gg/bRrbZPjVDH -Join this server to chat with cool people or for support -
We currently need some people to join! +## Import Python Library/file +``` +we know the LIB_NAME and we're gonna play it +``` +Equivalent to Python: +```python +import LIB_NAME +``` -Wechat/微信: githubsherlockcxk -
-Discord: Satin Wuker#0572 -
Valcan#1407 - -# Purpose -Despite the fact that the Rickroll Language is considered an esoteric programming language, it has its unignorable significance. I believe that rick roll is not only a way to promote people’s communication, it is also one of the most paramount art in the human history. The purpose of the Rickroll Language is to introduce this art to people in a distinctive way – programming. - -# Related Repos -Here are the projects that are inspired by Rickroll-lang -1. [Ricky](https://github.com/thevvx/Ricky) -2. [Rickroll-lang API](https://github.com/FusionSid/RicklangAPI) -3. [RickRoll IDE](https://github.com/RedEnder666/RickRoll_IDE) -4. [Rick Astley Bot](https://github.com/FusionSid/Rick-Astley-Bot) -5. [Rickroll Lang Vscode extension](https://github.com/FusionSid/Rickroll-Lang-VScode-Extension) - -# Credit: Rick Astley - Youtube: https://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw -
Twitter: https://twitter.com/rickastley -
Facebook: https://www.facebook.com/RickAstley -
Spotify: https://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt +### Embed Python Code +``` +py: print("hello Rick Astley") +py: import sys +``` +Equivalent to Python: +```python +print("hello Rick Astley") +import sys +``` From bbe0bb63af9c9a4bf89a6ad60f55b4b630b4942d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Wed, 19 Oct 2022 14:01:07 -0400 Subject: [PATCH 9/9] Update doc-SP.md --- doc-SP.md | 110 +++++++++++++++++++++++++++--------------------------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/doc-SP.md b/doc-SP.md index 415862c..aed931a 100644 --- a/doc-SP.md +++ b/doc-SP.md @@ -1,94 +1,94 @@ -# Documentation -its not a rickroll! get into the car and the journey is gonna start in 3 secs +# Documentación +no es un rickroll! súbete al auto y el viaje comenzará en 3 segs -# Notice: -**The syntax of RickRoll-Lang is not 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 +# Aviso: +**La sintaxis de RickRoll-Lang no es la misma que la de Python** +1. No necesita sangría +2. El código debe escribirse dentro del método principal, de lo contrario, el intérprete no se ejecutará. -## Commands to execute your code -Execute by converting .rickroll to Python +## Comandos para ejecutar tu código +Ejecutar convirtiendo .rickroll a Python ``` -python3 RickRoll.py [Source Code File Name] +python3 RickRoll.py [Nombre del archivo de código fuente] ``` -Execute by converting .rickroll to C++ (Requires g++ compiler, however this feature is quite immature, sometimes probably won't work) +Ejecutar convirtiendo .rickroll a C++ (Requiere el compilador g++, sin embargo, esta característica es bastante inmadura, a veces probablemente no funcione) ``` -python3 RickRoll.py -cpp [Source Code File Name] +python3 RickRoll.py -cpp [Nombre del archivo de código fuente] ``` -If you want to know the execution time: -> Add "--time" +Si quieres saber el tiempo de ejecución: +> Añade "--time" ``` -python3 RickRoll.py [Source Code File Name] --time +python3 RickRoll.py [Nombre del archivo de código fuente] --time ``` -Generate and play an audio from .rickroll (This feature is quite new) +Generar y reproducir un audio desde .rickroll (Esta característica es bastante nueva) ``` -python3 RickRoll.py [Source Code File Name] --audio +python3 RickRoll.py [Nombre del archivo de código fuente] --audio ``` -## Hello World +## Hola Mundo ``` -take me to ur heart # This is the MAIN METHOD - give msg up "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 goodbye # End the main method +take me to ur heart # Este es el MÉTODO PRINCIPAL + give msj up "Never gonna give you up, never gonna let you down~\n" # Definir una variable + i just wanna tell u how im feeling msj # imprime la variable "msj" +say goodbye # Finalizar el método principal ``` -And you can get the output on your terminal: +Y puede obtener la salida en su terminal: ``` Never gonna give you up, never gonna let you down~ ``` -## Defining Variable -You can define int, float, string, list/array, set, and tuple. +## Definiendo Variable +Puede definir int, float, string, list/array, set y tuple. ``` give a up 10 -give b up "It is a string" -give c up ["This", "is", "an", "array"] +give b up "Es un string" +give c up ["Esto", "es", "un", "array"] ``` -## If Statement -Indentation in RickRoll-lang is optional. +## Declaración If +La sangría en RickRoll-lang es opcional. ``` -take me to ur heart~ # You can add "~" at the end of the statement (it is totally optional) +take me to ur heart~ # Puedes agregar "~" al final de la declaración (es totalmente opcional) give a up 10 and if u ask me how im feeling a is 10 - i just wanna tell u how im feeling "A is 10!" + i just wanna tell u how im feeling "¡A es 10!" say goodbye say goodbye~ ``` -Equivalent to Python: +Equivalente a Python: ```python if __name__ == '__main__': a = 10 if a == 10: - print("A is 10!") + print("¡A es 10!") ``` -And you will get this on your terminal +Y obtendrás esto en tu terminal. ``` -"A is 10!" +"¡A es 10!" ``` -## Loop -RickRoll supports 2 kinds of loop, the first one is endless loop, and the second one is while loop +## Bucle +RickRoll admite 2 tipos de bucle, el primero es bucle sin fin y el segundo es bucle mientras ``` take me to ur heart - together forever and never to part # Endless loop + together forever and never to part # Bucle sin fin say goodbye say_good_bye ``` -Equivalent to Python: +Equivalente a Python: ```Python if __name__ == "__main__": while True: pass ``` -While loop +Bucle mientras ``` take me to ur heart give a up 10 @@ -98,7 +98,7 @@ take me to ur heart say goodbye ``` -Equivalent to python: +Equivalente a python: ``` if __name__ == "__main__": a = 0 @@ -107,35 +107,35 @@ if __name__ == "__main__": ``` -## Defining Function -RickRoll supports return function +## Definiendo Función +RickRoll admite función retorno ``` -gonna do_something arg1, arg2 # Define a function - when i give my arg1, arg2 it will be completely # Return arg1 and arg2 +gonna hacer_algo arg1, arg2 # Definir una función + when i give my arg1, arg2 it will be completely # Retornar arg1 y arg2 say goodbye ``` -Equivalent to Python: +Equivalente a Python: ```python -def do_something(arg1, arg2): +def hacer_algo(arg1, arg2): return arg1, arg2 ``` -## Import Python Library/file +## Importar Archivo/Biblioteca de Python ``` -we know the LIB_NAME and we're gonna play it +we know the NOMBRE_BIB and we're gonna play it ``` -Equivalent to Python: +Equivalente a Python: ```python -import LIB_NAME +import NOMBRE_BIB ``` -### Embed Python Code +### Insertar código de Python ``` -py: print("hello Rick Astley") +py: print("hola Rick Astley") py: import sys ``` -Equivalent to Python: +Equivalente a Python: ```python -print("hello Rick Astley") +print("hola Rick Astley") import sys -``` +``` \ No newline at end of file