{"id":26854271,"url":"https://github.com/mrtg-codebot/sorav2","last_synced_at":"2025-07-14T09:06:51.060Z","repository":{"id":270380408,"uuid":"910184034","full_name":"MrTG-CodeBot/SoraV2","owner":"MrTG-CodeBot","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-30T18:15:30.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T18:32:45.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrTG-CodeBot.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-30T17:31:02.000Z","updated_at":"2024-12-30T18:15:33.000Z","dependencies_parsed_at":"2024-12-30T18:43:24.134Z","dependency_job_id":null,"html_url":"https://github.com/MrTG-CodeBot/SoraV2","commit_stats":null,"previous_names":["mrtg-codebot/sorav2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrTG-CodeBot%2FSoraV2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrTG-CodeBot%2FSoraV2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrTG-CodeBot%2FSoraV2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrTG-CodeBot%2FSoraV2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrTG-CodeBot","download_url":"https://codeload.github.com/MrTG-CodeBot/SoraV2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246391523,"owners_count":20769601,"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":[],"created_at":"2025-03-30T23:19:46.149Z","updated_at":"2025-03-30T23:19:46.721Z","avatar_url":"https://github.com/MrTG-CodeBot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SoraV2\n\nA lightweight interpreter for the Sora programming language, featuring dynamic typing, variable management, and basic arithmetic operations.\n\n# I understand you're interested in seeing the code for SoraV2. Unfortunately, it's not available for public sharing right now. Because of bugs and some other issues.\n\n## Features\n\n- Dynamic type handling (strings, integers, floats)\n- Variable assignment and management\n- String interpolation\n- Basic arithmetic operations\n- Variable state display\n- Function support with parameters\n\n## Usage\n\n### Basic Example\n\n```python\nfrom sora import SoraInterpreter\n\nsora_code = \"\"\"\n@sora{\nname := \"Alice\"\nage := 25\nheight := 5.8\n\nprint: Name: $name\nprint: Age: $age\nprint: Height: $height\n\nshow_vars\n}\n\"\"\"\n\ninterpreter = SoraInterpreter()\nresult = interpreter.parse_and_execute(sora_code)\nprint(result)\n```\n\n### Function Example\n\n```python\nsora_code = \"\"\"\n@sora{\nfunc calculate_area(length, width)\n    area := length * width\n    print: Area is: $area\nend\n\ncall calculate_area(10, 20)\n}\n\"\"\"\n```\n\n### String Handling\n\nStrings can be defined with or without quotes:\n```python\nsora_code = \"\"\"\n@sora{\nname := \"Alice\"\n\ncity := New York\n\nprint: $name lives in $city\n}\n\"\"\"\n```\n\n## Syntax Guide\n\n### Variable Assignment\n```\nvariable_name := value\n```\n\n### Printing\n```\nprint: Your message here\n```\n\n### Variable Interpolation\n```\nprint: Hello $variable_name\n```\n\n### Function Definition\n```\nfunc function_name(param1, param2)\n    # Function body\nend\n```\n\n### Function Call\n```\ncall function_name(arg1, arg2)\n```\n\n### Show Variables\n```\nshow_vars\n```\n\n\n## Type System\n\n- Strings: Can be defined with or without quotes\n- Integers: Whole numbers\n- Floats: Decimal numbers\n- Automatic type inference based on value\n\n## Features in Detail\n\n### Variable Management\n- Dynamic variable creation and updating\n- Automatic type inference\n- Variable state display with `show_vars`\n\n### String Handling\n- Support for quoted and unquoted strings\n- String interpolation with `$variable`\n- Automatic string type detection\n\n### Arithmetic Operations\n- Basic operations: +, -, *, /\n- Type-aware calculations\n- Automatic numeric type conversion\n\n### Functions\n- Parameter support\n- Local variable scope\n- Return value handling\n\n## Examples\n\n### Basic Arithmetic\n```python\n@sora{\nx := 10\ny := 20\nsum := x + y\nprint: Sum is: $sum\n}\n```\n\n### Function Usage\n```python\n@sora{\nfunc greet(name, age)\n    print: Hello $name, you are $age years old!\nend\n\ncall greet(Alice, 25)\n}\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit pull requests.\n\n## License\n\nThis project is licensed under the  GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtg-codebot%2Fsorav2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtg-codebot%2Fsorav2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtg-codebot%2Fsorav2/lists"}