Skip to main content

PTTB - Português Técnico do Brasil 🇧🇷 (v3.2.1)

PyPI Version License: MIT

PTTB é o motor de execução brasileiro de alta performance. Uma linguagem de programação que traduz a realidade do desenvolvedor CLT para um runtime poderoso, cross-platform e focado em produtividade.

Agora, o PTTB evoluiu de um interpretador para um ecossistema de Transpilação Multi-Target, permitindo que você escreva PTTB e gere código para Lua (FNF), Python e C++.


🚀 Novidades da Versão 3.2.1

  • Gerenciamento de Projetos: Crie estruturas completas com um comando.
  • Transpilação Multi-Alvo: Compile para fnflua, python ou cpp.
  • Sintaxe Universal: Suporte para termos tradicionais (var, function, if, print) ao lado dos clássicos brasileiros.
  • Extensão VS Code Aprimorada: Instalação automática e autocomplete inteligente.

🛠️ Instalação e Setup

# Instale o motor oficial
pip install pttb-lang

# Instale a extensão do VS Code (Autocomplete e Syntax)
pttb ide

📁 Gestão de Projetos

Agora você pode iniciar projetos específicos para diferentes finalidades:

# Criar um projeto para Friday Night Funkin' (Lua)
pttb --newproject meu_mod --type fnflua

# Criar um projeto Python
pttb --newproject script_py --type python

# Criar um projeto C++
pttb --newproject app_cpp --type cpp

🛠️ Comandos da CLI

Comando Descrição
pttb --newproject <nome> Cria um novo projeto estruturado.
pttb build Transpila o projeto para a linguagem alvo (dist/ ou build/).
pttb ide Instala automaticamente a extensão oficial no seu VS Code.
pttb run Executa o código usando o interpretador PTTB nativo.
pttb doctor Analisa a saúde do seu ambiente PTTB local.
pttb version Exibe a versão atual instalada.

📖 Sintaxe Híbrida

O PTTB agora suporta tanto a sintaxe temática quanto a universal:

Variáveis

definir saldo = 1000  // Temática
var x = 10            // Universal
let nome = "PTTB"     // Universal

Funções

function somar(a, b) {
    return a + b;
}

funcaoCLT saudar(nome) {
    print("Olá, " + nome);
}

Friday Night Funkin' (fnflua)

Ao criar um projeto do tipo fnflua, o PTTB gera código Lua compatível com a engine do FNF:

function onCreate() {
    print("Script PTTB carregado no FNF!");
}

🛡️ Segurança e AntiCheat

Proteja sua aplicação com o pacote oficial pttb-anticheat:

vigiarHackers() // Detecta debuggers e bloqueia injeção de DLLs automaticamente

🏢 Estrutura de um Projeto PTTB

  • pttb.json: Configurações de build e target.
  • src/main.pttb: Ponto de entrada do seu código.
  • docs/PTTB_REFERENCE.md: Documentação da linguagem gerada automaticamente.
  • libs/: Dependências e bibliotecas locais.

🤝 Contribua com a Nação PTTB

Desenvolvido por brasileiros, para brasileiros. Sinta-se à vontade para expandir a Standard Lib ou sugerir novas palavras-chave temáticas!

Powered by PTTB Engine - A revolução brasileira no mundo da programação.

Metadata

Release files for pttb-lang 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pttb-lang 3.2.2
File Size Uploaded Provenance Actions
pttb_lang-3.2.2.tar.gz 33.0 kB Without provenance Details for pttb_lang-3.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pttb-lang 3.2.2
File Interpreter ABI Platform Actions
pttb_lang-3.2.2-py3-none-any.whl Python 3 none any Details for pttb_lang-3.2.2-py3-none-any.whl

Total release size: 68.9 kB

Release files / pttb_lang-3.2.2.tar.gz

Download URL pttb_lang-3.2.2.tar.gz
Size 33.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b0cb703e9673dacc66b6bc2d777494c78aecd7ab93681f0ccb4b27b480002a37
BLAKE2b-256 checksum
How to use checksums
6fb5b21512254fd4454d59e0918936efd5c69f382a51ebab7ff1d4d477bacb02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / pttb_lang-3.2.2-py3-none-any.whl

Download URL pttb_lang-3.2.2-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87aa9c0fa7664222c9bbb28f67ab91a05a8a5f14882f05cc6a3c0501f30a7126
BLAKE2b-256 checksum
How to use checksums
e6e6f942cc3fb7e51dc802a9da9e7fc7614850574133f13e27b94483853b02a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for pttb-lang 3.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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