Finch/tests/new
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz d428498efd finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr
- finch.toml: name, entry, paths, include, links, libdirs, cflags, ldflags, and [target.windows] etc.;
  finch run / build / test with no file use its entry
- import thread: spawn, join, mutex, cpus; atomic_add/sub/load/store/swap/cas built in
- finch fmt [--check]: indentation by { }, trailing spaces, empty lines; also as LSP formatting
- link "x.cpp" (or in finch.toml): built with the C++ compiler, which then links (FINCH_CXX)
- #define RAYWHITE (Color){ 245, 245, 245, 255 } imports as a Color
- push(body) where push takes ptr[Body]: the same as push(addr(body))
- --target android (NDK clang from ANDROID_NDK_HOME, -llog)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016GzNP6r8dg6WDxUVZy8wjL
2026-10-29 11:17:10 +01:00
..
fail finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
ui Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00
auto_addr.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
auto_addr.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
c_unions_macros.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
c_unions_macros.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
cunion.c C import: unions (SDL_Event) and their fields; #defines that are expressions, casts or text; typedef'd structs no function mentions; FLAG_A | FLAG_B fits a u64 2026-10-29 09:23:29 +01:00
cunion.h finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
defaults_numbers.fch Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
defaults_numbers.out Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
enums.fch enums and match (in the compiler written in Finch) 2026-10-25 20:49:04 +01:00
enums.out enums and match (in the compiler written in Finch) 2026-10-25 20:49:04 +01:00
exit_or.fch Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
exit_or.out Struct defaults apply inside structs; exit() ends an or-block; 1e9 literals; x * 2.0 stays f32; floats print as the shortest exact text; str(x, digits) 2026-10-29 09:14:58 +01:00
generics.fch generics (in the compiler written in Finch) 2026-10-25 20:53:13 +01:00
generics.out generics (in the compiler written in Finch) 2026-10-25 20:53:13 +01:00
interpolation.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
interpolation.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
lang_additions.fch const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
lang_additions.out const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
modules_by_file.fch Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00
modules_by_file.out Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00
payload_enums.fch Enums whose variants hold values 2026-10-26 00:18:53 +01:00
payload_enums.out Enums whose variants hold values 2026-10-26 00:18:53 +01:00
std_fs.fch const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
std_fs.out const, if as a value, """ text over several lines, min/max/abs/clamp, import a/b and import x as y, the fs module 2026-10-29 09:37:41 +01:00
std_json.fch a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_json.out a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_path.fch a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_path.out a standard library in Finch: path, time, proc, json 2026-10-25 20:58:26 +01:00
std_time_proc.fch --target: windows, linux, arm64, macos or a triple, in the compiler written in Finch 2026-10-25 21:33:19 +01:00
std_time_proc.out --target: windows, linux, arm64, macos or a triple, in the compiler written in Finch 2026-10-25 21:33:19 +01:00
threads.fch finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
threads.out finch.toml, threads and atomics, finch fmt, C++ files, struct #defines, a struct variable given for its ptr 2026-10-29 11:17:10 +01:00
util.fch Modules are known by their file: import button from ui/menu.fch and import ui/button are one module, two util.fch are two; min/max/abs/clamp win over C's int-only abs; completion after an import's other name; hover docs; engineers' guides 2026-10-29 09:52:04 +01:00