Skip to main content

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 b-rr

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/ b-rr

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

br_codex_xx-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file br_codex_xx-0.1.0.tar.gz.

File metadata

  • Download URL: br_codex_xx-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.13

File hashes

Hashes for br_codex_xx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d4775c19251c2b609876e914ca373bb1fceb80d7cc0f53f056e6be23b959fb4
MD5 8133485dff68bd0c4582695b6e539162
BLAKE2b-256 a7c1942460e89e55d6cdafa42b6688d7017ad213409a549887acad17a81f6d17

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

This release

0.1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page