Niue

1 program Added 2026-02-27T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit edd677a565 · authored 2026-02-27T12:41:42+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

Nice (0.33)Nile (0.33)Nickle (0.27)Blue (0.20)Clue (0.20)

LLM-contributed programs

FizzBuzz

Provenance: commit edd677a565 · authored 2026-02-27T12:41:42+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.niue · license: BSD-2-Clause · added: 2026-02-27T12:00:00Z
"=> fizzbuzz.niue" . newline
( For 1-N numbers: if the number is divisible by 3 prints "Fizz", 
  if it is divisible by 5 prints "Buzz",  if it is divisible by both 3 and 5 
  print "FizzBuzz" else the number is printed. )

( fizzbuzz - entrypoint ) 

[ >0 [ print-fizzbuzz-or-number ] if [ , ] else ] 'fizzbuzz ;

( helper words )

[ dup 0 > ] '>0 ;
[ flag-and-prepare-number fizz buzz  or-number ] 'print-fizzbuzz-or-number ;
[ false swap dup dup ] 'flag-and-prepare-number ;
[ 3 mod 0 = [ 'Fizz .ns rot , true swap rot ] when ] 'fizz ;
[ 5 mod 0 = [ 'Buzz .ns swap , true swap ] when space ] 'buzz ;
[ swap [ , ] if [ . ] else ] 'or-number ;


( test )

[ fizzbuzz ] 50 times

Contribute — propose a file extension

Tell us where to find evidence about Niue (mapped to pl/niue). 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/Niue/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Nit Nix →