Metadata-Version: 2.4
Name: centella-lang
Version: 1.2.0
Summary: The official Centella programming language compiler.
Author: Centella Team
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-python
Dynamic: summary

# 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:

```bash
pip install centella-lang
```

## ⚡ Quick Start

### 1. Variables & Math
```centella
sea x = 10
sea y = 20
imprimir "La suma es: " (x + y)
```

### 2. Boolean Logic (New!)
```centella
sea activo = verdadero
sea saldo = 0

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

### 3. User Functions (New!)
```centella
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**
```csv
1,Laptop,1000
2,Mouse,20
```

**script.centella**
```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
```centella
guardar "reporte.txt" {
    escribir "Reporte de ventas generada por Centella"
    escribir "======================================="
}
```

### 6. Interactive Input
```centella
imprimir "Ingresa tu edad:"
leer edad

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

## 🛠️ Usage
Save your code as `myscript.centella` and run:
```bash
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!
