@davidbc01/telar 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,115 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity.
18
+
19
+ "You" (or "Your") shall mean an individual or Legal Entity
20
+ exercising permissions granted by this License.
21
+
22
+ "Source" form shall mean the preferred form for making modifications,
23
+ including but not limited to software source code, documentation
24
+ source, and configuration files.
25
+
26
+ "Object" form shall mean any form resulting from mechanical
27
+ transformation or translation of a Source form, including but
28
+ not limited to compiled object code, generated documentation,
29
+ and conversions to other media types.
30
+
31
+ "Work" shall mean the work of authorship made available under
32
+ the License, as indicated by a copyright notice that is included in
33
+ or attached to the work.
34
+
35
+ "Derivative Works" shall mean any work, whether in Source or Object
36
+ form, that is based on (or derived from) the Work and for which the
37
+ editorial revisions, annotations, elaborations, or other
38
+ transformations represent, as a whole, an original work of authorship.
39
+
40
+ "Contribution" shall mean any work of authorship submitted to the
41
+ Licensor for inclusion in the Work by the copyright owner or by
42
+ an individual or Legal Entity authorized to submit on behalf of
43
+ the copyright owner.
44
+
45
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
46
+ whom a Contribution has been received by the Licensor and included
47
+ within the Work.
48
+
49
+ 2. Grant of Copyright License. Subject to the terms and conditions of
50
+ this License, each Contributor hereby grants to You a perpetual,
51
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
52
+ copyright license to reproduce, prepare Derivative Works of,
53
+ publicly display, publicly perform, sublicense, and distribute the
54
+ Work and such Derivative Works in Source or Object form.
55
+
56
+ 3. Grant of Patent License. Subject to the terms and conditions of
57
+ this License, each Contributor hereby grants to You a perpetual,
58
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
59
+ patent license to make, use, sell, offer for sale, import, and
60
+ otherwise transfer the Work.
61
+
62
+ 4. Redistribution. You may reproduce and distribute copies of the
63
+ Work or Derivative Works thereof in any medium, with or without
64
+ modifications, and in Source or Object form, provided that You
65
+ meet the following conditions:
66
+
67
+ (a) You must give any other recipients of the Work or Derivative
68
+ Works a copy of this License; and
69
+
70
+ (b) You must cause any modified files to carry prominent notices
71
+ stating that You changed the files; and
72
+
73
+ (c) You must retain, in the Source form of any Derivative Works
74
+ that You distribute, all copyright, patent, trademark, and
75
+ attribution notices from the Source form of the Work; and
76
+
77
+ (d) If the Work includes a "NOTICE" text file, you must include a
78
+ readable copy of the attribution notices contained within such
79
+ NOTICE file.
80
+
81
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
82
+ any Contribution submitted for inclusion in the Work shall be under
83
+ the terms and conditions of this License, without any additional
84
+ terms or conditions.
85
+
86
+ 6. Trademarks. This License does not grant permission to use the trade
87
+ names, trademarks, service marks, or product names of the Licensor.
88
+
89
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed
90
+ to in writing, Licensor provides the Work on an "AS IS" BASIS,
91
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
92
+
93
+ 8. Limitation of Liability. In no event and under no legal theory,
94
+ shall any Contributor be liable to You for damages, including any
95
+ direct, indirect, special, incidental, or exemplary damages of
96
+ any character arising as a result of this License or out of the
97
+ use or inability to use the Work.
98
+
99
+ 9. Accepting Warranty or Additional Liability. While redistributing
100
+ the Work, You may offer acceptance of support, warranty, indemnity,
101
+ or other liability obligations consistent with this License.
102
+
103
+ END OF TERMS AND CONDITIONS
104
+
105
+ Copyright 2026 Telar Contributors
106
+
107
+ Licensed under the Apache License, Version 2.0 (the "License");
108
+ you may not use this file except in compliance with the License.
109
+ You may obtain a copy of the License at
110
+
111
+ http://www.apache.org/licenses/LICENSE-2.0
112
+
113
+ Unless required by applicable law or agreed to in writing, software
114
+ distributed under the License is distributed on an "AS IS" BASIS,
115
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package/README.md ADDED
@@ -0,0 +1,158 @@
1
+ # Telar 🧵
2
+
3
+ **Un lenguaje de programación declarativo para la web, escrito en español.**
4
+
5
+ ```telar
6
+ aplicación MiTienda
7
+
8
+ página inicio en "/"
9
+ título "Bienvenido"
10
+
11
+ mostrar productos recientes
12
+ máximo 8
13
+ ordenados por precio
14
+
15
+ si el usuario está conectado
16
+ botón "Mi cuenta" ir a cuenta
17
+ si no
18
+ botón "Entrar" ir a login
19
+
20
+ optimizar para móvil
21
+ caché 10 minutos
22
+ ```
23
+
24
+ *Eso es todo. Sin webpack. Sin JSX. Sin configuración.*
25
+
26
+ ---
27
+
28
+ ## Instalación
29
+
30
+ ```bash
31
+ npm install -g telar
32
+ ```
33
+
34
+ O clona el repositorio para desarrollar:
35
+
36
+ ```bash
37
+ git clone https://github.com/davidbc01/telar
38
+ cd telar
39
+ npm install
40
+ npx ts-node src/cli.ts compilar examples/tienda/app.telar dist/
41
+ ```
42
+
43
+ ---
44
+
45
+ ## Uso
46
+
47
+ ```bash
48
+ # Verificar la sintaxis de un archivo
49
+ telar verificar app.telar
50
+
51
+ # Compilar a HTML + CSS
52
+ telar compilar app.telar
53
+
54
+ # Compilar a una carpeta específica
55
+ telar compilar app.telar -o dist/
56
+
57
+ # Compilar y servir en el navegador
58
+ telar servir app.telar
59
+ ```
60
+
61
+ ---
62
+
63
+ ## El problema
64
+
65
+ El desarrollo web moderno tiene un problema de complejidad acumulada. Para construir una aplicación simple hoy, un desarrollador necesita:
66
+
67
+ - Aprender JavaScript y sus peculiaridades históricas
68
+ - Elegir entre decenas de frameworks
69
+ - Configurar bundlers y herramientas de build
70
+ - Gestionar dependencias
71
+ - Pensar en optimización de rendimiento
72
+ - Manejar errores asíncronos
73
+ - Escribir CSS responsivo
74
+
75
+ Todo eso es trabajo que no tiene nada que ver con el problema que el desarrollador quería resolver.
76
+
77
+ ## La hipótesis de Telar
78
+
79
+ Un lenguaje donde describes la **intención**, y el compilador toma todas las decisiones técnicas.
80
+
81
+ Telar compila a HTML + CSS + JavaScript optimizados. El desarrollador nunca toca esos archivos. El lenguaje tiene opiniones fuertes y defaults inteligentes: responsive, accesible y optimizado por defecto.
82
+
83
+ ## Filosofía
84
+
85
+ **Declarativo siempre** - Describes qué quieres, no cómo conseguirlo.
86
+
87
+ **El silencio no existe** - Telar nunca falla silenciosamente. Los errores son claros, en español, y sugieren cómo arreglarlos.
88
+
89
+ ```
90
+ ✗ Línea 12: "máximo muchos" - se esperaba un número
91
+ ¿Quisiste decir "máximo 10"?
92
+ Sugerencia: los números van sin comillas en Telar
93
+ ```
94
+
95
+ **Defaults con opinión** - Optimización móvil, caché, accesibilidad ARIA y lazy loading activados por defecto. Sin configuración.
96
+
97
+ **Legibilidad humana** - El código de Telar puede ser leído por alguien sin experiencia técnica. No es un objetivo estético: es una restricción de diseño.
98
+
99
+ ## Estado actual
100
+
101
+ 🟢 **En desarrollo activo**
102
+
103
+ | Fase | Estado |
104
+ | ------ | ------ |
105
+ | Especificación del lenguaje | ✅ Completa (v0.1) |
106
+ | Lexer - tokenización | ✅ Completo |
107
+ | Parser - validador de sintaxis | ✅ Completo |
108
+ | Generación de HTML + CSS | ✅ Completo |
109
+ | CLI — compilar, servir, verificar | ✅ Completo |
110
+ | Generación de JavaScript | 🔄 En desarrollo |
111
+ | CLI instalable (npm) | 🟪 Pendiente |
112
+ | Extensión VS Code | 🟪 Pendiente |
113
+ | Lanzamiento público | 🟪 Pendiente |
114
+
115
+ ## Hoja de ruta
116
+
117
+ ### v0.1 - Prueba de concepto
118
+ - [x] Lexer que tokeniza archivos `.telar`
119
+ - [x] Parser que valida la sintaxis
120
+ - [x] Mensajes de error en español
121
+ - [x] Generación de HTML estático + CSS estático
122
+ - [x] CLI con comandos `compilar`, `servir` y `verificar`
123
+
124
+ ### v0.2 - Compilador funcional
125
+ - [ ] Generación de JavaScript
126
+ - [ ] Generación de CSS responsivo
127
+ - [ ] Soporte para modelos de datos
128
+ - [ ] CLI básica: `telar compilar`, `telar servir`
129
+
130
+ ### v1.0 - Lanzamiento público
131
+ - [ ] Estabilidad de sintaxis
132
+ - [ ] Gestor de paquetes Telar
133
+ - [ ] Documentación completa
134
+ - [ ] Comunidad
135
+
136
+ ## ¿Por qué en español?
137
+
138
+ La mayoria de los lenguajes de programación usan palabras clave en inglés. Esto añade una barrera invisible para los más de 500 millones de hispanohablantes que aprenden a programar.
139
+
140
+ Telar no pretende reemplazar el inglés como lengua franca de la programación. Pretende demostrar que la sintaxis de un lenguaje puede ser un dialecto estructurado de cualquier idioma humano, y que eso reduce drásticamente la curva de aprendizaje.
141
+
142
+ ## Cómo contribuir
143
+
144
+ El proyecto está en sus primeras fases. La contribución más valiosa ahora mismo es **probar la sintaxis**:
145
+
146
+ 1. Lee la [especificación](./docs/especificacion.md)
147
+ 2. Intenta escribir tu caso de uso real en Telar
148
+ 3. Abre un issue con lo que se sintió forzado o incómodo
149
+
150
+ Toda la discusión de diseño del lenguaje ocurre en [Issues](../../issues).
151
+
152
+ ## Licencia
153
+
154
+ Apache 2.0 - Ve [LICENSE](./LICENSE) para más detalles.
155
+
156
+ ---
157
+
158
+ *Telar está en sus primeras fases. La sintaxis puede cambiar. Las ideas son bienvenidas.*
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
package/dist/cli.js ADDED
@@ -0,0 +1,250 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ // ---
4
+ // cli.ts
5
+ // Interfaz de línea de comandos de Telar.
6
+ // Comandos: compilar, servir, verificar
7
+ // ---
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
21
+ }) : function(o, v) {
22
+ o["default"] = v;
23
+ });
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ const fs = __importStar(require("fs"));
43
+ const path = __importStar(require("path"));
44
+ const http = __importStar(require("http"));
45
+ const lexer_1 = require("./lexer");
46
+ const parser_1 = require("./parser");
47
+ const generador_1 = require("./generador");
48
+ const tipos_1 = require("./tipos");
49
+ const VERSION = '0.1.0';
50
+ const AYUDA = `
51
+ Telar v${VERSION} — Lenguaje de programación para la web
52
+
53
+ Uso:
54
+ telar <comando> [opciones]
55
+
56
+ Comandos:
57
+ compilar <archivo.telar> Compila a HTML + CSS
58
+ compilar <archivo.telar> -o <carpeta> Especifica carpeta de salida
59
+ servir <archivo.telar> Compila y sirve en localhost
60
+ verificar <archivo.telar> Verifica la sintaxis sin compilar
61
+
62
+ Ejemplos:
63
+ telar compilar app.telar
64
+ telar compilar app.telar -o dist/
65
+ telar servir app.telar
66
+ telar verificar app.telar
67
+
68
+ Opciones:
69
+ --ayuda, -a Muestra esta ayuda
70
+ --version, -v Muestra la versión
71
+ `;
72
+ // --- Entrada principal ---
73
+ const args = process.argv.slice(2);
74
+ if (args.length === 0 || args.includes('--ayuda') || args.includes('-a')) {
75
+ console.log(AYUDA);
76
+ process.exit(0);
77
+ }
78
+ if (args.includes('--version') || args.includes('-v')) {
79
+ console.log(`Telar v${VERSION}`);
80
+ process.exit(0);
81
+ }
82
+ const comando = args[0];
83
+ switch (comando) {
84
+ case 'compilar':
85
+ comandoCompilar(args.slice(1));
86
+ break;
87
+ case 'servir':
88
+ comandoServir(args.slice(1));
89
+ break;
90
+ case 'verificar':
91
+ comandoVerificar(args.slice(1));
92
+ break;
93
+ default:
94
+ console.error(`\n✗ Comando desconocido: "${comando}"`);
95
+ console.error(` Usa "telar --ayuda" para ver los comandos disponibles\n`);
96
+ process.exit(1);
97
+ }
98
+ // --- Comando: compilar ---
99
+ function comandoCompilar(args) {
100
+ const { archivo, salida } = parsearArgs(args, 'dist');
101
+ console.log(`\nTelar — compilando ${path.basename(archivo)}...\n`);
102
+ const archivos = compilar(archivo);
103
+ if (!archivos)
104
+ process.exit(1);
105
+ // Crear carpeta de salida
106
+ if (!fs.existsSync(salida)) {
107
+ fs.mkdirSync(salida, { recursive: true });
108
+ }
109
+ for (const f of archivos) {
110
+ const ruta = path.join(salida, f.nombre);
111
+ fs.writeFileSync(ruta, f.contenido, 'utf-8');
112
+ console.log(`✓ ${f.nombre}`);
113
+ }
114
+ console.log(`\n✓ ${archivos.length} archivos generados en ${salida}/\n`);
115
+ }
116
+ // --- Comando: servir ---
117
+ function comandoServir(args) {
118
+ const { archivo, salida } = parsearArgs(args, '.telar-tmp');
119
+ const puerto = 3000;
120
+ // Compilar primero
121
+ console.log(`\nTelar — compilando ${path.basename(archivo)}...\n`);
122
+ const archivos = compilar(archivo);
123
+ if (!archivos)
124
+ process.exit(1);
125
+ // Escribir a carpeta temporal
126
+ if (!fs.existsSync(salida)) {
127
+ fs.mkdirSync(salida, { recursive: true });
128
+ }
129
+ for (const f of archivos) {
130
+ fs.writeFileSync(path.join(salida, f.nombre), f.contenido, 'utf-8');
131
+ }
132
+ // Servidor HTTP simple
133
+ const servidor = http.createServer((req, res) => {
134
+ let urlPath = req.url === '/' ? '/index.html' : req.url ?? '/index.html';
135
+ // Quitar query strings
136
+ urlPath = urlPath.split('?')[0];
137
+ // Añadir .html si no tiene extensión
138
+ if (!path.extname(urlPath)) {
139
+ urlPath = urlPath + '.html';
140
+ }
141
+ const rutaArchivo = path.join(salida, urlPath);
142
+ if (fs.existsSync(rutaArchivo)) {
143
+ const ext = path.extname(rutaArchivo);
144
+ const tipo = ext === '.html' ? 'text/html; charset=utf-8'
145
+ : ext === '.css' ? 'text/css; charset=utf-8'
146
+ : ext === '.js' ? 'application/javascript'
147
+ : 'text/plain';
148
+ res.writeHead(200, { 'Content-Type': tipo });
149
+ res.end(fs.readFileSync(rutaArchivo));
150
+ }
151
+ else {
152
+ res.writeHead(404, { 'Content-Type': 'text/html; charset=utf-8' });
153
+ res.end(`
154
+ <h1>404 — Página no encontrada</h1>
155
+ <p>No existe: ${urlPath}</p>
156
+ <a href="/">Volver al inicio</a>
157
+ `);
158
+ }
159
+ });
160
+ servidor.listen(puerto, () => {
161
+ console.log(`✓ Compilación completada`);
162
+ console.log(`\n🌐 Telar sirviendo en http://localhost:${puerto}\n`);
163
+ console.log(` Presiona Ctrl+C para parar\n`);
164
+ });
165
+ // Limpiar carpeta temporal al salir
166
+ process.on('SIGINT', () => {
167
+ console.log('\n\n Parando servidor...');
168
+ fs.rmSync(salida, { recursive: true, force: true });
169
+ process.exit(0);
170
+ });
171
+ }
172
+ // --- Comando: verificar ---
173
+ function comandoVerificar(args) {
174
+ const { archivo } = parsearArgs(args, '');
175
+ const nombreArchivo = path.basename(archivo);
176
+ console.log(`\nTelar — verificando ${nombreArchivo}...\n`);
177
+ try {
178
+ const contenido = leerArchivo(archivo);
179
+ if (!contenido)
180
+ process.exit(1);
181
+ const lexer = new lexer_1.Lexer(contenido);
182
+ const tokens = lexer.tokenizar();
183
+ const parser = new parser_1.Parser(tokens);
184
+ const arbol = parser.parsear();
185
+ console.log(`✓ Sintaxis correcta`);
186
+ console.log(` ${arbol.paginas.length} páginas, ${arbol.datos.length} modelos\n`);
187
+ arbol.paginas.forEach(p => {
188
+ console.log(` 📄 ${p.nombre} (${p.ruta})`);
189
+ });
190
+ console.log();
191
+ }
192
+ catch (error) {
193
+ if (error instanceof tipos_1.TelarError) {
194
+ console.error(error.formatear(nombreArchivo));
195
+ }
196
+ else {
197
+ console.error(error);
198
+ }
199
+ process.exit(1);
200
+ }
201
+ }
202
+ // --- Helpers ---
203
+ function compilar(rutaArchivo) {
204
+ const nombreArchivo = path.basename(rutaArchivo);
205
+ try {
206
+ const contenido = leerArchivo(rutaArchivo);
207
+ if (!contenido)
208
+ return null;
209
+ const lexer = new lexer_1.Lexer(contenido);
210
+ const tokens = lexer.tokenizar();
211
+ const parser = new parser_1.Parser(tokens);
212
+ const arbol = parser.parsear();
213
+ const generador = new generador_1.Generador(arbol);
214
+ return generador.generar();
215
+ }
216
+ catch (error) {
217
+ if (error instanceof tipos_1.TelarError) {
218
+ console.error(error.formatear(nombreArchivo));
219
+ }
220
+ else {
221
+ console.error(error);
222
+ }
223
+ return null;
224
+ }
225
+ }
226
+ function leerArchivo(ruta) {
227
+ if (!fs.existsSync(ruta)) {
228
+ console.error(`\n✗ No se encontró el archivo: ${ruta}\n`);
229
+ return null;
230
+ }
231
+ if (!ruta.endsWith('.telar')) {
232
+ console.error(`\n✗ El archivo debe tener extensión .telar\n`);
233
+ return null;
234
+ }
235
+ return fs.readFileSync(ruta, 'utf-8');
236
+ }
237
+ function parsearArgs(args, salidaDefault) {
238
+ if (args.length === 0) {
239
+ console.error(`\n✗ Falta el archivo .telar\n`);
240
+ console.error(` Ejemplo: telar compilar app.telar\n`);
241
+ process.exit(1);
242
+ }
243
+ const archivo = args[0];
244
+ const indiceO = args.indexOf('-o');
245
+ const salida = indiceO !== -1 && args[indiceO + 1]
246
+ ? args[indiceO + 1]
247
+ : salidaDefault;
248
+ return { archivo, salida };
249
+ }
250
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AACA,MAAM;AACN,SAAS;AACT,0CAA0C;AAC1C,wCAAwC;AACxC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEN,uCAAwB;AACxB,2CAA4B;AAC5B,2CAA4B;AAC5B,mCAA+B;AAC/B,qCAAiC;AACjC,2CAAuC;AACvC,mCAAoC;AAEpC,MAAM,OAAO,GAAG,OAAO,CAAA;AAEvB,MAAM,KAAK,GAAG;WACH,OAAO;;;;;;;;;;;;;;;;;;;;CAoBjB,CAAA;AAED,4BAA4B;AAE5B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAElC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IACvE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACnB,CAAC;AAED,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IACpD,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO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AO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAA;AAC9B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ErrorTelar } from "./tipos";
2
+ export declare const Errores: {
3
+ caracterDesconocido: (caracter: string, linea: number, columna: number) => ErrorTelar;
4
+ textoSinCerrar: (linea: number, columna: number) => ErrorTelar;
5
+ seEsperaba: (esperado: string, encontrado: string, linea: number, columna: number) => ErrorTelar;
6
+ nombreAplicacion: (linea: number, columna: number) => ErrorTelar;
7
+ rutaPagina: (nombre: string, linea: number, columna: number) => ErrorTelar;
8
+ numeroEsperado: (valor: string, linea: number, columna: number) => ErrorTelar;
9
+ tipoDatoDesconocido: (tipo: string, linea: number, columna: number) => ErrorTelar;
10
+ tipoCampoDesconocido: (tipo: string, linea: number, columna: number) => ErrorTelar;
11
+ condicionDesconocida: (texto: string, linea: number, columna: number) => ErrorTelar;
12
+ indentacionIncorrecta: (linea: number, columna: number) => ErrorTelar;
13
+ archivoVacio: () => ErrorTelar;
14
+ faltaAplicacion: (linea: number, columna: number) => ErrorTelar;
15
+ };
16
+ //# sourceMappingURL=errores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errores.d.ts","sourceRoot":"","sources":["../src/errores.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,OAAO;oCAIgB,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;4BAO3D,MAAM,WAAW,MAAM,KAAG,UAAU;2BASrC,MAAM,cAAc,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;8BAOpE,MAAM,WAAW,MAAM,KAAG,UAAU;yBAOzC,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;4BAOhD,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;gCAO/C,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;iCAOlD,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;kCAOlD,MAAM,SAAS,MAAM,WAAW,MAAM,KAAG,UAAU;mCAOlD,MAAM,WAAW,MAAM,KAAG,UAAU;wBAOjD,UAAU;6BAOH,MAAM,WAAW,MAAM,KAAG,UAAU;CAMhE,CAAA"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ // ---
3
+ // errores.ts
4
+ // Todos los mensajes de error de Telar, en español.
5
+ // Cada error tiene mensaje + sugerencia de cómo arreglarlo
6
+ // ---
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Errores = void 0;
9
+ exports.Errores = {
10
+ // --- Lexer ---
11
+ caracterDesconocido: (caracter, linea, columna) => ({
12
+ mensaje: `Carácter desconocido: "${caracter}"`,
13
+ sugerencia: "Telar solo usa letras, números, comillas y dos puntos",
14
+ linea,
15
+ columna
16
+ }),
17
+ textoSinCerrar: (linea, columna) => ({
18
+ mensaje: `Texto sin cerrar — falta la comilla de cierre`,
19
+ sugerencia: `Asegúrate de cerrar el texto con comillas dobles: "tu texto aquí"`,
20
+ linea,
21
+ columna
22
+ }),
23
+ // --- Parser ---
24
+ seEsperaba: (esperado, encontrado, linea, columna) => ({
25
+ mensaje: `Se esperaba ${esperado} pero se encontró "${encontrado}"`,
26
+ sugerencia: `Comprueba la sintaxis en la línea ${linea}`,
27
+ linea,
28
+ columna
29
+ }),
30
+ nombreAplicacion: (linea, columna) => ({
31
+ mensaje: `La aplicación necesita un nombre`,
32
+ sugerencia: `Escríbelo así: aplicación MiApp`,
33
+ linea,
34
+ columna
35
+ }),
36
+ rutaPagina: (nombre, linea, columna) => ({
37
+ mensaje: `La página "${nombre}" necesita una ruta`,
38
+ sugerencia: `Escríbelo así: página ${nombre} en "/"`,
39
+ linea,
40
+ columna
41
+ }),
42
+ numeroEsperado: (valor, linea, columna) => ({
43
+ mensaje: `"${valor}" no es un número`,
44
+ sugerencia: `Los números van sin comillas. Por ejemplo: máximo 10`,
45
+ linea,
46
+ columna
47
+ }),
48
+ tipoDatoDesconocido: (tipo, linea, columna) => ({
49
+ mensaje: `Tipo de dato desconocido: "${tipo}"`,
50
+ sugerencia: `Los tipos disponibles son: texto, número, fecha, foto, verdad, lista`,
51
+ linea,
52
+ columna
53
+ }),
54
+ tipoCampoDesconocido: (tipo, linea, columna) => ({
55
+ mensaje: `Tipo de campo desconocido: "${tipo}"`,
56
+ sugerencia: `Los tipos disponibles son: texto, email, contraseña, número, área de texto`,
57
+ linea,
58
+ columna
59
+ }),
60
+ condicionDesconocida: (texto, linea, columna) => ({
61
+ mensaje: `Condición no reconocida: "${texto}"`,
62
+ sugerencia: `Prueba con: "si el usuario está conectado", "si hay resultados"`,
63
+ linea,
64
+ columna
65
+ }),
66
+ indentacionIncorrecta: (linea, columna) => ({
67
+ mensaje: `Indentación incorrecta en la línea ${linea}`,
68
+ sugerencia: `Usa exactamente 2 espacios por nivel de indentación`,
69
+ linea,
70
+ columna
71
+ }),
72
+ archivoVacio: () => ({
73
+ mensaje: `El archivo está vacío`,
74
+ sugerencia: `Todo archivo Telar debe empezar con: aplicación NombreApp`,
75
+ linea: 1,
76
+ columna: 1,
77
+ }),
78
+ faltaAplicacion: (linea, columna) => ({
79
+ mensaje: `El archivo debe empezar con una declaración de aplicación`,
80
+ sugerencia: `Añade al principio: aplicación NombreApp`,
81
+ linea,
82
+ columna,
83
+ }),
84
+ };
85
+ //# sourceMappingURL=errores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errores.js","sourceRoot":"","sources":["../src/errores.ts"],"names":[],"mappings":";AAAA,MAAM;AACN,aAAa;AACb,oDAAoD;AACpD,2DAA2D;AAC3D,MAAM;;;AAIO,QAAA,OAAO,GAAG;IAEnB,gBAAgB;IAEhB,mBAAmB,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAe,EAAc,EAAE,CAAC,CAAC;QACpF,OAAO,EAAE,0BAA0B,QAAQ,GAAG;QAC9C,UAAU,EAAE,uDAAuD;QACnE,KAAK;QACL,OAAO;KACV,CAAC;IA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