{"id":19756044,"url":"https://github.com/antomfdez/bitcraft","last_synced_at":"2025-08-16T05:38:50.595Z","repository":{"id":249879571,"uuid":"832835660","full_name":"antomfdez/bitcraft","owner":"antomfdez","description":"BitCraft is a simple programming language designed for performing basic mathematical operations and printing results.","archived":false,"fork":false,"pushed_at":"2024-07-23T20:23:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T09:10:37.159Z","etag":null,"topics":[],"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/antomfdez.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":"2024-07-23T20:16:34.000Z","updated_at":"2024-10-15T19:00:08.000Z","dependencies_parsed_at":"2024-07-23T23:54:44.229Z","dependency_job_id":null,"html_url":"https://github.com/antomfdez/bitcraft","commit_stats":null,"previous_names":["antomfdez/bitcraft"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antomfdez/bitcraft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fbitcraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fbitcraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fbitcraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fbitcraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antomfdez","download_url":"https://codeload.github.com/antomfdez/bitcraft/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antomfdez%2Fbitcraft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270672928,"owners_count":24626050,"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-08-16T02:00:11.002Z","response_time":91,"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":[],"created_at":"2024-11-12T03:14:34.588Z","updated_at":"2025-08-16T05:38:50.571Z","avatar_url":"https://github.com/antomfdez.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# BitCraft\n\nBitCraft is a simple programming language designed for performing basic mathematical operations and printing results. It supports variable assignments, arithmetic expressions, and custom print formatting.\n\n## Features\n\n- **Variable Assignment**: Assign values to variables.\n- **Arithmetic Operations**: Perform addition, subtraction, multiplication, and division.\n- **Printing**: Print variables and expressions with customizable formatting.\n- **Comments**: Add comments to your source code for clarity.\n\n## Syntax\n\n### Variables and Assignments\n\nVariables can be assigned using the `=` operator. For example:\n\n```plaintext\nwidth = 5;\nheight = 10;\n```\n### Arithmetic Expressions\nArithmetic expressions are supported using +, -, *, and / operators. For example:\n```\narea = width * height;\n```\n### Printing\nUse the print statement to output text and variables. The print statement accepts multiple arguments, including strings and variables, separated by commas. For example:\n```\nprint(\"The width is \", width, \" and the height is \", height, \" The area is \", area, \".\");\n```\n### Comments\nSingle-line comments are supported and start with //. For example:\n```\n// This is a comment\nwidth = 5;\n```\n### Parentheses\nParentheses () are used to group expressions. For example:\n```\nresult = (width + height) * 2;\n```\n## Full example\nHere’s a complete example of a source file using BitCraft:\n```\n// Define variables\nwidth = 5.53;\nheight = 10.4;\n\n// Calculate area\narea = width * height;\n\n// Print results\nprint(\"The width is \", width, \" and the height is \", height);\nprint(\"The area is \", area);\n```\n## Usage\n1 - Create a Source File: Write your BitCraft code in a text file with a .bc extension (e.g., program.bc).\n\n2 - Compile and Run: Use the provided Makefile to compile and execute your interpreter. For example:\n```\nbitc program.bc\n```\n## Build: \n```\nsudo make\n```\n\n# License\nThis project is licensed under the [MIT](https://choosealicense.com/licenses/mit/) License. See the LICENSE file for more details.\n\n# Contributing\nContributions are welcome! Please submit issues and pull requests via the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantomfdez%2Fbitcraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantomfdez%2Fbitcraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantomfdez%2Fbitcraft/lists"}