Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
with:
name: cc
- name: Run Tests
run: python -u .\run_tests.py
run: python -u scripts/run_tests.py
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
build/
__pycache__/

*.exe
*.actual
*.expect
*.expect
*.pyc
tmp.c
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
```shell
$ cmake -S . -B build -A Win32
$ cmake --build build --config Debug
# then copy c.c.exe to root
```

## Shell
## Self Hosting
```shell
$ py -u scripts/preprocess.py # This preprocess the source code, because c.c doesn't have preprocessor
$ ./c hello.c # hello world
$ ./c c.c c.c hello.c # self hosting
```

## Testing
```shell
$ sh build.sh
$ ./c hello.c
$ ./c c.c hello.c
$ ./c c.c c.c hello.c
$ ./c c.c c.c c.c hello.c
$ sh run-test.sh
$ # copy c.c.exe to root dir
$ py -u scripts/run_tests.py
```

This project is a tiny C interpreter inspired by [c4](https://github.com/rswier/c4).
Expand Down
8 changes: 0 additions & 8 deletions build.sh

This file was deleted.

Loading