Skip to main content

The official Centella programming language compiler.

Project description

Centella Programming Language (v1.2.1) ⚡

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.1.tar.gz (12.9 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.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: centella_lang-1.2.1.tar.gz
  • Upload date:
  • Size: 12.9 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.1.tar.gz
Algorithm Hash digest
SHA256 b46464981a41ebf87d05a07ab804f2ddb5de0b3052a7bccac8f5de28c754011d
MD5 5e3ca77b21783beb1070b1540de3763b
BLAKE2b-256 116073b6351e884c4906363c76ccaa143916fbb5d5502ca68abc073c63e62bd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: centella_lang-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f243474e555952be79ba2fe5b8bd485321948fb552600a576f45c098f1fb298
MD5 93cf835e38e5b900df1ab27a40fbba16
BLAKE2b-256 6f1ad56054f1a22e4b197b088603681b5ca6b87eeab85ed056803898f68330d1

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