seeseemelk ed12c0a38e Refactor token tests to use in-memory strings instead of files
- Replaced all write_test_file() calls with buffer_open_string()
- Removed file I/O overhead - tests now run entirely in memory
- Removed unnecessary #include <stdio.h>, <stdlib.h>, <string.h> from test_token.c
- Simplified test_tokenstream_open_fail() to directly test NULL buffer handling
- Tests are faster and cleaner without temporary file creation
- No test output changes - all 12 tests still pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 11:03:14 +02:00
2026-04-24 09:29:53 +02:00
2026-04-24 09:29:53 +02:00
2026-04-24 09:29:53 +02:00
2026-04-24 09:29:53 +02:00
2026-02-25 15:38:32 +01:00
2026-04-24 09:29:53 +02:00
2026-04-24 09:29:53 +02:00

C2

C2 is a programming language based on C. It adds modern high-level features such as metaprogramming, generics, etc, but compiles down to C89.

Building

To build the c2compiler, simply run make or make all. This will build the compiler and run the tests.

In order to only build the compiler, run make c2. In order to run the tests, run make test.

Versioning

The current version is v0. Its source code lives in the v0 directory.

Languages Specifications

See the specs directory for information on the actual language syntax.

S
Description
No description provided
Readme 339 KiB
Languages
C 96.5%
Makefile 3.5%