{"id":27962427,"url":"https://github.com/las-r/pupil","last_synced_at":"2025-05-07T19:22:08.950Z","repository":{"id":289529693,"uuid":"971569681","full_name":"las-r/pupil","owner":"las-r","description":"An interpreted programming language based on several others.","archived":false,"fork":false,"pushed_at":"2025-04-30T23:09:27.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T23:30:32.489Z","etag":null,"topics":["language","new-programming-lang","programming-language","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/las-r.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,"zenodo":null}},"created_at":"2025-04-23T18:10:21.000Z","updated_at":"2025-04-30T23:09:31.000Z","dependencies_parsed_at":"2025-04-30T23:26:31.075Z","dependency_job_id":null,"html_url":"https://github.com/las-r/pupil","commit_stats":null,"previous_names":["las-r/pupil"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/las-r%2Fpupil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/las-r%2Fpupil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/las-r%2Fpupil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/las-r%2Fpupil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/las-r","download_url":"https://codeload.github.com/las-r/pupil/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252941416,"owners_count":21828872,"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","new-programming-lang","programming-language","python"],"created_at":"2025-05-07T19:22:08.313Z","updated_at":"2025-05-07T19:22:08.935Z","avatar_url":"https://github.com/las-r.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pupil\nPupil (*.pil*) is an interpreted programming language made for making stuff and other stuff. It has a focus on graphics using SDL.\n\nThings that are underlined are unfinished.\n\n## Syntax\n\n### Data types\n`int`: Integer, `10`\\\n`flt`: Floating point decimal, `3.141`\\\n`str`: String, `\"string\"`\\\n`bln`: Boolean, `true`\\\n`arr`: Array, `[1, 2, \"three\", 4.5, true]`\n\n### Comments\nExplain code\n```\n~~ this is a comment or something idk\n```\n\n### Variables\nStore / set data\n```\nset greeting = \"Hello, world!\"\n```\n\n### If\nIf condition do action\n```\nif value == 69  \n    out \"hehehe\"  \nelseif otherValue == value  \n    out \"whoa they're equal\"  \nelse  \n    out \"sad\"  \nend\n```\n\n### Jump (Relative)\nJump amount of lines  \n```\njump 7\n```\n\n### Jump (Absolute)\nJump to line\n```\njumpto 3\n```\n\n### While\nWhile condition do action  \n```\nwhile running == true\n    out \"im running\"\nend\n```\n\n### Output\nPrints in console  \n```\nout \"Hi!\"\n```\n\n### Input\nUser input in console\n```\ninp num int \"enter a number\"\n```\n\n### Function\nStores code and context  \n```\nfunc add (x y)\n    ret x + y\nend\n.add (1 2)  ~~ returns 3\n```\n\n\n### Import\nGet functions from another file\n```\nget more-math.pil\n```\n\n### Wait\nPause execution  \n```\nwait 500 ~~ waits 0.5 secs\n```\n\n### Skip\nDoes nothing  \n```\nskip\n```\n\n### Stop\nFinishes the program  \n```\nstop\n```\n\n### In-built functions\n- **Mathematical**: `.msqrt (x)`, `.mfloor (x)`, `.mceil (x)`, `.msin (x)`, `.mcos (x)`, `.mtan (x)`, `.mround (x, d)`\n- **Random**: `.rint (min, max)`\n- **Time**: `.tunix`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flas-r%2Fpupil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flas-r%2Fpupil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flas-r%2Fpupil/lists"}