{"id":23111911,"url":"https://github.com/shayyz-code/poo","last_synced_at":"2025-04-03T23:44:16.729Z","repository":{"id":268045755,"uuid":"903202191","full_name":"shayyz-code/poo","owner":"shayyz-code","description":"I created my own Programming Language","archived":false,"fork":false,"pushed_at":"2024-12-14T02:03:31.000Z","size":288,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T11:31:24.721Z","etag":null,"topics":["interpreter","programming-language","rust"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shayyz-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-14T01:35:43.000Z","updated_at":"2025-01-04T13:07:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba05ddfd-7a45-4005-9de2-44faa4c2b3e9","html_url":"https://github.com/shayyz-code/poo","commit_stats":null,"previous_names":["shayyz-code/poo"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayyz-code%2Fpoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayyz-code%2Fpoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayyz-code%2Fpoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shayyz-code%2Fpoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shayyz-code","download_url":"https://codeload.github.com/shayyz-code/poo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097973,"owners_count":20883127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interpreter","programming-language","rust"],"created_at":"2024-12-17T02:12:39.109Z","updated_at":"2025-04-03T23:44:16.723Z","avatar_url":"https://github.com/shayyz-code.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PooLang\n\nA Tiny Interpreted but a Fast language written in Rust, featuring variable declarations, arithmetic operations, conditional statements, and control flow. This project includes a lexer, parser, and interpreter. The name `Poo` originates from Guinea Pig translated from `Burmese`.\n\n## Crafted by **Shayy**\n\n## 📜 Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Syntax Overview](#syntax-overview)\n- [Example Code](#example-code)\n- [Development](#development)\n- [Contributing](#contributing)\n\n## ✨ Features\n\n- **Arithmetic Expressions**: Supports addition, subtraction, multiplication, and division with correct operator precedence.\n- **Variable Declarations**: Uses `poo` keyword for variable declarations.\n- **Mutable Variables**: Like in Rust, all variables are immutable by default. Uses `mut` instead of `poo` for mutable variables.\n- **Conditional Statements**: Includes `if`, and `else` for branching.\n- **Control Flow**: Supports `while` and `for in` loops and `return` statements.\n- **Custom Operators**:\n  - Short hand syntax for assignment: `\u003c:`\n  - Assignment and Reassignment operator: `=`\n  - Arrow operator: `\u003e\u003e`\n- **Lexer, Parser, and Interpreter**: A full pipeline from tokenizing source code to executing it.\n\n## 🚀 Installation\n\n1. Curl the latest release.\n\n```bash\ncurl -L https://github.com/shayyz-code/poo/releases/download/v0.1/poo \u003e poo\n```\n\n2. Consider the installation directory.\n\n```bash\ncd ~/Downloads \u0026\u0026 mkdir ~/poo \u0026\u0026 mv ./poo ~/poo\n```\n\n3. Add it to your Environment Variables.\n\n```bash\nexport PATH=~/poo:$PATH\n```\n\n## 🛠️ Usage\n\nTo run the interpreter on a source file:\n\n```bash\npoo \u003cpath_to_your_source_file\u003e\n```\n\nExample:\n\n```bash\npoo app.poo\n```\n\n## 📝 Syntax Overview\n\nThe language features basic syntax for arithmetic, variable declarations, and control flow:\n\n### **Variable Declarations**\n\nBoth in short hand and regular assignment operator.\n\n```poo\npoo x \u003c: 10;\nmut y int = 5 + 2 * 3;\n```\n\n### **Arithmetic Operations**\n\n```poo\npoo result int = x + y * 2 - 10 / 2;\n```\n\n### **Conditional Statements**\n\n```poo\nif x \u003e y {\n    return x;\n} else {\n    return y;\n}\n```\n\n### **Loops**\n\n```poo\nuse std::pout;\n\nmut count \u003c: 0;\n\nwhile count \u003c 10 {\n    count = count + 1;\n}\n\nfor i in 0..4 step 2 {\n    pout(\"Hello, World \", i);\n}\n```\n\n### **Functions**\n\n```poo\nuse std::pout;\n\npoof getName () \u003e\u003e string {\n    poo name \u003c: \"Shayy\";\n    return name;\n}\n\npout(getName());\n```\n\n## 📚 Example Code\n\nExample codes are provided in this repo.\nTry a rotating donut in my PooLang :D\n\n```bash\ngit clone https://github.com/shayyz-code/poo\n\n```\n\n```bash\ncd ./poo\n\n```\n\n```bash\n./poo examples/donut.poo\n\n```\n\n## Test the speed\n\n```bash\npoo examples/app.poo --speed\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request or open an Issue if you find a bug or have a feature request.\n\n### Steps to Contribute\n\n1. Fork the repository.\n2. Create a new branch:\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n3. Make your changes and commit them:\n   ```bash\n   git commit -m \"Add your feature description\"\n   ```\n4. Push to the branch:\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n5. Open a Pull Request.\n\n## 💬 Feedback\n\nIf you have any questions or feedback, feel free to reach out or open an issue in the repository.\n\n---\n\nHappy Coding! 🎉\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshayyz-code%2Fpoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshayyz-code%2Fpoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshayyz-code%2Fpoo/lists"}