Skip to main content

The official Centella programming language compiler.

Project description

Centella Programming Language ⚡

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.0.tar.gz (12.7 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.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: centella_lang-1.2.0.tar.gz
  • Upload date:
  • Size: 12.7 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.0.tar.gz
Algorithm Hash digest
SHA256 329e9c9386f57e5829b81307b3cbc81c269496a48d041640e44ff7db9cdff268
MD5 6bee4a113c535762ddcc856720762e22
BLAKE2b-256 686ca845106c0c0c899d45a782734a499bb579d6fe22dd5db3ee31934e7a49cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: centella_lang-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 285a1e50350e588bf5cf50b458493573ae21b67d09853fe7b14182afad8cb050
MD5 d0481f6e446e4ee3cd22304906d5213a
BLAKE2b-256 7e9f0a5789cf34ff90237bc6282bbca9cceaaa941f3fff155c4acdfd2505b970

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