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.3.tar.gz (13.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: br_codex_xx-0.1.3.tar.gz
  • Upload date:
  • Size: 13.2 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.3.tar.gz
Algorithm Hash digest
SHA256 5631305e6c16dcd3a32302585f4f42fc943eae920c7d6301f9d1be83e77041b3
MD5 636989ea4615ee3ae1995829901540a8
BLAKE2b-256 fea590809be3ff8fcc47bcf09d09fc49abad7f8a1beeb83d55c299a7039476e6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

1 file

This release

0.1.3 This release

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