{"id":17118174,"url":"https://github.com/stepfenshawn/toycompiler","last_synced_at":"2025-03-24T01:44:15.385Z","repository":{"id":247748369,"uuid":"672742089","full_name":"StepfenShawn/ToyCompiler","owner":"StepfenShawn","description":"A toy functional programming language, with a tiny VM. Just for fun!","archived":false,"fork":false,"pushed_at":"2024-09-25T13:17:27.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T08:11:53.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StepfenShawn.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-07-31T04:10:05.000Z","updated_at":"2024-09-25T13:17:30.000Z","dependencies_parsed_at":"2024-12-01T04:43:20.386Z","dependency_job_id":"2547daf5-65bf-4f52-9f61-3393c56bde47","html_url":"https://github.com/StepfenShawn/ToyCompiler","commit_stats":null,"previous_names":["stepfenshawn/toycompiler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FToyCompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FToyCompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FToyCompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FToyCompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StepfenShawn","download_url":"https://codeload.github.com/StepfenShawn/ToyCompiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245195908,"owners_count":20575936,"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-14T17:53:37.280Z","updated_at":"2025-03-24T01:44:15.361Z","avatar_url":"https://github.com/StepfenShawn.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bblang[wip]\nno loops(`For`, `While`...), just use recursion.  \nExamples:\n```rust\nfn fib(x: i64)\n    when x \u003c= 2 then 1 \n    otherwise fib(x - 1) + fib(x - 2);\n\nfib(40);\n```\ndefine a macro:\n```rust\nmacro hello\n    when ($s: str) then \"Hello\" + $s\n    when ($n: ident) then $n\n    otherwise \"\";\n\nprint hello!(\"bblang\");\nlet a: i64 = 1;\nprint hello!(a);\n```\n`map` as a macro:  \n```rust\nlet arr = map!([1, 2, 3] x * x);\nprint arr\n```\n\n# Build\n* ghc\n* cabal\n```\ncabal run bblang\n```\n\n# Test\n```\ncabal run test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepfenshawn%2Ftoycompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepfenshawn%2Ftoycompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepfenshawn%2Ftoycompiler/lists"}