mirror of
https://git.sr.ht/~sircmpwn/harec
synced 2026-08-25 00:40:43 +00:00
A Hare compiler written in C11 for POSIX-compatible systems.
- C 60%
- Hare 36%
- Makefile 2.6%
- Assembly 1.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
fn f(x: *(int | void)) void = *x as void; This used to error with "Can't have pointer to zero-sized type", because the void type hint to *x caused type_store_lookup_pointer to be called with void. This is fixed by only respecting the type hint if its size is non-zero. Signed-off-by: Sebastian <sebastian@sebsite.pw> |
||
| .builds | ||
| configs | ||
| docs | ||
| include | ||
| makefiles | ||
| rt | ||
| scripts | ||
| src | ||
| testmod | ||
| tests | ||
| .gitignore | ||
| .mailmap | ||
| COPYING | ||
| MAINTAINERS | ||
| Makefile | ||
| README.md | ||
harec
This is a Hare compiler written in C11 for POSIX-compatible systems.
Build status
Building
cp configs/$platform.mk config.mk
make
Optionally, build and run the test suite as well:
make check
Runtime
harec includes a minimal runtime under rt which is suitable for running the
test suite, but not recommended for production use. See docs/runtime.txt for
details on how to provide your own runtime implementation, or use the Hare
standard library.