# m5rcode-Ubuntu – A Ubuntu Port of [m5rcode](https://github.com/m4rcel-lol/m5rcode) ![Polyglot](https://img.shields.io/badge/language-Python%2FJS%2FPHP%2FC%23%2FC++-purple.svg) ![Status](https://img.shields.io/badge/status-experimental-orange.svg) ![Ubuntu](https://raw.githubusercontent.com/m4rcel-lol/assets/refs/heads/main/Operating_System_Ubuntu.svg) ## πŸ€” What even is m5rcode? **m5rcode** is an experimental **polyglot programming language** written with a blend of **Python, JavaScript, PHP, C#, and C++**. It uses obfuscation and cross-language embedding to allow developers to write multi-language scripts in a single file (`.m5r`). The project includes a custom **REPL shell** (`m5rshell`) and an **interpreter** for `.m5r` files. --- ## ✨ Features - **Polyglot Language Core** - Mix **Python, JavaScript, PHP, CSS, C#, and C++** in a single `.m5r` file. - Interpreter extracts, executes, and blends code blocks. - Supports obfuscation for added challenge and uniqueness. - **m5rshell – The REPL Shell** - Interactive REPL for testing code snippets. - Commands: - `new`, `nano`, `run`, `fastfetch`, `credits`, `exit`, `cd` - Developer-friendly CLI for creating & running `.m5r` scripts. - **.m5r File Runner (Interpreter)** - Executes `.m5r` polyglot files directly. - Efficient, multi-language-aware execution engine. - Provides fast output even for obfuscated code. --- ## πŸ”§ Requirements - Python **3.8+** --- ## πŸ“¦ Installation Clone this repository: ```bash git clone https://github.com/m4rcel-lol/m5rcode-ubuntu.git cd m5rcode ``` --- ## ⚑ Quick Start ### Run the REPL shell ```bash python3 m5rshell.py ``` --- ## πŸ“ Example Here’s a `hello.m5r` script that prints **Hello world** in all supported languages: ```m5r (char)c))); } } ?> int main() { int arr[] = {72,101,108,108,111,32,119,111,114,108,100}; for(int i = 0; i < 11; i++) std::cout << (char)arr[i]; std::cout << std::endl; return 0; } ?> ``` --- ## πŸ“‚ Project Structure ``` m5rcode/ β”œβ”€ m5rshell.py # The REPL shell β”œβ”€ m5r_interpreter.py # The .m5r polyglot interpreter β”œβ”€ files/ # Sample m5rcode scripts β”œβ”€ utils/ # Handling everything β”œβ”€ commands # Commands handling β”œβ”€ version.txt # Version of m5rcode showing on fastfetch command β”œβ”€ requirements.txt # Modules u need to install for m5rcode to work. └─ README.md ``` --- ## 🀝 Contributing Contributions are welcome! If you want to add support for more languages, open an issue or PR. --- ## πŸ‘₯ Credits - **Creator:** [m5rcel](https://github.com/m4rcel-lol) - **Contributors:** The m5rcode community --- ## πŸ“œ Where can I install m5rcode from? You can install m5rcode from this repo or the Windows repo found on the top of this readme.