{"id":23383365,"url":"https://github.com/blagojeblagojevic/bbasic","last_synced_at":"2025-09-10T05:33:23.039Z","repository":{"id":213315669,"uuid":"733564274","full_name":"BlagojeBlagojevic/BBasic","owner":"BlagojeBlagojevic","description":"Simple Basic Like Iterpreter","archived":false,"fork":false,"pushed_at":"2024-03-20T20:03:38.000Z","size":1359,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T09:48:24.856Z","etag":null,"topics":["basic","c","interpreter","programing-language"],"latest_commit_sha":null,"homepage":"","language":"C","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/BlagojeBlagojevic.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":"2023-12-19T15:59:18.000Z","updated_at":"2024-02-16T09:25:56.000Z","dependencies_parsed_at":"2023-12-19T19:56:10.284Z","dependency_job_id":"d40f90e4-1fd0-44f6-9073-36b8505eaeb9","html_url":"https://github.com/BlagojeBlagojevic/BBasic","commit_stats":null,"previous_names":["blagojeblagojevic/bbasic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BlagojeBlagojevic/BBasic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FBBasic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FBBasic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FBBasic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FBBasic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlagojeBlagojevic","download_url":"https://codeload.github.com/BlagojeBlagojevic/BBasic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlagojeBlagojevic%2FBBasic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262594261,"owners_count":23334175,"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":["basic","c","interpreter","programing-language"],"created_at":"2024-12-21T22:20:15.490Z","updated_at":"2025-06-29T12:32:58.118Z","avatar_url":"https://github.com/BlagojeBlagojevic.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# БBasic\n\n\nSimple Basic Like Iterpreter.\n\n\n\nCurrently supported instructions are:\n1.  **VAR**      -\u003e Declaring variable\n2.  **LABEL**    -\u003e Declaring label\n3.  **GOTO**     -\u003e Go to line number\n4.  **GOTOSUB**  -\u003e Go to label\n5.  **IF**       -\u003e Condition statement if TRUE do line + 1 else skip\n6.  **END**      -\u003e Used to indicate end of the program\n7.  **RAND**     -\u003e Generate random number\n8.  **INPUT**    -\u003e Allows to enter a variable\n9.  **LOAD**     -\u003e Load variable B to A START : STOP\n10.  **GRAPHICS** -\u003e Initialize graphics see below\n11. **PIXEL**    -\u003e Put pixel on screen\n12. **RENDER**   -\u003e Renders the screen\n\n\nThere are 2 build of the interpreter:\n1. **bbasic.c** This build does not suport last 3 instructions and not depends on anything except standard library\n2. **bbbasicgraphics.c** This build does suport last 3 instuction and depends on SDL\n\n\nTo compile it you need first to compile header libary for desired build. \n\n1.      gcc bbasic.h \n2.      gcc basicgraphics.h \n\nThen compile desired build. \n\n\n1.      gcc bbasic.c -lm -O0\n2.      gcc bbbasicgraphics.c -lm -lSDL2 -lGL -O0\n\nThen run program      \n\n1.     ./a.out filePathToProgram\n\nIn example folder we will fine examples of programs. \n\nThis implementation currently is  2 time slower then python in fizzbuzz test on my PC.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblagojeblagojevic%2Fbbasic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblagojeblagojevic%2Fbbasic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblagojeblagojevic%2Fbbasic/lists"}