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

br_codex_xx-0.1.4.tar.gz (15.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for br_codex_xx-0.1.4.tar.gz
Algorithm Hash digest
SHA256 14eda5980d4f96585080d15b556ce4beecba5d23dbd4854268d927db2cc1ec96
MD5 1b5e507ae2b773d2620619c46e9741b5
BLAKE2b-256 33773dc8582ff4b238ba606cb9db11f3ed6b2f3c9701c9c7a416f14e61e81a60

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 file

0.1.3

1 file

0.1.2

1 file

0.1.0

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