{"id":26430477,"url":"https://github.com/fus3n/cupscript","last_synced_at":"2026-03-07T22:03:09.263Z","repository":{"id":41237371,"uuid":"432811896","full_name":"Fus3n/cupscript","owner":"Fus3n","description":"CupScript Is A Simple Scripting Language Completely Created Using Python","archived":false,"fork":false,"pushed_at":"2022-11-30T14:08:47.000Z","size":155,"stargazers_count":23,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-05-16T15:24:43.109Z","etag":null,"topics":["language","programming-language","python","ruby","ruby-like","scripting-language"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fus3n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-28T20:00:39.000Z","updated_at":"2023-05-16T15:24:43.109Z","dependencies_parsed_at":"2023-01-22T10:15:47.437Z","dependency_job_id":null,"html_url":"https://github.com/Fus3n/cupscript","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fus3n%2Fcupscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fus3n%2Fcupscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fus3n%2Fcupscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fus3n%2Fcupscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fus3n","download_url":"https://codeload.github.com/Fus3n/cupscript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244165066,"owners_count":20409035,"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":["language","programming-language","python","ruby","ruby-like","scripting-language"],"created_at":"2025-03-18T05:31:28.311Z","updated_at":"2026-03-07T22:03:04.227Z","avatar_url":"https://github.com/Fus3n.png","language":"Python","readme":"## CupScript\n\nCupScript is a simple scripting language made using python\n\nIt includes some basic functionality like variables, loops, and some other built in functions but it is not a full language.\nI made it to learn how programming languages work and how to make a language specifically interpreted languages.\n\n**NOTE: This is not meant for general use its just a fun personal project but you're free to try it out or use it if you can**\n\nHeres an installation/run guide if you want to try it out.\n\n# Installation:\n\n    git clone https://github.com/Fus3n/cupscript\n    cd cupscript\n\nthere are no requirements, but you will need python 3.9 or higher to run it.\n\n# Run Scripts/cupshell:\n\n    python3 cup.py\n    python3 cup.py \u003cfilename\u003e\n\n\nrun file from cupshell: Run(\"filename\")\n\n\n# Syntax\n\nExamples can be found in the the [example](https://github.com/Fus3n/cupscript/blob/main/examples) directory.\nI will be adding more examples soon.\n\n\n# Features\n\n### Display/Input\n\n```ruby\nprint(\"Hello World\")\n# comments\n\nprint(1 + 2)\nprint(1 - 2)\nprint(1 * 2)\nprint(1 / 2)\nprint(1 % 2)\nprint(1 ^ 2)\nprint((1 + 2) * 3 - 4 / 5 % 6 ^ 7)\n\nname = gets(\"Enter your name: \")\nprint(\"Hello \" + name)\n\n```\n\n### Definitions\n\n```ruby\na = [1, 2, 3, [4, 5, 6]]\n\nb = 5\n# or\nvar b = 5\n\nc = \"Hello World\"\n\nb = b + a\u003e0;  # 'a\u003e0' -\u003e accesing the first element in the list \nd = a\u003e3\u003e0 # accesing the 3rd element and the first element of that list python equivalent: a[3][0]\n\nfunc add(a, b)\n    return a + b\nend\n\nfunc add_two(a, b) -\u003e a + b + 2\n\nadd_two(5, 5)\n\n```\n\n### Loops\n```ruby\n# for loop\nfor i = 0 till 100 do\n\tif i % 3 == 0 and i % 5 == 0 then\n\t\tprint(\"fizzbuzz\")\n\telse if i % 3 == 0 then\n\t\tprint(\"fizz\")\n\telse if i % 5 == 0 then\n\t\tprint(\"buzz\")\n\telse\n\t\tprint(i)\n\tend\nend\n\n# while loop\ni = 0\nwhile i != 5 do\n\tprint(\"Hello! \" + tostr(i)) # 'tostr' converts i  to string 'toint' does opposite\n\ti = i + 1\nend\n\n```\n\n\nCheck [example](https://github.com/Fus3n/cupscript/blob/main/examples) folder for more information / Full Overview\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffus3n%2Fcupscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffus3n%2Fcupscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffus3n%2Fcupscript/lists"}