Switch to cmake and fetch nlohmann::json

This will be used to dynamically set a label table
This commit is contained in:
2026-05-19 19:11:53 +02:00
parent ba4d9afda9
commit 51de990690
3 changed files with 35 additions and 1 deletions

View File

@@ -2,11 +2,18 @@
An implementation of a hack assembler in C++.
## Compilation
```bash
cmake -S . -B build
cmake --build build
```
## Usage
```bash
g++ -o hack-assembler main.cpp
cat <input_file.asm> | ./hack-assembler > <output_file.hack>
cat <input_file.asm> | ./hack-assembler > ./out/<output_file.hack>
```
## License