Portugol

1 program Added 2026-02-24T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: Portugol Studio
Provenance: commit 8175daf581 · authored 2026-02-24T00:47:48+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

4 sources · pl_id: pl/portugol
LLM (this repo) · 1LinguistPygmentsRosettacode

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.algpygmentsprimary98.8K files
.porlinguistprimary71.4K files
.portugolpygmentssecondary80 files

Related languages

DIV (0.23)Xojo (0.23)Omnis Studio (0.20)Porth (0.19)WinBatch (0.18)

LLM-contributed programs

Fibonacci Recursivo

Provenance: commit 8175daf581 · authored 2026-02-24T00:47:48+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.por · added: 2026-02-24T00:00:00Z
programa
{
	funcao inicio()
	{
		inteiro numero

		escreva("Quantos elementos da sequencia de Fibonacci deseja calcular? ")
		leia(numero)

		para (inteiro i = 1; i <= numero ; i++)
		{
			escreva(fibonacci(i), " ")
		}

		escreva("\n")
	}

	funcao inteiro fibonacci(inteiro posicao)
	{
		se (posicao == 1)
		{
			retorne 0
		}
		senao se (posicao == 2)
		{
			retorne 1
		}

		retorne fibonacci(posicao - 1) + fibonacci(posicao - 2)
	}
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

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