{"id":21064071,"url":"https://github.com/luochen1990/craft-calc","last_synced_at":"2025-06-12T18:08:17.799Z","repository":{"id":71922814,"uuid":"67942285","full_name":"luochen1990/Craft-Calc","owner":"luochen1990","description":"A DSL for MineCraft Material Calculation","archived":false,"fork":false,"pushed_at":"2018-01-04T01:30:32.000Z","size":1192,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T01:25:03.209Z","etag":null,"topics":["craft-calc","dsl","minecraft"],"latest_commit_sha":null,"homepage":null,"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/luochen1990.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":"2016-09-11T16:54:27.000Z","updated_at":"2018-01-13T04:19:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9617e02e-6876-4c60-ae7c-f510f58081fd","html_url":"https://github.com/luochen1990/Craft-Calc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luochen1990/Craft-Calc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2FCraft-Calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2FCraft-Calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2FCraft-Calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2FCraft-Calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luochen1990","download_url":"https://codeload.github.com/luochen1990/Craft-Calc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2FCraft-Calc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259518832,"owners_count":22870302,"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":["craft-calc","dsl","minecraft"],"created_at":"2024-11-19T17:48:13.065Z","updated_at":"2025-06-12T18:08:17.772Z","avatar_url":"https://github.com/luochen1990.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Craft Calc\n==========\n\nCraft Calc is a Domain Specific Language (DSL) for **Calculating Materials Needed** when Crafting\n\nWhen given a set of crafting rules (via editing the file named \"rules.txt\"), this program can calculate the materials needed for crafting your target (described in the file named \"input.txt\").\n\nDemo\n----\n\nrules.txt\n```\nbasic_materials: Wood, Coal\n\nWoodenPlank = Wood\nStick = WoodenPlank * 2\nTorch = Coal + Stick\n```\n\ninput.txt\n```\n(Torch * 10) % basicMaterials\n```\n\noutput\n```\n(Torch * 10) % basicMaterials\n= Wood * 20 + Coal * 10\n```\n\nRun Demo\n--------\n\n```\nghc craft-calc.hs -o calc.exe\nmv calc.exe demo1/\ncd demo1\n./calc.exe\n```\n\nTodo\n----\n\n- Fractional number support\n- Multiple crafting path support\n- Calculate the least cost and show the crafting plan\n- Better alias support\n- Macro support\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluochen1990%2Fcraft-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluochen1990%2Fcraft-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluochen1990%2Fcraft-calc/lists"}