B++
B++ e uma linguagem de programacao em portugues, interpretada por um motor escrito em C++.
Requisitos
- Python 3.8 ou superior para instalar o pacote
g++com suporte a C++17 para construir o pacote
Instalar pelo PyPI
python -m pip install br-codex_xx
A instalacao compila automaticamente bpp.cpp e cria o comando bpp.
Executar um arquivo B++
bpp sistema.bpp
Exemplo minimo:
texto nome = "Ana";
inteiro idade = 20;
se (idade >= 18) {
escreva("Ola, {nome}. Voce e maior de idade.");
}
A sintaxe inclui tipos inteiro, decimal, texto, booleano e lista; escreva, leia, adicionar, se, senao se, senao, enquanto, para, funcao, retorne e comentarios //.
Compilar localmente
g++ -std=c++17 -O2 -Wall -Wextra -Wpedantic bpp.cpp -o bpp
./bpp sistema.bpp
Construir e publicar no PyPI
Crie uma conta no PyPI e configure um token de API no twine antes do upload. Depois execute, na raiz do projeto:
python -m pip install --upgrade build twine
rm -rf build dist *.egg-info
python -m build
python -m twine check dist/*
python -m twine upload dist/*
Para testar primeiro no TestPyPI:
python -m twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ br-codex_xx
O comando twine upload solicitará o usuário e o token, caso eles não estejam configurados por variáveis ou por um arquivo .pypirc.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file br_codex_xx-0.1.2.tar.gz.
File metadata
- Download URL: br_codex_xx-0.1.2.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e4cb55ce5fcac9f7dd3f31bb6c8873dec9e3efc3b926566ec81e8a96b584344
|
|
| MD5 |
68c64c423bb2285a8beed5fb22eadbe4
|
|
| BLAKE2b-256 |
0a0479ae2a26707a0fe6304d2a044d601fe5a20fa00d458d6c5a2b42e50db489
|