Gringo

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Clingo, ASP-Core-2
Provenance: commit b542462a7b · authored 2026-03-06T10:30:24+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)
LLM (this repo) · 1

Related languages

Clingo (0.19)Lingo (0.15)Gremlin (0.10)Grit (0.10)CoreASM (0.09)

LLM-contributed programs

N-Queens

Provenance: commit b542462a7b · authored 2026-03-06T10:30:24+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.lp · added: 2026-03-06T10:00:00Z
% N-Queens problem in ASP (Gringo/Clingo)
#const n = 8.

% Guess placement: exactly one queen per row
1 { queen(I,1..n) } 1 :- I = 1..n.

% No two queens in the same column
:- queen(I,J), queen(K,J), I != K.

% No two queens on the same diagonal
:- queen(I,J), queen(K,L), I != K, |I-K| = |J-L|.

#show queen/2.

Contribute — propose a file extension

Tell us where to find evidence about Gringo (mapped to pl/gringo). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Gringo/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← grin Grit →