Skip to main content

The official Centella programming language compiler.

Project description

Centella Programming Language (v1.2.2) ⚡

Centella es un lenguaje de programación moderno, minimalista y ultra-rápido diseñado específicamente para el procesamiento masivo de datos y la automatización empresarial.

Combina la simplicidad de una sintaxis inspirada en Python (pero en español) con la potencia bruta de un backend híbrido (Python Frontend + LLVM/C Backend), generando ejecutables nativos altamente optimizados.

🚀 Características Principales

  • ⚡ Rendimiento Nativo: Compila directamente a código máquina usando LLVM y un Runtime escrito en C.
  • 📂 Streaming I/O: Procesa archivos de texto/CSV de gigabytes línea por línea con consumo de memoria constante.
  • 🗣️ Sintaxis en Español: si, sino, mientras, imprimir. Intuitivo y fácil de aprender.
  • 📊 Funciones Analíticas: Primitivas integradas para estadística (max, min, promedio) y texto (contiene, empieza_con).
  • 🛠️ Tooling Moderno: Extensión oficial para VS Code con resaltado de sintaxis e IntelliSense.

📦 Instalación

Puedes instalar el compilador oficial desde PyPI:

pip install centella-lang

⚡ Quick Start

1. Variables & Math

sea x = 10
sea y = 20
imprimir "La suma es: " (x + y)

2. Boolean Logic (New!)

sea activo = verdadero
sea saldo = 0

si activo && saldo == 0 {
    imprimir "Cuenta activa pero vacia"
}

3. User Functions (New!)

funcion cuadrado(n) {
    retornar n * n
}

imprimir "El cuadrado de 5 es: " cuadrado(5)

4. Reading Data (CSV Processing)

Centella shines at processing big files. Use procesar to iterate over rows automatically.

data.csv

1,Laptop,1000
2,Mouse,20

script.centella

// 'procesar' abre el archivo y lee linea por linea
// Las variables id, prod, precio se llenan automaticamente
procesar "data.csv" capturando (id, prod: texto, precio) {
    sea iva = precio * 0.19
    imprimir prod ": $" (precio + iva)
}

5. Writing Data

guardar "reporte.txt" {
    escribir "Reporte de ventas generada por Centella"
    escribir "======================================="
}

6. Interactive Input

imprimir "Ingresa tu edad:"
leer edad

si edad >= 18 {
    imprimir "Eres mayor de edad."
}

🛠️ Usage

Save your code as myscript.centella and run:

centella myscript.centella

This will compile and execute your program instantly.

📄 License

MIT License. Created by Ermes Galvis.te proyecto es Open Source. ¡Disfruta programando!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

centella_lang-1.2.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

centella_lang-1.2.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file centella_lang-1.2.2.tar.gz.

File metadata

  • Download URL: centella_lang-1.2.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for centella_lang-1.2.2.tar.gz
Algorithm Hash digest
SHA256 f75d0e43d9e8e9d490c1270306148dcc8ce212fe066e7185ad0ffcfd742c6d7e
MD5 2a17861ae93bcd2d6c1521573e4c41fb
BLAKE2b-256 ff08c8c529dcafbeec916651c36da78223445fac4c5a4f07d21f200d93541462

See more details on using hashes here.

File details

Details for the file centella_lang-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: centella_lang-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for centella_lang-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b704c2c45882df4e7dd5ec0d62ebffa0a81eceab1d0fbb7980f20cc24cc5d38
MD5 16f5535947b11cbeb597b2296fc01a51
BLAKE2b-256 15e36c13bef609473e8d9237a55dc5ed2db2b609c3006a341fe5fe276adb3148

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page