Metadata-Version: 2.4
Name: br-codex_xx
Version: 0.1.3
Summary: Interpretador da linguagem B++ em portugues
Author: Thurzingg
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file
Dynamic: requires-python

# 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

```bash
python -m pip install br-codex_xx
```

A instalacao compila automaticamente `bpp.cpp` e cria o comando `bpp`.

## Executar um arquivo B++

```bash
bpp sistema.bpp
```

Exemplo minimo:

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

```bash
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:

```bash
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:

```bash
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`.
