BLang - Uma linguagem de programação simples em português
Project description
BLang 🇧🇷
Uma linguagem de programação simples escrita em português.
Instalação
pip install blang-lang
Como usar
Crie um arquivo teste.bl e rode:
blang teste.bl
Ou modo interativo:
blang
Sintaxe
# variável
var nome = "Bernardo"
var vida = 100
# imprimir
fala "Olá " + nome
fala vida
# condicional
se vida > 50 entao
fala "tá vivo!"
senao
fala "game over"
fim
# loop
repete 3 vezes
fala "oi"
fim
# função
funcao somar(a, b)
retorna a + b
fim
var resultado = somar(10, 20)
fala resultado
Funções nativas
| Função | Descrição |
|---|---|
texto(x) |
Converte para texto |
num(x) |
Converte para número |
tipo(x) |
Retorna o tipo do valor |
tamanho(x) |
Retorna o tamanho do texto |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blang_lang-2.0.0.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blang_lang-2.0.0.tar.gz.
File metadata
- Download URL: blang_lang-2.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0cd2c6a967d69ac3a7cac5660770c532660eb98e7a9f940e629372f34dd2cc1
|
|
| MD5 |
dae5f2e26edf363e0d02d8a94ba9038f
|
|
| BLAKE2b-256 |
e05571461303a35d8375f9234038fd1320b5885961516c0a318993a47752a2b3
|
File details
Details for the file blang_lang-2.0.0-py3-none-any.whl.
File metadata
- Download URL: blang_lang-2.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e6ec6f80343d22db5dcbcf8fb5a532af0076976f993fefb17185e6c299b3d1
|
|
| MD5 |
e1b349cb07f487908c5428ff9c754b5d
|
|
| BLAKE2b-256 |
f8e1f74232dff35b8cfbe9eaf75ab4606199f61b25d41ebe03b69592b2ee1966
|