Cook
1 program
Added 2026-03-17T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: cook build tool
Provenance: commit 230ea80a71 · authored 2026-03-17T00:03:59+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Build a C project with Cook
Provenance: commit 230ea80a71 · authored 2026-03-17T00:03:59+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
/*
* Cook recipe to build a small C project
* Demonstrates Cook's meta-language features
*/
source = [glob *.c];
objects = [fromto %.c %.o [source]];
all: program;
program: [objects]
{
cc [objects] -o [target];
}
%.o: %.c
{
cc -c [need] -o [target];
}
clean:
{
rm -f [objects] program;
}