{"id":21245209,"url":"https://github.com/mfl28/hackvmtranslator","last_synced_at":"2026-07-05T22:31:39.620Z","repository":{"id":102933490,"uuid":"184797848","full_name":"mfl28/HackVMTranslator","owner":"mfl28","description":"A program that translates Hack virtual-machine language code (as defined in the nand2tetris course) into Hack assembly code.","archived":false,"fork":false,"pushed_at":"2020-08-29T17:43:44.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T04:42:29.290Z","etag":null,"topics":["cmake","cpp17","hack-computer","hack-vm-translator","nand2tetris"],"latest_commit_sha":null,"homepage":"","language":"C++","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/mfl28.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":"2019-05-03T17:50:12.000Z","updated_at":"2021-04-13T06:47:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f98289d0-e6e5-47a8-905d-c7ff112db28f","html_url":"https://github.com/mfl28/HackVMTranslator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfl28%2FHackVMTranslator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfl28%2FHackVMTranslator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfl28%2FHackVMTranslator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfl28%2FHackVMTranslator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfl28","download_url":"https://codeload.github.com/mfl28/HackVMTranslator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfl28%2FHackVMTranslator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259211836,"owners_count":22822379,"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":["cmake","cpp17","hack-computer","hack-vm-translator","nand2tetris"],"created_at":"2024-11-21T01:48:44.887Z","updated_at":"2025-10-26T05:40:02.407Z","avatar_url":"https://github.com/mfl28.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackVMTranslator\n[![Build Status](https://dev.azure.com/mfl28/HackVMTranslator/_apis/build/status/mfl28.HackVMTranslator?branchName=master)](https://dev.azure.com/mfl28/HackVMTranslator/_build/latest?definitionId=4\u0026branchName=master)\n[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/mfl28/HackVMTranslator.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/mfl28/HackVMTranslator/context:cpp)\n\n| OS      | Build \u0026 Test Pipeline Status                                                                                                                                                                                                                   |\n| ------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |\n| Linux   |[![Build Status](https://dev.azure.com/mfl28/HackVMTranslator/_apis/build/status/mfl28.HackVMTranslator?branchName=master\u0026stageName=Test\u0026jobName=Linux)](https://dev.azure.com/mfl28/HackVMTranslator/_build/latest?definitionId=4\u0026branchName=master) |\n| MacOS   |[![Build Status](https://dev.azure.com/mfl28/HackVMTranslator/_apis/build/status/mfl28.HackVMTranslator?branchName=master\u0026stageName=Test\u0026jobName=MacOS)](https://dev.azure.com/mfl28/HackVMTranslator/_build/latest?definitionId=4\u0026branchName=master) |\n| Windows |[![Build Status](https://dev.azure.com/mfl28/HackVMTranslator/_apis/build/status/mfl28.HackVMTranslator?branchName=master\u0026stageName=Test\u0026jobName=Windows)](https://dev.azure.com/mfl28/HackVMTranslator/_build/latest?definitionId=4\u0026branchName=master) |\n\nThis is a C++-implementation of a translator for the Hack-platform's virtual-machine language as defined in [project 7](https://www.nand2tetris.org/project07) and [project 8](https://www.nand2tetris.org/project08) of the nand2tetris-course.\nThe program takes as argument either a single `.vm`-file or a directory containing such files, translates them into Hack assembly-language code and writes this code into a single `.asm`-file.\n\n## Building the program\n_Note_: To build this program, a compiler that supports C++17 and `std::filesystem` is required (e.g. gcc version \u0026geq; 8).\n\n```bash\ngit clone https://github.com/mfl28/HackVMTranslator.git\ncd HackVMTranslator\ncmake -B build    # Use option \"-D BUILD_TESTING=OFF\" if you do not want to build the unit-tests.\ncmake --build build   \n```\n## Running the program\nAfter you built the program, do the following from within the `build`-directory:\n#### Linux\n```bash\n./HackVMTranslator path/to/filename.vm    # Or \"./HackVMTranslator path/to/directory\"\n```\n#### Windows\n```bash\ncd Debug    # Or \"cd Release\" if you built using Release-configuration.\n.\\HackVMTranslator.exe path\\to\\filename.vm    # Or \".\\HackVMTranslator path\\to\\directory\"\n```\n## Running the tests\nIf you built the program including the unit-tests, then these can be run from within the `build`-directory by doing the following:\n#### Linux\n```bash\nctest -V\n```\n#### Windows\n```bash\nctest -C Debug -V    # Or \"ctest -C Release -V\" if you built using Release-configuration.\n```\n## References\n- [nand2tetris-course](https://www.nand2tetris.org)\n- [Google Test](https://github.com/google/googletest)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfl28%2Fhackvmtranslator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfl28%2Fhackvmtranslator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfl28%2Fhackvmtranslator/lists"}