{"id":18484289,"url":"https://github.com/korolevsoftware/forth-embed","last_synced_at":"2025-10-03T22:02:47.923Z","repository":{"id":209281462,"uuid":"718677864","full_name":"KorolevSoftware/Forth-embed","owner":"KorolevSoftware","description":"Forth-embed","archived":false,"fork":false,"pushed_at":"2023-12-25T19:24:37.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T21:19:07.332Z","etag":null,"topics":["c","concatenative","embedded","forth","gamedev","interpreter","language","programming-language","script-engine","scripting-engine","scripting-language","scripting-languages","stack"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KorolevSoftware.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":"2023-11-14T15:21:38.000Z","updated_at":"2024-07-30T05:36:44.000Z","dependencies_parsed_at":"2023-12-25T20:59:25.165Z","dependency_job_id":"f32e6955-2881-4561-b74b-33d4c5070639","html_url":"https://github.com/KorolevSoftware/Forth-embed","commit_stats":null,"previous_names":["korolevsoftware/forth-embed"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KorolevSoftware/Forth-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorolevSoftware%2FForth-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorolevSoftware%2FForth-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorolevSoftware%2FForth-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorolevSoftware%2FForth-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KorolevSoftware","download_url":"https://codeload.github.com/KorolevSoftware/Forth-embed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KorolevSoftware%2FForth-embed/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261039155,"owners_count":23100978,"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":["c","concatenative","embedded","forth","gamedev","interpreter","language","programming-language","script-engine","scripting-engine","scripting-language","scripting-languages","stack"],"created_at":"2024-11-06T12:39:18.778Z","updated_at":"2025-10-03T22:02:47.827Z","avatar_url":"https://github.com/KorolevSoftware.png","language":"C","readme":"# Forth-embed\n\nData type only integer\n## Coming soon release! check todo\n\nVS-Code support!\n\nStack operations:\n- dup\n- drop\n- swap\n- over\n- rot\n\nPrints:\n- emit\n- cr\n- .\"\n\nPrint example: ```.\"hello world\"```\n\nСomparisons:\n- =\n- \u003c\n- \\\u003e\n- invert\n- and\n- or\n\nMath:\n- \\+\n- \\-\n- /\n- \\*\n- mod\n\n Controll flow:\n - if\n - else\n - then\n - do\n - i\n - loop\n - begin\n - until\n - :\n - ;\n\nVariables/Constants\n- constant\n- variable\n- allot\n- cells\n- @\n- !\n\n\n```C\n#include \"forth_embed.h\"\n\nvoid asdf(struct forth_state* fs) {\n\tforth_data_stack_push(fs, 1);\n\tforth_data_stack_push(fs, 2);\n\tforth_data_stack_push(fs, 3);\n} \n\nstruct forth_state* fs = forth_make_default_state();\nstruct forth_byte_code* program = forth_compile(\": aa asdf ; aa . . .\");\nforth_set_function(fs, \"asdf\", asdf);\nforth_run(fs, program);\nforth_run_function(fs, program, \"aa\");\nforth_release_state(fs);\nforth_release_byte_code(program); \n```\n\n# TODO\n- make stable release\n- write more tests\n\n# Usings\n\n[Sima-Engine](https://github.com/KorolevSoftware/Sima-Engine) - game engine with forth from script engine\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorolevsoftware%2Fforth-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorolevsoftware%2Fforth-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorolevsoftware%2Fforth-embed/lists"}