G-Portugol
| Paradigm | Multi-paradigm: imperative (procedural) |
|---|---|
| Designed by | Thiago Silva |
| Stable release | 1.1.0
/ May 24, 2010 |
| Typing discipline | Static, strong |
| OS | Cross-platform |
| Filename extensions | .gpt |
| Website | gpt on GitHub |
| Influenced by | |
| Portugol | |
Search G-Portugol on Amazon.
G-Portugol[1][2][3] is a high-level programming language developed entirely in Portuguese. It is a dialect of Portugol and uses the GNU General Public License version 2. The language and its tools were created by the Brazilian developer Thiago Silva.
The language is not very powerful, as it was designed for the purpose of teaching the fundamentals of algorithmic programming. Its main program, GPT, is cross-platform and capable of compiling, translating (into the C language), and interpreting code written in G-Portugol. Compilation is done in a traditional way, converting the high-level code into x86 assembly. The assembly code is then assembled using NASM, which acts as the back-end. Therefore, there is no linking stage.
In addition to GPT, there is GPTEditor, a text editor that allows users to write, run, and debug algorithms more easily. Unlike other Portugol dialects, its syntax includes accented letters and special characters, such as the cedilla (ç).
"Hello, world" example
algoritmo HelloWorld;
início
imprima("Helo, World!");
fim
External links
References
- ↑ Manzano, José Augusto N. G. (2017). G-Portugol: Programação de Computadores em Português (in Portuguese) (1st ed.). São Paulo: Propes Vivens. p. 80. ISBN 978-85-916492-9-7.CS1 maint: Unrecognized language (link) Search this book on
- ↑ Ferreira, Cláudia; Gonzaga, Flávio; Santos, Rodrigo. "Um estudo sobre a aprendizagem de lógica de programação por demonstração" (PDF). Anais do XVIII Workshop sobre Educação em Computação (WEI). Retrieved 3 November 2025.
- ↑ "Executable Literature: Understanding Algorithms Across Arbitrary Notations". ResearchGate. Retrieved 3 November 2025.
This article "G-Portugol" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:G-Portugol. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
