{"id":16160810,"url":"https://github.com/kenny2github/boa","last_synced_at":"2025-04-07T02:46:04.506Z","repository":{"id":119865570,"uuid":"154599538","full_name":"Kenny2github/boa","owner":"Kenny2github","description":"A stack-based programming syntax alternative to Python","archived":false,"fork":false,"pushed_at":"2019-02-06T18:30:44.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T07:46:31.485Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kenny2github.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-25T02:41:24.000Z","updated_at":"2019-02-06T18:30:46.000Z","dependencies_parsed_at":"2023-06-03T11:00:31.519Z","dependency_job_id":null,"html_url":"https://github.com/Kenny2github/boa","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"aa3cbc6d7c37a1e10d573f99d41c06c4351e69e6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fboa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fboa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fboa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kenny2github%2Fboa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kenny2github","download_url":"https://codeload.github.com/Kenny2github/boa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247584060,"owners_count":20962071,"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":"2024-10-10T02:04:47.539Z","updated_at":"2025-04-07T02:46:04.487Z","avatar_url":"https://github.com/Kenny2github.png","language":"Python","readme":"# Boa\nBoa is a stack-based programming language alternative to Python.\n\n# Usage\nPushing items onto the stack:\n```boa\n10\n\"string\n```\nSetting variables:\n```boa\n10# push 10 onto the stack\nnumber# pop an item from the stack and set the number variable to the item\n```\nGetting variables:\n```boa\nnumber# since number is now defined, push the value of number onto the stack\n```\nCalling functions:\n```boa\n#push an argument\n\"Hello World!\n1# push the number of arguments\nprint# push the function object. Note that builtins are predefined variables and cannot be overwritten.\n!# call the function object. Pops the function object, number of arguments, and *number of arguments* more items off the stack, and pushes return value onto stack\n:o# silently drop the last item of the stack (return value from print, which is None). Not necessary at the end of a program, but is good practice.\n```\nCalling functions can also be used to push instances of other Python classes onto the stack:\n```boa\n4#push 2nd argument\n3#push 1st argument\n2# push number of arguments\ncomplex# push class object\n!# pop complex and 2 off the stack and call ClassName() with 2 arguments (i.e. create an instance of complex(3, 4)) and push the result onto the stack\nnum# store (3+4j) in \"num\"\nnum# push back onto stack\n1# push number of arguments\nprint# push function\n!# call and push ret to stack\n:o# drop None\nnum# push onto stack again\n1# push number of arguments\nabs# push function\n!# call and push ret (5) to stack\n1# push number of arguments\nprint# push function\n!# call and push ret (None) to stack\n:o# drop None\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny2github%2Fboa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenny2github%2Fboa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenny2github%2Fboa/lists"}