{"id":16270882,"url":"https://github.com/mgrdich/forthcompiler","last_synced_at":"2025-10-05T02:11:08.223Z","repository":{"id":208874926,"uuid":"722689010","full_name":"Mgrdich/ForthCompiler","owner":"Mgrdich","description":"A basic Compiler for Gforth written in Go","archived":false,"fork":false,"pushed_at":"2024-01-04T15:08:25.000Z","size":1222,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T18:54:01.967Z","etag":null,"topics":["assembly","assembly-x86","compiler","forth-like","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Mgrdich.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-11-23T17:49:11.000Z","updated_at":"2024-04-22T17:06:13.000Z","dependencies_parsed_at":"2023-11-23T19:54:31.597Z","dependency_job_id":"599fff99-bcad-4223-9277-033146595421","html_url":"https://github.com/Mgrdich/ForthCompiler","commit_stats":null,"previous_names":["mgrdich/forthcompiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mgrdich/ForthCompiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgrdich%2FForthCompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgrdich%2FForthCompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgrdich%2FForthCompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgrdich%2FForthCompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mgrdich","download_url":"https://codeload.github.com/Mgrdich/ForthCompiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mgrdich%2FForthCompiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278399690,"owners_count":25980332,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["assembly","assembly-x86","compiler","forth-like","golang"],"created_at":"2024-10-10T18:11:51.720Z","updated_at":"2025-10-05T02:11:08.196Z","avatar_url":"https://github.com/Mgrdich.png","language":"Go","readme":"# GForth Compiler\nminor GForth compiler written in Go. \n\nSupported Architectures\n* `x64`\n\nGForth functionalities can be checked https://learnxinyminutes.com/docs/forth/\n\n### How to build the compiler\n* Install `Go` version \u003c= 1.21.1\n* run `make`\n\nIt will build the forth compiler that is written with `Go`.\nIt gives you an executable with the name `mf`.\n\n### How to test the language\n* `mf ./samples/test1.mf` it will compile this file and give you and executable with the same name `test1`\n* Then run it `./test1`\n\n### What's to Come\n* More functionality in the language\n* More Parameters in the CLI\n* Writing test suites\n\nHappy Forthing\n\n\n### Supported Operations\n\nTake each line as a clean slate\n\n* Stack push Eg: `1 2 3` \n* Stack print `1 2 3` -\u003e `\u003c3\u003e 1 2 3 ok`\n* Stack Pop and print `1 2 3 .` -\u003e `3 ok`\n* Arithmetic Operation Addition `1 2 + .` -\u003e `3 ok`\n* Arithmetic Operation Subtraction `1360 23 - .` -\u003e `1337 ok`\n* Arithmetic Operation Multiplication `6 7 * .` -\u003e `42 ok`\n* Keyword Operation Negation `99 negate .` -\u003e `-99 ok`\n* Keyword Operation Absolute `-99 abs .` -\u003e `99 ok`\n* Keyword Operation Maximum `52 26 max .` -\u003e `52 ok`\n* Keyword Operation Minimum `52 26 min .` -\u003e `26 ok`\n* Keyword Operation Duplication `3 dup .s` -\u003e `\u003c2\u003e 3 3 ok`\n* Keyword Operation Swap `3 5 swap .s` -\u003e `\u003c2\u003e 5 3 ok`\n* Keyword Operation Rotate `6 5 4 rot .s` -\u003e `\u003c3\u003e 4 5 6 ok`\n* Keyword Operation Nip `6 5 4 nip .s` -\u003e `\u003c2\u003e 6 4 ok`\n* Keyword Operation Tuck `1 2 3 4 tuck .s` -\u003e `\u003c5\u003e 1 2 4 3 4 ok`\n* Keyword Operation Over `1 2 3 4 over .s` -\u003e `\u003c5\u003e 1 2 3 4 3 ok`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgrdich%2Fforthcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgrdich%2Fforthcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgrdich%2Fforthcompiler/lists"}