Debian Codegraph @

po/es/archive/man1/flex.1.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Adrián Pérez Jorge <[email protected]>, 1999.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2020-11-24 18:45+01:00\n"
9 "PO-Revision-Date: 1999-04-09 00:21+0100\n"
10 "Last-Translator: Adrián Pérez Jorge <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
18 #. type: TH
19 #: original/man1/flex.1:1
20 #, no-wrap
21 msgid "FLEX"
22 msgstr "FLEX"
23
24 #. type: TH
25 #: original/man1/flex.1:1
26 #, no-wrap
27 msgid "April 1995"
28 msgstr "Abril 1995"
29
30 #. type: TH
31 #: original/man1/flex.1:1
32 #, no-wrap
33 msgid "Version 2.5"
34 msgstr "Versión 2.5"
35
36 #. type: SH
37 #: original/man1/flex.1:2
38 #, no-wrap
39 msgid "NAME"
40 msgstr "NOMBRE"
41
42 #. type: Plain text
43 #: original/man1/flex.1:4
44 msgid "flex - fast lexical analyzer generator"
45 msgstr "flex - generador de analizadores léxicos rápidos"
46
47 #. type: SH
48 #: original/man1/flex.1:4
49 #, no-wrap
50 msgid "SYNOPSIS"
51 msgstr "SINOPSIS"
52
53 #. type: Plain text
54 #: original/man1/flex.1:9
55 msgid ""
56 "B<flex> B<[-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -ooutput -Pprefix -Sskeleton]> "
57 "B<[--help --version]> I<[filename ...]>"
58 msgstr ""
59 "B<flex> B<[-bcdfhilnpstvwBFILTV78+? -C[aefFmr] -osalida -Pprefijo -"
60 "Sesqueleto]> B<[--help --version]> I<[nombrefichero ...]>"
61
62 #. type: SH
63 #: original/man1/flex.1:9
64 #, no-wrap
65 msgid "OVERVIEW"
66 msgstr "INTRODUCCIÓN"
67
68 #. type: Plain text
69 #: original/man1/flex.1:14
70 msgid ""
71 "This manual describes I<flex,> a tool for generating programs that perform "
72 "pattern-matching on text. The manual includes both tutorial and reference "
73 "sections:"
74 msgstr ""
75 "Este manual describe I<flex,> una herramienta para la generación de programas "
76 "que realizan concordancia de patrones en texto. El manual incluye a la vez "
77 "secciones de tutorial y de referencia:"
78
79 #. type: Plain text
80 #: original/man1/flex.1:18
81 #, no-wrap
82 msgid ""
83 " Description\n"
84 " a brief overview of the tool\n"
85 msgstr ""
86 " Descripción\n"
87 " una breve introducción a la herramienta\n"
88
89 #. type: Plain text
90 #: original/man1/flex.1:20
91 #, no-wrap
92 msgid " Some Simple Examples\n"
93 msgstr " Algunos Ejemplos Simples\n"
94
95 #. type: Plain text
96 #: original/man1/flex.1:22
97 #, no-wrap
98 msgid " Format Of The Input File\n"
99 msgstr " Formato del Fichero de Entrada\n"
100
101 #. type: Plain text
102 #: original/man1/flex.1:25
103 #, no-wrap
104 msgid ""
105 " Patterns\n"
106 " the extended regular expressions used by flex\n"
107 msgstr ""
108 " Patrones\n"
109 " las expresiones regulares extendidas que utiliza flex\n"
110
111 #. type: Plain text
112 #: original/man1/flex.1:28
113 #, no-wrap
114 msgid ""
115 " How The Input Is Matched\n"
116 " the rules for determining what has been matched\n"
117 msgstr ""
118 " Cómo se Empareja la Entrada\n"
119 " las reglas para determinar lo que ha concordado\n"
120
121 #. type: Plain text
122 #: original/man1/flex.1:31
123 #, no-wrap
124 msgid ""
125 " Actions\n"
126 " how to specify what to do when a pattern is matched\n"
127 msgstr ""
128 " Acciones\n"
129 " cómo especificar qué hacer cuando concuerde un patrón\n"
130
131 #. type: Plain text
132 #: original/man1/flex.1:35
133 #, no-wrap
134 msgid ""
135 " The Generated Scanner\n"
136 " details regarding the scanner that flex produces;\n"
137 " how to control the input source\n"
138 msgstr ""
139 " El Escáner Generado\n"
140 " detalles respecto al escáner que produce flex;\n"
141 " cómo controlar la fuente de entrada\n"
142
143 #. type: Plain text
144 #: original/man1/flex.1:39
145 #, no-wrap
146 msgid ""
147 " Start Conditions\n"
148 " introducing context into your scanners, and\n"
149 " managing \"mini-scanners\"\n"
150 msgstr ""
151 " Condiciones de Arranque\n"
152 " la introdución de contexto en sus escáneres, y\n"
153 " conseguir \"mini-escáneres\"\n"
154
155 #. type: Plain text
156 #: original/man1/flex.1:43
157 #, no-wrap
158 msgid ""
159 " Multiple Input Buffers\n"
160 " how to manipulate multiple input sources; how to\n"
161 " scan from strings instead of files\n"
162 msgstr ""
163 " Múltiples Buffers de Entrada\n"
164 " cómo manipular varias fuentes de entrada; cómo\n"
165 " analizar cadenas en lugar de ficheros.\n"
166
167 #. type: Plain text
168 #: original/man1/flex.1:46
169 #, no-wrap
170 msgid ""
171 " End-of-file Rules\n"
172 " special rules for matching the end of the input\n"
173 msgstr ""
174 " Reglas de Fin-de-Fichero\n"
175 " reglas especiales para reconocer el final de la entrada\n"
176
177 #. type: Plain text
178 #: original/man1/flex.1:49
179 #, no-wrap
180 msgid ""
181 " Miscellaneous Macros\n"
182 " a summary of macros available to the actions\n"
183 msgstr ""
184 " Macros Misceláneas\n"
185 " un sumario de macros disponibles para las acciones\n"
186
187 #. type: Plain text
188 #: original/man1/flex.1:52
189 #, no-wrap
190 msgid ""
191 " Values Available To The User\n"
192 " a summary of values available to the actions\n"
193 msgstr ""
194 " Valores Disponibles para el Usuario\n"
195 " un sumario de valores disponibles para las acciones\n"
196
197 #. type: Plain text
198 #: original/man1/flex.1:55
199 #, no-wrap
200 msgid ""
201 " Interfacing With Yacc\n"
202 " connecting flex scanners together with yacc parsers\n"
203 msgstr ""
204 " Interfaz con Yacc\n"
205 " conectando escáneres de flex junto con analizadores de yacc\n"
206
207 #. type: Plain text
208 #: original/man1/flex.1:59
209 #, no-wrap
210 msgid ""
211 " Options\n"
212 " flex command-line options, and the \"%option\"\n"
213 " directive\n"
214 msgstr ""
215 " Opciones\n"
216 " opciones de línea de comando de flex, y la directiva\n"
217 " \"%option\"\n"
218
219 #. type: Plain text
220 #: original/man1/flex.1:62
221 #, no-wrap
222 msgid ""
223 " Performance Considerations\n"
224 " how to make your scanner go as fast as possible\n"
225 msgstr ""
226 " Consideraciones de Rendimiento\n"
227 " cómo hacer que sus analizadores vayan tan rápido\n"
228 " como sea posible\n"
229
230 #. type: Plain text
231 #: original/man1/flex.1:66
232 #, no-wrap
233 msgid ""
234 " Generating C++ Scanners\n"
235 " the (experimental) facility for generating C++\n"
236 " scanner classes\n"
237 msgstr ""
238 " Generando Escáneres en C++\n"
239 " la facilidad (experimental) para generar analizadores\n"
240 " léxicos como clases de C++\n"
241
242 #. type: Plain text
243 #: original/man1/flex.1:70
244 #, no-wrap
245 msgid ""
246 " Incompatibilities With Lex And POSIX\n"
247 " how flex differs from AT&T lex and the POSIX lex\n"
248 " standard\n"
249 msgstr ""
250 " Incompatibilidades con Lex y POSIX\n"
251 " cómo flex difiere del lex de AT&T y del lex estándar\n"
252 " de POSIX \n"
253
254 #. type: Plain text
255 #: original/man1/flex.1:74
256 #, no-wrap
257 msgid ""
258 " Diagnostics\n"
259 " those error messages produced by flex (or scanners\n"
260 " it generates) whose meanings might not be apparent\n"
261 msgstr ""
262 " Diagnósticos\n"
263 " esos mensajes de error producidos por flex (o por\n"
264 " los escáneres que este genera) cuyo significado podría\n"
265 " no ser evidente\n"
266
267 #. type: Plain text
268 #: original/man1/flex.1:77
269 #, no-wrap
270 msgid ""
271 " Files\n"
272 " files used by flex\n"
273 msgstr ""
274 " Ficheros\n"
275 " los ficheros usados por flex\n"
276
277 #. type: Plain text
278 #: original/man1/flex.1:80
279 #, no-wrap
280 msgid ""
281 " Deficiencies / Bugs\n"
282 " known problems with flex\n"
283 msgstr ""
284 " Deficiencias / Errores\n"
285 " problemas de flex conocidos\n"
286
287 #. type: Plain text
288 #: original/man1/flex.1:83
289 #, no-wrap
290 msgid ""
291 " See Also\n"
292 " other documentation, related tools\n"
293 msgstr ""
294 " Ver También\n"
295 " otra documentación, herramientas relacionadas\n"
296
297 #. type: Plain text
298 #: original/man1/flex.1:86
299 #, no-wrap
300 msgid ""
301 " Author\n"
302 " includes contact information\n"
303 msgstr ""
304 " Autor\n"
305 " incluye información de contacto\n"
306
307 #. type: SH
308 #: original/man1/flex.1:88
309 #, no-wrap
310 msgid "DESCRIPTION"
311 msgstr "DESCRIPCIÓN"
312
313 #. type: Plain text
314 #: original/man1/flex.1:110
315 msgid ""
316 "I<flex> is a tool for generating I<scanners:> programs which recognized "
317 "lexical patterns in text. I<flex> reads the given input files, or its "
318 "standard input if no file names are given, for a description of a scanner to "
319 "generate. The description is in the form of pairs of regular expressions and "
320 "C code, called I<rules. flex> generates as output a C source file, B<lex.yy.c,"
321 "> which defines a routine B<yylex().> This file is compiled and linked with "
322 "the B<-lfl> library to produce an executable. When the executable is run, it "
323 "analyzes its input for occurrences of the regular expressions. Whenever it "
324 "finds one, it executes the corresponding C code."
325 msgstr ""
326 "I<flex> es una herramienta para generar I<escáneres:> programas que reconocen "
327 "patrones léxicos en un texto. I<flex> lee los ficheros de entrada dados, o "
328 "la entrada estándar si no se le ha indicado ningún nombre de fichero, con la "
329 "descripción de un escáner a generar. La descripción se encuentra en forma de "
330 "parejas de expresiones regulares y código C, denominadas I<reglas. flex> "
331 "genera como salida un fichero fuente en C, B<lex.yy.c,> que define una rutina "
332 "B<yylex().> Este fichero se compila y se enlaza con la librería B<-lfl> para "
333 "producir un ejecutable. Cuando se arranca el fichero ejecutable, este "
334 "analiza su entrada en busca de casos de las expresiones regulares. Siempre "
335 "que encuentra uno, ejecuta el código C correspondiente."
336
337 #. type: SH
338 #: original/man1/flex.1:110
339 #, no-wrap
340 msgid "SOME SIMPLE EXAMPLES"
341 msgstr "ALGUNOS EJEMPLOS SIMPLES"
342
343 #. type: Plain text
344 #: original/man1/flex.1:118
345 msgid ""
346 "First some simple examples to get the flavor of how one uses I<flex.> The "
347 "following I<flex> input specifies a scanner which whenever it encounters the "
348 "string \"username\" will replace it with the user's login name:"
349 msgstr ""
350 "En primer lugar veremos algunos ejemplos simples para una toma de contacto "
351 "con el uso de I<flex.> La siguiente entrada de I<flex> especifica un escáner "
352 "que siempre que encuentre la cadena \"username\" la reemplazará por el nombre "
353 "de entrada al sistema del usuario:"
354
355 #. type: Plain text
356 #: original/man1/flex.1:122
357 #, no-wrap
358 msgid ""
359 " %%\n"
360 " username printf( \"%s\", getlogin() );\n"
361 msgstr ""
362 " %%\n"
363 " username printf( \"%s\", getlogin() );\n"
364
365 #. type: Plain text
366 #: original/man1/flex.1:135
367 msgid ""
368 "By default, any text not matched by a I<flex> scanner is copied to the "
369 "output, so the net effect of this scanner is to copy its input file to its "
370 "output with each occurrence of \"username\" expanded. In this input, there "
371 "is just one rule. \"username\" is the I<pattern> and the \"printf\" is the "
372 "I<action.> The \"%%\" marks the beginning of the rules."
373 msgstr ""
374 "Por defecto, cualquier texto que no reconozca el analizador léxico de I<flex> "
375 "se copia a la salida, así que el efecto neto de este escáner es copiar su "
376 "fichero de entrada a la salida con cada aparición de \"username\" expandida. "
377 "En esta entrada, hay solamente una regla. \"username\" es el I<patrón> y el "
378 "\"printf\" es la I<acción.> El \"%%\" marca el comienzo de las reglas."
379
380 #. type: Plain text
381 #: original/man1/flex.1:137
382 msgid "Here's another simple example:"
383 msgstr "Aquí hay otro ejemplo simple:"
384
385 #. type: Plain text
386 #: original/man1/flex.1:140
387 #, no-wrap
388 msgid " int num_lines = 0, num_chars = 0;\n"
389 msgstr " int num_lines = 0, num_chars = 0;\n"
390
391 #. type: Plain text
392 #: original/man1/flex.1:144
393 #, no-wrap
394 msgid ""
395 " %%\n"
396 " \\en ++num_lines; ++num_chars;\n"
397 " . ++num_chars;\n"
398 msgstr ""
399 " %%\n"
400 " \\en ++num_lines; ++num_chars;\n"
401 " . ++num_chars;\n"
402
403 #. type: Plain text
404 #: original/man1/flex.1:152
405 #, no-wrap
406 msgid ""
407 " %%\n"
408 " main()\n"
409 " {\n"
410 " yylex();\n"
411 " printf( \"# of lines = %d, # of chars = %d\\en\",\n"
412 " num_lines, num_chars );\n"
413 " }\n"
414 msgstr ""
415 " %%\n"
416 " main()\n"
417 " {\n"
418 " yylex();\n"
419 " printf( \"# of lines = %d, # of chars = %d\\en\",\n"
420 " num_lines, num_chars );\n"
421 " }\n"
422
423 #. type: Plain text
424 #: original/man1/flex.1:166
425 msgid ""
426 "This scanner counts the number of characters and the number of lines in its "
427 "input (it produces no output other than the final report on the counts). The "
428 "first line declares two globals, \"num_lines\" and \"num_chars\", which are "
429 "accessible both inside B<yylex()> and in the B<main()> routine declared after "
430 "the second \"%%\". There are two rules, one which matches a newline (\"\\en"
431 "\") and increments both the line count and the character count, and one which "
432 "matches any character other than a newline (indicated by the \".\" regular "
433 "expression)."
434 msgstr ""
435 "Este analizador cuenta el número de caracteres y el número de líneas en su "
436 "entrada (no produce otra salida que el informe final de la cuenta). La "
437 "primera línea declara dos variables globales, \"num_lineas\" y "
438 "\"num_caracteres\", que son visibles al mismo tiempo dentro de B<yylex()> y "
439 "en la rutina B<main()> declarada después del segundo \"%%\". Hay dos reglas, "
440 "una que empareja una línea nueva (\"\\en\") e incrementa la cuenta de líneas "
441 "y la cuenta de caracteres, y la que empareja cualquier caracter que no sea "
442 "una línea nueva (indicado por la expresión regular \".\")."
443
444 #. type: Plain text
445 #: original/man1/flex.1:168
446 msgid "A somewhat more complicated example:"
447 msgstr "Un ejemplo algo más complicado:"
448
449 #. type: Plain text
450 #: original/man1/flex.1:171
451 #, no-wrap
452 msgid " /* scanner for a toy Pascal-like language */\n"
453 msgstr " /* escáner para un lenguaje de juguete al estilo de Pascal */\n"
454
455 #. type: Plain text
456 #: original/man1/flex.1:176
457 #, no-wrap
458 msgid ""
459 " %{\n"
460 " /* need this for the call to atof() below */\n"
461 " #include E<lt>math.hE<gt>\n"
462 " %}\n"
463 msgstr ""
464 " %{\n"
465 " /* se necesita esto para la llamada a atof() más abajo */\n"
466 " #include E<lt>math.hE<gt>\n"
467 " %}\n"
468
469 #. type: Plain text
470 #: original/man1/flex.1:179 original/man1/flex.1:268
471 #, no-wrap
472 msgid ""
473 " DIGIT [0-9]\n"
474 " ID [a-z][a-z0-9]*\n"
475 msgstr ""
476 " DIGITO [0-9]\n"
477 " ID [a-z][a-z0-9]*\n"
478
479 #. type: Plain text
480 #: original/man1/flex.1:181 original/man1/flex.1:207 original/man1/flex.1:586
481 #: original/man1/flex.1:2061 original/man1/flex.1:3401 original/man1/flex.1:3431
482 #, no-wrap
483 msgid " %%\n"
484 msgstr " %%\n"
485
486 #. type: Plain text
487 #: original/man1/flex.1:186
488 #, no-wrap
489 msgid ""
490 " {DIGIT}+ {\n"
491 " printf( \"An integer: %s (%d)\\en\", yytext,\n"
492 " atoi( yytext ) );\n"
493 " }\n"
494 msgstr ""
495 " {DIGITO}+ {\n"
496 " printf( \"Un entero: %s (%d)\\en\", yytext,\n"
497 " atoi( yytext ) );\n"
498 " }\n"
499
500 #. type: Plain text
501 #: original/man1/flex.1:191
502 #, no-wrap
503 msgid ""
504 " {DIGIT}+\".\"{DIGIT}* {\n"
505 " printf( \"A float: %s (%g)\\en\", yytext,\n"
506 " atof( yytext ) );\n"
507 " }\n"
508 msgstr ""
509 " {DIGITO}+\".\"{DIGITO}* {\n"
510 " printf( \"Un real: %s (%g)\\en\", yytext,\n"
511 " atof( yytext ) );\n"
512 " }\n"
513
514 #. type: Plain text
515 #: original/man1/flex.1:195
516 #, no-wrap
517 msgid ""
518 " if|then|begin|end|procedure|function {\n"
519 " printf( \"A keyword: %s\\en\", yytext );\n"
520 " }\n"
521 msgstr ""
522 " if|then|begin|end|procedure|function {\n"
523 " printf( \"Una palabra clave: %s\\en\", yytext );\n"
524 " }\n"
525
526 #. type: Plain text
527 #: original/man1/flex.1:197
528 #, no-wrap
529 msgid " {ID} printf( \"An identifier: %s\\en\", yytext );\n"
530 msgstr " {ID} printf( \"Un identificador: %s\\en\", yytext );\n"
531
532 #. type: Plain text
533 #: original/man1/flex.1:199
534 #, no-wrap
535 msgid " \"+\"|\"-\"|\"*\"|\"/\" printf( \"An operator: %s\\en\", yytext );\n"
536 msgstr " \"+\"|\"-\"|\"*\"|\"/\" printf( \"Un operador: %s\\en\", yytext );\n"
537
538 #. type: Plain text
539 #: original/man1/flex.1:201
540 #, no-wrap
541 msgid " \"{\"[^}\\en]*\"}\" /* eat up one-line comments */\n"
542 msgstr " \"{\"[^}\\en]*\"}\" /* se come una linea de comentarios */\n"
543
544 #. type: Plain text
545 #: original/man1/flex.1:203
546 #, no-wrap
547 msgid " [ \\et\\en]+ /* eat up whitespace */\n"
548 msgstr " [ \\et\\en]+ /* se come los espacios en blanco */\n"
549
550 #. type: Plain text
551 #: original/man1/flex.1:205
552 #, no-wrap
553 msgid " . printf( \"Unrecognized character: %s\\en\", yytext );\n"
554 msgstr " . printf( \"Caracter no reconocido: %s\\en\", yytext );\n"
555
556 #. type: Plain text
557 #: original/man1/flex.1:217
558 #, no-wrap
559 msgid ""
560 " main( argc, argv )\n"
561 " int argc;\n"
562 " char **argv;\n"
563 " {\n"
564 " ++argv, --argc; /* skip over program name */\n"
565 " if ( argc E<gt> 0 )\n"
566 " yyin = fopen( argv[0], \"r\" );\n"
567 " else\n"
568 " yyin = stdin;\n"
569 msgstr ""
570 " main( argc, argv )\n"
571 " int argc;\n"
572 " char **argv;\n"
573 " {\n"
574 " ++argv, --argc; /* se salta el nombre del programa */\n"
575 " if ( argc E<gt> 0 )\n"
576 " yyin = fopen( argv[0], \"r\" );\n"
577 " else\n"
578 " yyin = stdin;\n"
579
580 #. type: Plain text
581 #: original/man1/flex.1:220
582 #, no-wrap
583 msgid ""
584 " yylex();\n"
585 " }\n"
586 msgstr ""
587 " yylex();\n"
588 " }\n"
589
590 #. type: Plain text
591 #: original/man1/flex.1:226
592 msgid ""
593 "This is the beginnings of a simple scanner for a language like Pascal. It "
594 "identifies different types of I<tokens> and reports on what it has seen."
595 msgstr ""
596 "Esto podría ser los comienzos de un escáner simple para un lenguaje como "
597 "Pascal. Este identifica diferentes tipos de I<tokens> e informa a cerca de "
598 "lo que ha visto."
599
600 #. type: Plain text
601 #: original/man1/flex.1:229
602 msgid "The details of this example will be explained in the following sections."
603 msgstr "Los detalles de este ejemplo se explicarán en las secciones siguientes."
604
605 #. type: SH
606 #: original/man1/flex.1:229
607 #, no-wrap
608 msgid "FORMAT OF THE INPUT FILE"
609 msgstr "FORMATO DEL FICHERO DE ENTRADA"
610
611 #. type: Plain text
612 #: original/man1/flex.1:235
613 msgid ""
614 "The I<flex> input file consists of three sections, separated by a line with "
615 "just B<%%> in it:"
616 msgstr ""
617 "El fichero de entrada de I<flex> está compuesto de tres secciones, separadas "
618 "por una línea donde aparece únicamente un B<%%> en esta:"
619
620 #. type: Plain text
621 #: original/man1/flex.1:242
622 #, no-wrap
623 msgid ""
624 " definitions\n"
625 " %%\n"
626 " rules\n"
627 " %%\n"
628 " user code\n"
629 msgstr ""
630 " definiciones\n"
631 " %%\n"
632 " reglas\n"
633 " %%\n"
634 " código de usuario\n"
635
636 #. type: Plain text
637 #: original/man1/flex.1:251
638 msgid ""
639 "The I<definitions> section contains declarations of simple I<name> "
640 "definitions to simplify the scanner specification, and declarations of "
641 "I<start conditions,> which are explained in a later section."
642 msgstr ""
643 "La sección de I<definiciones> contiene declaraciones de definiciones de "
644 "I<nombres> sencillas para simplificar la especificación del escáner, y "
645 "declaraciones de I<condiciones de arranque,> que se explicarán en una sección "
646 "posterior."
647
648 #. type: Plain text
649 #: original/man1/flex.1:253
650 msgid "Name definitions have the form:"
651 msgstr "Las definiciones de nombre tienen la forma:"
652
653 #. type: Plain text
654 #: original/man1/flex.1:256
655 #, no-wrap
656 msgid " name definition\n"
657 msgstr " nombre definición\n"
658
659 #. type: Plain text
660 #: original/man1/flex.1:264
661 msgid ""
662 "The \"name\" is a word beginning with a letter or an underscore ('_') "
663 "followed by zero or more letters, digits, '_', or '-' (dash). The definition "
664 "is taken to begin at the first non-white-space character following the name "
665 "and continuing to the end of the line. The definition can subsequently be "
666 "referred to using \"{name}\", which will expand to \"(definition)\". For "
667 "example,"
668 msgstr ""
669 "El \"nombre\" es una palabra que comienza con una letra o un subrayado ('_') "
670 "seguido por cero o más letras, dígitos, '_', o '-' (guión). La definición se "
671 "considera que comienza en el primer caracter que no sea un espacio en blanco "
672 "siguiendo al nombre y continuando hasta el final de la línea. Posteriormente "
673 "se puede hacer referencia a la definición utilizando \"{nombre}\", que se "
674 "expandirá a \"(definición)\". Por ejemplo,"
675
676 #. type: Plain text
677 #: original/man1/flex.1:275
678 msgid ""
679 "defines \"DIGIT\" to be a regular expression which matches a single digit, "
680 "and \"ID\" to be a regular expression which matches a letter followed by zero-"
681 "or-more letters-or-digits. A subsequent reference to"
682 msgstr ""
683 "define \"DIGITO\" como una expresión regular que empareja un dígito sencillo, "
684 "e \"ID\" como una expresión regular que empareja una letra seguida por cero o "
685 "más letras o dígitos. Una referencia posterior a"
686
687 #. type: Plain text
688 #: original/man1/flex.1:278
689 #, no-wrap
690 msgid " {DIGIT}+\".\"{DIGIT}*\n"
691 msgstr " {DIGITO}+\".\"{DIGITO}*\n"
692
693 #. type: Plain text
694 #: original/man1/flex.1:281
695 msgid "is identical to"
696 msgstr "es idéntica a"
697
698 #. type: Plain text
699 #: original/man1/flex.1:284
700 #, no-wrap
701 msgid " ([0-9])+\".\"([0-9])*\n"
702 msgstr " ([0-9])+\".\"([0-9])*\n"
703
704 #. type: Plain text
705 #: original/man1/flex.1:288
706 msgid ""
707 "and matches one-or-more digits followed by a '.' followed by zero-or-more "
708 "digits."
709 msgstr ""
710 "y empareja uno o más dígitos seguido por un '.' seguido por cero o más "
711 "dígitos."
712
713 #. type: Plain text
714 #: original/man1/flex.1:294
715 msgid ""
716 "The I<rules> section of the I<flex> input contains a series of rules of the "
717 "form:"
718 msgstr ""
719 "La sección de I<reglas> en la entrada de I<flex> contiene una serie de reglas "
720 "de la forma:"
721
722 #. type: Plain text
723 #: original/man1/flex.1:297
724 #, no-wrap
725 msgid " pattern action\n"
726 msgstr " patrón acción\n"
727
728 #. type: Plain text
729 #: original/man1/flex.1:301
730 msgid ""
731 "where the pattern must be unindented and the action must begin on the same "
732 "line."
733 msgstr ""
734 "donde el patrón debe estar sin sangrar y la acción debe comenzar en la misma "
735 "línea."
736
737 #. type: Plain text
738 #: original/man1/flex.1:303
739 msgid "See below for a further description of patterns and actions."
740 msgstr ""
741 "Ver más abajo para una descripción más amplia sobre patrones y acciones."
742
743 #. type: Plain text
744 #: original/man1/flex.1:312
745 msgid ""
746 "Finally, the user code section is simply copied to B<lex.yy.c> verbatim. It "
747 "is used for companion routines which call or are called by the scanner. The "
748 "presence of this section is optional; if it is missing, the second B<%%> in "
749 "the input file may be skipped, too."
750 msgstr ""
751 "Finalmente, la sección de código de usuario simplemente se copia a B<lex.yy."
752 "c> literalmente. Esta sección se utiliza para rutinas de complemento que "
753 "llaman al escáner o son llamadas por este. La presencia de esta sección es "
754 "opcional; Si se omite, el segundo B<%%> en el fichero de entrada se podría "
755 "omitir también."
756
757 #. type: Plain text
758 #: original/man1/flex.1:321
759 msgid ""
760 "In the definitions and rules sections, any I<indented> text or text enclosed "
761 "in B<%{> and B<%}> is copied verbatim to the output (with the %{}'s "
762 "removed). The %{}'s must appear unindented on lines by themselves."
763 msgstr ""
764 "En las secciones de definiciones y reglas, cualquier texto I<sangrado> o "
765 "encerrado entre B<%{> y B<%}> se copia íntegramente a la salida (sin los "
766 "%{}'s). Los %{}'s deben aparecer sin sangrar en líneas ocupadas únicamente "
767 "por estos."
768
769 #. type: Plain text
770 #: original/man1/flex.1:332
771 msgid ""
772 "In the rules section, any indented or %{} text appearing before the first "
773 "rule may be used to declare variables which are local to the scanning routine "
774 "and (after the declarations) code which is to be executed whenever the "
775 "scanning routine is entered. Other indented or %{} text in the rule section "
776 "is still copied to the output, but its meaning is not well-defined and it may "
777 "well cause compile-time errors (this feature is present for I<POSIX> "
778 "compliance; see below for other such features)."
779 msgstr ""
780 "En la sección de reglas, cualquier texto o %{} sangrado que aparezca antes de "
781 "la primera regla podría utilizarse para declarar variables que son locales a "
782 "la rutina de análisis y (después de las declaraciones) al código que debe "
783 "ejecutarse siempre que se entra a la rutina de análisis. Cualquier otro "
784 "texto sangrado o %{} en la sección de reglas sigue copiándose a la salida, "
785 "pero su significado no está bien definido y bien podría causar errores en "
786 "tiempo de compilación (esta propiedad se presenta para conformidad con "
787 "I<POSIX> ; ver más abajo para otras características similares)."
788
789 #. type: Plain text
790 #: original/man1/flex.1:337
791 msgid ""
792 "In the definitions section (but not in the rules section), an unindented "
793 "comment (i.e., a line beginning with \"/*\") is also copied verbatim to the "
794 "output up to the next \"*/\"."
795 msgstr ""
796 "En la sección de definiciones (pero no en la sección de reglas), un "
797 "comentario sin sangría (es decir, una línea comenzando con \"/*\") también "
798 "se copia literalmente a la salida hasta el próximo \"*/\"."
799
800 #. type: SH
801 #: original/man1/flex.1:337
802 #, no-wrap
803 msgid "PATTERNS"
804 msgstr "PATRONES"
805
806 #. type: Plain text
807 #: original/man1/flex.1:340
808 msgid ""
809 "The patterns in the input are written using an extended set of regular "
810 "expressions. These are:"
811 msgstr ""
812 "Los patrones en la entrada se escriben utilizando un conjunto extendido de "
813 "expresiones regulares. Estas son:"
814
815 #. type: Plain text
816 #: original/man1/flex.1:373
817 #, no-wrap
818 msgid ""
819 " x match the character 'x'\n"
820 " . any character (byte) except newline\n"
821 " [xyz] a \"character class\"; in this case, the pattern\n"
822 " matches either an 'x', a 'y', or a 'z'\n"
823 " [abj-oZ] a \"character class\" with a range in it; matches\n"
824 " an 'a', a 'b', any letter from 'j' through 'o',\n"
825 " or a 'Z'\n"
826 " [^A-Z] a \"negated character class\", i.e., any character\n"
827 " but those in the class. In this case, any\n"
828 " character EXCEPT an uppercase letter.\n"
829 " [^A-Z\\en] any character EXCEPT an uppercase letter or\n"
830 " a newline\n"
831 " r* zero or more r's, where r is any regular expression\n"
832 " r+ one or more r's\n"
833 " r? zero or one r's (that is, \"an optional r\")\n"
834 " r{2,5} anywhere from two to five r's\n"
835 " r{2,} two or more r's\n"
836 " r{4} exactly 4 r's\n"
837 " {name} the expansion of the \"name\" definition\n"
838 " (see above)\n"
839 " \"[xyz]\\e\"foo\"\n"
840 " the literal string: [xyz]\"foo\n"
841 " \\eX if X is an 'a', 'b', 'f', 'n', 'r', 't', or 'v',\n"
842 " then the ANSI-C interpretation of \\ex.\n"
843 " Otherwise, a literal 'X' (used to escape\n"
844 " operators such as '*')\n"
845 " \\e0 a NUL character (ASCII code 0)\n"
846 " \\e123 the character with octal value 123\n"
847 " \\ex2a the character with hexadecimal value 2a\n"
848 " (r) match an r; parentheses are used to override\n"
849 " precedence (see below)\n"
850 msgstr ""
851 " x empareja el caracter 'x'\n"
852 " . cualquier caracter (byte) excepto una línea nueva\n"
853 " [xyz] una \"clase de caracteres\"; en este caso, el patrón\n"
854 " empareja una 'x', una 'y', o una 'z'\n"
855 " [abj-oZ] una \"clase de caracteres\" con un rango; empareja\n"
856 " una 'a', una 'b', cualquier letra desde la 'j'\n"
857 " hasta la 'o', o una 'Z'\n"
858 " [^A-Z] una \"clase de caracteres negada\", es decir, cualquier\n"
859 " caracter menos los que aparecen en la clase. En \n"
860 " este caso, cualquier caracter EXCEPTO una letra\n"
861 " mayúscula.\n"
862 " [^A-Z\\en] cualquier caracter EXCEPTO una letra mayúscula o\n"
863 " una línea nueva\n"
864 " r* cero o más r's, donde r es cualquier expresión regular\n"
865 " r+ una o más r's\n"
866 " r? cero o una r (es decir, \"una r opcional\")\n"
867 " r{2,5} donde sea de dos a cinco r's\n"
868 " r{2,} dos o más r's\n"
869 " r{4} exactamente 4 r's\n"
870 " {nombre} la expansión de la definición de \"nombre\"\n"
871 " (ver más abajo)\n"
872 " \"[xyz]\\e\"foo\"\n"
873 " la cadena literal: [xyz]\"foo\n"
874 " \\eX si X es una 'a', 'b', 'f', 'n', 'r', 't', o 'v',\n"
875 " entonces la interpretación ANSI-C de \\ex.\n"
876 " En otro caso, un literal 'X' (usado para\n"
877 " indicar operadores tales como '*')\n"
878 " \\e0 un caracter NUL (código ASCII 0)\n"
879 " \\e123 el caracter con valor octal 123\n"
880 " \\ex2a el caracter con valor hexadecimal 2a\n"
881 " (r) empareja una r; los paréntesis se utilizan para\n"
882 " anular la precedencia (ver más abajo)\n"
883
884 #. type: Plain text
885 #: original/man1/flex.1:377
886 #, no-wrap
887 msgid ""
888 " rs the regular expression r followed by the\n"
889 " regular expression s; called \"concatenation\"\n"
890 msgstr ""
891 " rs la expresión regular r seguida por la expresión\n"
892 " regular s; se denomina \"concatenación\"\n"
893
894 #. type: Plain text
895 #: original/man1/flex.1:380
896 #, no-wrap
897 msgid " r|s either an r or an s\n"
898 msgstr " r|s bien una r o una s\n"
899
900 #. type: Plain text
901 #: original/man1/flex.1:398
902 #, no-wrap
903 msgid ""
904 " r/s an r but only if it is followed by an s. The\n"
905 " text matched by s is included when determining\n"
906 " whether this rule is the \"longest match\",\n"
907 " but is then returned to the input before\n"
908 " the action is executed. So the action only\n"
909 " sees the text matched by r. This type\n"
910 " of pattern is called trailing context\".\n"
911 " (There are some combinations of r/s that flex\n"
912 " cannot match correctly; see notes in the\n"
913 " Deficiencies / Bugs section below regarding\n"
914 " \"dangerous trailing context\".)\n"
915 " ^r an r, but only at the beginning of a line (i.e.,\n"
916 " which just starting to scan, or right after a\n"
917 " newline has been scanned).\n"
918 " r$ an r, but only at the end of a line (i.e., just\n"
919 " before a newline). Equivalent to \"r/\\en\".\n"
920 msgstr ""
921 " r/s una r pero sólo si va seguida por una s. El\n"
922 " texto emparejado por s se incluye cuando se\n"
923 " determina si esta regla es el \"emparejamiento\n"
924 " más largo\", pero se devuelve entonces a la\n"
925 " entrada antes que se ejecute la acción. Así\n"
926 " que la acción sólo ve el texto emparejado\n"
927 " por r. Este tipo de patrones se llama\n"
928 " \"de contexto posterior\".\n"
929 " (Hay algunas combinaciones de r/s que flex\n"
930 " no puede emparejar correctamente; vea las notas\n"
931 " en la sección Deficiencias / Errores más abajo\n"
932 " respecto al \"contexto posterior peligroso\".)\n"
933 " ^r una r, pero sólo al comienzo de una línea (es\n"
934 " decir, justo al comienzo del análisis, o a la\n"
935 " derecha después de que se haya analizado una\n"
936 " línea nueva).\n"
937 " r$ una r, pero sólo al final de una línea (es decir,\n"
938 " justo antes de una línea nueva). Equivalente\n"
939 " a \"r/\\en\".\n"
940
941 #. type: Plain text
942 #: original/man1/flex.1:404
943 #, no-wrap
944 msgid ""
945 " Note that flex's notion of \"newline\" is exactly\n"
946 " whatever the C compiler used to compile flex\n"
947 " interprets '\\en' as; in particular, on some DOS\n"
948 " systems you must either filter out \\er's in the\n"
949 " input yourself, or explicitly use r/\\er\\en for \"r$\".\n"
950 msgstr ""
951 " Fíjese que la noción de flex de una \"línea nueva\"\n"
952 " es exáctamente lo que el compilador de C utilizado\n"
953 " para compilar flex interprete como '\\en'; en\n"
954 " particular, en algunos sistemas DOS debe filtrar\n"
955 " los \\er's de la entrada used mismo, o explícitamente\n"
956 " usar r/\\er\\en para \"r$\".\n"
957
958 #. type: Plain text
959 #: original/man1/flex.1:412
960 #, no-wrap
961 msgid ""
962 " E<lt>sE<gt>r an r, but only in start condition s (see\n"
963 " below for discussion of start conditions)\n"
964 " E<lt>s1,s2,s3E<gt>r\n"
965 " same, but in any of start conditions s1,\n"
966 " s2, or s3\n"
967 " E<lt>*E<gt>r an r in any start condition, even an exclusive one.\n"
968 msgstr ""
969 " E<lt>sE<gt>r una r, pero sólo en la condición de arranque s\n"
970 " (ver más abajo para una discusión sobre las\n"
971 " condiciones de arranque)\n"
972 " E<lt>s1,s2,s3E<gt>r\n"
973 " lo mismo, pero en cualquiera de las condiciones\n"
974 " de arranque s1, s2, o s3\n"
975 " E<lt>*E<gt>r una r en cualquier condición de arranque, incluso\n"
976 " una exclusiva.\n"
977
978 #. type: Plain text
979 #: original/man1/flex.1:417
980 #, no-wrap
981 msgid ""
982 " E<lt>E<lt>EOFE<gt>E<gt> an end-of-file\n"
983 " E<lt>s1,s2E<gt>E<lt>E<lt>EOFE<gt>E<gt>\n"
984 " an end-of-file when in start condition s1 or s2\n"
985 msgstr ""
986 " E<lt>E<lt>EOFE<gt>E<gt> un fin-de-fichero\n"
987 " E<lt>s1,s2E<gt>E<lt>E<lt>EOFE<gt>E<gt>\n"
988 " un fin-de-fichero en una condición de arranque s1 o s2\n"
989
990 #. type: Plain text
991 #: original/man1/flex.1:422
992 msgid ""
993 "Note that inside of a character class, all regular expression operators lose "
994 "their special meaning except escape ('\\e') and the character class "
995 "operators, '-', ']', and, at the beginning of the class, '^'."
996 msgstr ""
997 "Fíjese que dentro de una clase de caracteres, todos los operadores de "
998 "expresiones regulares pierden su significado especial excepto el caracter de "
999 "escape ('\\e') y los operadores de clase de caracteres, '-',"
1000
1001 #. type: Plain text
1002 #: original/man1/flex.1:426
1003 msgid ""
1004 "The regular expressions listed above are grouped according to precedence, "
1005 "from highest precedence at the top to lowest at the bottom. Those grouped "
1006 "together have equal precedence. For example,"
1007 msgstr ""
1008 "Las expresiones regulares en el listado anterior están agrupadas de acuerdo a "
1009 "la precedencia, desde la precedencia más alta en la cabeza a la más baja al "
1010 "final. Aquellas agrupadas conjuntamente tienen la misma precedencia. Por "
1011 "ejemplo,"
1012
1013 #. type: Plain text
1014 #: original/man1/flex.1:429
1015 #, no-wrap
1016 msgid " foo|bar*\n"
1017 msgstr " foo|bar*\n"
1018
1019 #. type: Plain text
1020 #: original/man1/flex.1:432
1021 msgid "is the same as"
1022 msgstr "es lo mismo que"
1023
1024 #. type: Plain text
1025 #: original/man1/flex.1:435
1026 #, no-wrap
1027 msgid " (foo)|(ba(r*))\n"
1028 msgstr " (foo)|(ba(r*))\n"
1029
1030 #. type: Plain text
1031 #: original/man1/flex.1:445
1032 msgid ""
1033 "since the '*' operator has higher precedence than concatenation, and "
1034 "concatenation higher than alternation ('|'). This pattern therefore matches "
1035 "I<either> the string \"foo\" I<or> the string \"ba\" followed by zero-or-more "
1036 "r's. To match \"foo\" or zero-or-more \"bar\"'s, use:"
1037 msgstr ""
1038 "ya que el operador '*' tiene mayor precedencia que la concatenación, y la "
1039 "concatenación más alta que el operador '|'. Este patrón por lo tanto "
1040 "empareja I<bien> la cadena \"foo\" I<o> la cadena \"ba\" seguida de cero o "
1041 "más r's. Para emparejar \"foo\" o, cero o más \"bar\"'s, use:"
1042
1043 #. type: Plain text
1044 #: original/man1/flex.1:448
1045 #, no-wrap
1046 msgid " foo|(bar)*\n"
1047 msgstr " foo|(bar)*\n"
1048
1049 #. type: Plain text
1050 #: original/man1/flex.1:451
1051 msgid "and to match zero-or-more \"foo\"'s-or-\"bar\"'s:"
1052 msgstr "y para emparejar cero o más \"foo\"'s o \"bar\"'s:"
1053
1054 #. type: Plain text
1055 #: original/man1/flex.1:454
1056 #, no-wrap
1057 msgid " (foo|bar)*\n"
1058 msgstr " (foo|bar)*\n"
1059
1060 #. type: Plain text
1061 #: original/man1/flex.1:467
1062 msgid ""
1063 "In addition to characters and ranges of characters, character classes can "
1064 "also contain character class I<expressions.> These are expressions enclosed "
1065 "inside B<[:> and B<:]> delimiters (which themselves must appear between the "
1066 "'[' and ']' of the character class; other elements may occur inside the "
1067 "character class, too). The valid expressions are:"
1068 msgstr ""
1069 "Además de caracteres y rangos de caracteres, las clases de caracteres pueden "
1070 "también contener I<expresiones> de clases de caracteres. Son expresiones "
1071 "encerradas entre los delimitadores B<[:> y B<:]> (que también deben aparecer "
1072 "entre el '[' y el ']' de la clase de caracteres; además pueden darse otros "
1073 "elementos dentro de la clase de caracteres). Las expresiones válidas son:"
1074
1075 #. type: Plain text
1076 #: original/man1/flex.1:473
1077 #, no-wrap
1078 msgid ""
1079 " [:alnum:] [:alpha:] [:blank:]\n"
1080 " [:cntrl:] [:digit:] [:graph:]\n"
1081 " [:lower:] [:print:] [:punct:]\n"
1082 " [:space:] [:upper:] [:xdigit:]\n"
1083 msgstr ""
1084 " [:alnum:] [:alpha:] [:blank:]\n"
1085 " [:cntrl:] [:digit:] [:graph:]\n"
1086 " [:lower:] [:print:] [:punct:]\n"
1087 " [:space:] [:upper:] [:xdigit:]\n"
1088
1089 #. type: Plain text
1090 #: original/man1/flex.1:488
1091 msgid ""
1092 "These expressions all designate a set of characters equivalent to the "
1093 "corresponding standard C B<isXXX> function. For example, B<[:alnum:]> "
1094 "designates those characters for which B<isalnum()> returns true - i.e., any "
1095 "alphabetic or numeric. Some systems don't provide B<isblank(),> so flex "
1096 "defines B<[:blank:]> as a blank or a tab."
1097 msgstr ""
1098 "Todas estas expresiones designan un conjunto de caracteres equivalentes a la "
1099 "correspondiente función estándar B<isXXX> de C. Por ejemplo, B<[:alnum:]> "
1100 "designa aquellos caracteres para los cuales B<isalnum()> devuelve verdadero - "
1101 "esto es, cualquier caracter alfabético o numérico. Algunos sistemas no "
1102 "ofrecen B<isblank(),> así que flex define B<[:blank:]> como un espacio en "
1103 "blanco o un tabulador."
1104
1105 #. type: Plain text
1106 #: original/man1/flex.1:490
1107 msgid "For example, the following character classes are all equivalent:"
1108 msgstr ""
1109 "Por ejemplo, las siguientes clases de caracteres son todas equivalentes:"
1110
1111 #. type: Plain text
1112 #: original/man1/flex.1:496
1113 #, no-wrap
1114 msgid ""
1115 " [[:alnum:]]\n"
1116 " [[:alpha:][:digit:]\n"
1117 " [[:alpha:]0-9]\n"
1118 " [a-zA-Z0-9]\n"
1119 msgstr ""
1120 " [[:alnum:]]\n"
1121 " [[:alpha:][:digit:]\n"
1122 " [[:alpha:]0-9]\n"
1123 " [a-zA-Z0-9]\n"
1124
1125 #. type: Plain text
1126 #: original/man1/flex.1:506
1127 msgid ""
1128 "If your scanner is case-insensitive (the B<-i> flag), then B<[:upper:]> and "
1129 "B<[:lower:]> are equivalent to B<[:alpha:].>"
1130 msgstr ""
1131 "Si su escáner ignora la distinción entre mayúsculas y minúsculas (la bandera "
1132 "B<-i> ), entonces B<[:upper:]> y B<[:lower:]> son equivalentes a B<[:alpha:].>"
1133
1134 #. type: Plain text
1135 #: original/man1/flex.1:508
1136 msgid "Some notes on patterns:"
1137 msgstr "Algunas notas sobre los patrones:"
1138
1139 #. type: IP
1140 #: original/man1/flex.1:508 original/man1/flex.1:519 original/man1/flex.1:744
1141 #: original/man1/flex.1:747 original/man1/flex.1:751 original/man1/flex.1:817
1142 #: original/man1/flex.1:856 original/man1/flex.1:889 original/man1/flex.1:937
1143 #: original/man1/flex.1:980 original/man1/flex.1:990 original/man1/flex.1:1797
1144 #: original/man1/flex.1:1804 original/man1/flex.1:1808 original/man1/flex.1:1812
1145 #: original/man1/flex.1:1942 original/man1/flex.1:1978 original/man1/flex.1:1981
1146 #: original/man1/flex.1:1996 original/man1/flex.1:2007 original/man1/flex.1:2012
1147 #: original/man1/flex.1:2017 original/man1/flex.1:3507 original/man1/flex.1:3524
1148 #: original/man1/flex.1:3549 original/man1/flex.1:3553 original/man1/flex.1:3579
1149 #: original/man1/flex.1:3591 original/man1/flex.1:3595 original/man1/flex.1:3638
1150 #: original/man1/flex.1:3652 original/man1/flex.1:3658 original/man1/flex.1:3670
1151 #: original/man1/flex.1:3681 original/man1/flex.1:3691 original/man1/flex.1:3701
1152 #, no-wrap
1153 msgid "-"
1154 msgstr "-"
1155
1156 #. type: Plain text
1157 #: original/man1/flex.1:519
1158 msgid ""
1159 "A negated character class such as the example \"[^A-Z]\" above I<will match a "
1160 "newline> unless \"\\en\" (or an equivalent escape sequence) is one of the "
1161 "characters explicitly present in the negated character class (e.g., \"[^A-Z"
1162 "\\en]\"). This is unlike how many other regular expression tools treat "
1163 "negated character classes, but unfortunately the inconsistency is "
1164 "historically entrenched. Matching newlines means that a pattern like [^\"]* "
1165 "can match the entire input unless there's another quote in the input."
1166 msgstr ""
1167 "Una clase de caracteres negada tal como el ejemplo \"[^A-Z]\" anterior "
1168 "I<emparejará una línea nueva> a menos que \"\\en\" (o una secuencia de escape "
1169 "equivalente) sea uno de los caracteres presentes explícitamente en la clase "
1170 "de caracteres negada (p.ej., \"[^A-Z\\en]\"). Esto es diferente a cómo "
1171 "muchas de las otras herramientas de expresiones regulares tratan las clases "
1172 "de caracteres negadas, pero desafortunadamente la inconsistencia está "
1173 "fervientemente enrraizada históricamente. Emparejar líneas nuevas significa "
1174 "que un patrón como [^\"]* puede emparejar la entrada completa a menos que "
1175 "haya otra comilla en la entrada."
1176
1177 #. type: Plain text
1178 #: original/man1/flex.1:526
1179 msgid ""
1180 "A rule can have at most one instance of trailing context (the '/' operator or "
1181 "the '$' operator). The start condition, '^', and \"E<lt>E<lt>EOFE<gt>E<gt>\" "
1182 "patterns can only occur at the beginning of a pattern, and, as well as with "
1183 "'/' and '$', cannot be grouped inside parentheses. A '^' which does not "
1184 "occur at the beginning of a rule or a '$' which does not occur at the end of "
1185 "a rule loses its special properties and is treated as a normal character."
1186 msgstr ""
1187 "Una regla puede tener lo más una instancia del contexto posterior (el "
1188 "operador '/' o el operador '$'). La condición de arranque, los patrones '^', "
1189 "y \"E<lt>E<lt>EOFE<gt>E<gt>\" pueden aparecer solamente al principio de un "
1190 "patrón, y, al igual que con '/' y '$', no pueden agruparse dentro de "
1191 "paréntesis. Un '^' que no aparezca al principio de una regla o un '$' que no "
1192 "aparezca al final de una regla pierde sus propiedades especiales y es tratado "
1193 "como un caracter normal."
1194
1195 #. type: Plain text
1196 #: original/man1/flex.1:528
1197 msgid "The following are illegal:"
1198 msgstr "Lo siguiente no está permitido:"
1199
1200 #. type: Plain text
1201 #: original/man1/flex.1:532
1202 #, no-wrap
1203 msgid ""
1204 " foo/bar$\n"
1205 " E<lt>sc1E<gt>fooE<lt>sc2E<gt>bar\n"
1206 msgstr ""
1207 " foo/bar$\n"
1208 " E<lt>sc1E<gt>fooE<lt>sc2E<gt>bar\n"
1209
1210 #. type: Plain text
1211 #: original/man1/flex.1:535
1212 msgid "Note that the first of these, can be written \"foo/bar\\en\"."
1213 msgstr "Fíjese que la primera regla se puede escribir como \"foo/bar\\en\"."
1214
1215 #. type: Plain text
1216 #: original/man1/flex.1:537
1217 msgid ""
1218 "The following will result in '$' or '^' being treated as a normal character:"
1219 msgstr ""
1220 "En el siguiente ejemplo un '$' o un '^' es tratado como un caracter normal:"
1221
1222 #. type: Plain text
1223 #: original/man1/flex.1:541
1224 #, no-wrap
1225 msgid ""
1226 " foo|(bar$)\n"
1227 " foo|^bar\n"
1228 msgstr ""
1229 " foo|(bar$)\n"
1230 " foo|^bar\n"
1231
1232 #. type: Plain text
1233 #: original/man1/flex.1:545
1234 msgid ""
1235 "If what's wanted is a \"foo\" or a bar-followed-by-a-newline, the following "
1236 "could be used (the special '|' action is explained below):"
1237 msgstr ""
1238 "Si lo que se desea es un \"foo\" o un \"bar\" seguido de una línea nueva, "
1239 "puede usarse lo siguiente (la acción especial '|' se explica más abajo):"
1240
1241 #. type: Plain text
1242 #: original/man1/flex.1:549
1243 #, no-wrap
1244 msgid ""
1245 " foo |\n"
1246 " bar$ /* action goes here */\n"
1247 msgstr ""
1248 " foo |\n"
1249 " bar$ /* la acción va aquí */\n"
1250
1251 #. type: Plain text
1252 #: original/man1/flex.1:553
1253 msgid ""
1254 "A similar trick will work for matching a foo or a bar-at-the-beginning-of-a-"
1255 "line."
1256 msgstr ""
1257 "Un truco parecido funcionará para emparejar un \"foo\" o, un \"bar\" al "
1258 "principio de una línea."
1259
1260 #. type: SH
1261 #: original/man1/flex.1:553
1262 #, no-wrap
1263 msgid "HOW THE INPUT IS MATCHED"
1264 msgstr "CÓMO SE EMPAREJA LA ENTRADA"
1265
1266 #. type: Plain text
1267 #: original/man1/flex.1:563
1268 msgid ""
1269 "When the generated scanner is run, it analyzes its input looking for strings "
1270 "which match any of its patterns. If it finds more than one match, it takes "
1271 "the one matching the most text (for trailing context rules, this includes the "
1272 "length of the trailing part, even though it will then be returned to the "
1273 "input). If it finds two or more matches of the same length, the rule listed "
1274 "first in the I<flex> input file is chosen."
1275 msgstr ""
1276 "Cuando el escáner generado está funcionando, este analiza su entrada buscando "
1277 "cadenas que concuerden con cualquiera de sus patrones. Si encuentra más de "
1278 "un emparejamiento, toma el que empareje más texto (para reglas de contexto "
1279 "posterior, se incluye la longitud de la parte posterior, incluso si se "
1280 "devuelve a la entrada). Si encuentra dos o más emparejamientos de la misma "
1281 "longitud, se escoge la regla listada en primer lugar en el fichero de entrada "
1282 "de I<flex>."
1283
1284 #. type: Plain text
1285 #: original/man1/flex.1:576
1286 msgid ""
1287 "Once the match is determined, the text corresponding to the match (called the "
1288 "I<token)> is made available in the global character pointer B<yytext,> and "
1289 "its length in the global integer B<yyleng.> The I<action> corresponding to "
1290 "the matched pattern is then executed (a more detailed description of actions "
1291 "follows), and then the remaining input is scanned for another match."
1292 msgstr ""
1293 "Una vez que se determina el emparejamiento, el texto correspondiente al "
1294 "emparejamiento (denominado el I<token)> está disponible en el puntero a "
1295 "caracter global B<yytext,> y su longitud en la variable global entera "
1296 "B<yyleng.> Entonces la I<acción> correspondiente al patrón emparejado se "
1297 "ejecuta (una descripción más detallada de las acciones viene a continuación), "
1298 "y entonces la entrada restante se analiza para otro emparejamiento."
1299
1300 #. type: Plain text
1301 #: original/man1/flex.1:583
1302 msgid ""
1303 "If no match is found, then the I<default rule> is executed: the next "
1304 "character in the input is considered matched and copied to the standard "
1305 "output. Thus, the simplest legal I<flex> input is:"
1306 msgstr ""
1307 "Si no se encuentra un emparejamiento, entonces se ejecuta la I<regla por "
1308 "defecto>: el siguiente caracter en la entrada se considera reconocido y se "
1309 "copia a la salida estándar. Así, la entrada válida más simple de I<flex> es:"
1310
1311 #. type: Plain text
1312 #: original/man1/flex.1:590
1313 msgid ""
1314 "which generates a scanner that simply copies its input (one character at a "
1315 "time) to its output."
1316 msgstr ""
1317 "que genera un escáner que simplemente copia su entrada (un caracter a la vez) "
1318 "a la salida."
1319
1320 #. type: Plain text
1321 #: original/man1/flex.1:623
1322 msgid ""
1323 "Note that B<yytext> can be defined in two different ways: either as a "
1324 "character I<pointer> or as a character I<array.> You can control which "
1325 "definition I<flex> uses by including one of the special directives B<"
1326 "%pointer> or B<%array> in the first (definitions) section of your flex "
1327 "input. The default is B<%pointer,> unless you use the B<-l> lex "
1328 "compatibility option, in which case B<yytext> will be an array. The "
1329 "advantage of using B<%pointer> is substantially faster scanning and no buffer "
1330 "overflow when matching very large tokens (unless you run out of dynamic "
1331 "memory). The disadvantage is that you are restricted in how your actions can "
1332 "modify B<yytext> (see the next section), and calls to the B<unput()> function "
1333 "destroys the present contents of B<yytext,> which can be a considerable "
1334 "porting headache when moving between different I<lex> versions."
1335 msgstr ""
1336 "Fíjese que B<yytext> se puede definir de dos maneras diferentes: bien como un "
1337 "I<puntero> a caracter o como un I<array> de caracteres. Usted puede "
1338 "controlar la definición que usa I<flex> incluyendo una de las directivas "
1339 "especiales B<%pointer> o B<%array> en la primera sección (definiciones) de su "
1340 "entrada de flex. Por defecto es B<%pointer,> a menos que use la opción de "
1341 "compatibilidad B<-l>, en cuyo caso B<yytext> será un array. La ventaja de "
1342 "usar B<%pointer> es un análisis substancialmente más rápido y la ausencia de "
1343 "desbordamiento del buffer cuando se emparejen tokens muy grandes (a menos que "
1344 "se agote la memoria dinámica). La desventaja es que se encuentra restringido "
1345 "en cómo sus acciones pueden modificar B<yytext> (vea la siguiente sección), y "
1346 "las llamadas a la función B<unput()> destruyen el contenido actual de "
1347 "B<yytext>, que puede convertirse en un considerable quebradero de cabeza de "
1348 "portabilidad al cambiar entre diferentes versiones de I<lex>."
1349
1350 #. type: Plain text
1351 #: original/man1/flex.1:637
1352 msgid ""
1353 "The advantage of B<%array> is that you can then modify B<yytext> to your "
1354 "heart's content, and calls to B<unput()> do not destroy B<yytext> (see "
1355 "below). Furthermore, existing I<lex> programs sometimes access B<yytext> "
1356 "externally using declarations of the form:"
1357 msgstr ""
1358 "La ventaja de B<%array> es que entoces puede modificar B<yytext> todo lo que "
1359 "usted quiera, las llamadas a B<unput()> no destruyen B<yytext> (ver más "
1360 "abajo). Además, los programas de I<lex> existentes a veces acceden a "
1361 "B<yytext> externamente utilizando declaraciones de la forma:"
1362
1363 #. type: Plain text
1364 #: original/man1/flex.1:639
1365 #, no-wrap
1366 msgid " extern char yytext[];\n"
1367 msgstr " extern char yytext[];\n"
1368
1369 #. type: Plain text
1370 #: original/man1/flex.1:644
1371 msgid ""
1372 "This definition is erroneous when used with B<%pointer,> but correct for B<"
1373 "%array.>"
1374 msgstr ""
1375 "Esta definición es errónea cuando se utiliza B<%pointer,> pero correcta para "
1376 "B<%array.>"
1377
1378 #. type: Plain text
1379 #: original/man1/flex.1:670
1380 msgid ""
1381 "B<%array> defines B<yytext> to be an array of B<YYLMAX> characters, which "
1382 "defaults to a fairly large value. You can change the size by simply "
1383 "#define'ing B<YYLMAX> to a different value in the first section of your "
1384 "I<flex> input. As mentioned above, with B<%pointer> yytext grows dynamically "
1385 "to accommodate large tokens. While this means your B<%pointer> scanner can "
1386 "accommodate very large tokens (such as matching entire blocks of comments), "
1387 "bear in mind that each time the scanner must resize B<yytext> it also must "
1388 "rescan the entire token from the beginning, so matching such tokens can prove "
1389 "slow. B<yytext> presently does I<not> dynamically grow if a call to "
1390 "B<unput()> results in too much text being pushed back; instead, a run-time "
1391 "error results."
1392 msgstr ""
1393 "B<%array> define a B<yytext> como un array de B<YYLMAX> caracteres, que por "
1394 "defecto es un valor bastante grande. Usted puede cambiar el tamaño "
1395 "símplemente definiendo con #define a B<YYLMAX> con un valor diferente en la "
1396 "primera sección de su entrada de I<flex.> Como se mencionó antes, con B<"
1397 "%pointer> yytext crece dinámicamente para acomodar tokens grandes. Aunque "
1398 "esto signifique que con B<%pointer> su escáner puede acomodar tokens muy "
1399 "grandes (tales como emparejar bloques enteros de comentarios), tenga presente "
1400 "que cada vez que el escáner deba cambiar el tamaño de B<yytext> también debe "
1401 "reiniciar el análisis del token entero desde el principio, así que emparejar "
1402 "tales tokens puede resultar lento. Ahora B<yytext> I<no> crece dinámicamente "
1403 "si una llamada a B<unput()> hace que se deba devolver demasiado texto; en su "
1404 "lugar, se produce un error en tiempo de ejecución."
1405
1406 #. type: Plain text
1407 #: original/man1/flex.1:677
1408 msgid ""
1409 "Also note that you cannot use B<%array> with C++ scanner classes (the B<c++> "
1410 "option; see below)."
1411 msgstr ""
1412 "También tenga en cuenta que no puede usar B<%array> en los analizadores "
1413 "generados como clases de C++ (la opción B<c++>; vea más abajo)."
1414
1415 #. type: SH
1416 #: original/man1/flex.1:677
1417 #, no-wrap
1418 msgid "ACTIONS"
1419 msgstr "ACCIONES"
1420
1421 #. type: Plain text
1422 #: original/man1/flex.1:684
1423 msgid ""
1424 "Each pattern in a rule has a corresponding action, which can be any arbitrary "
1425 "C statement. The pattern ends at the first non-escaped whitespace character; "
1426 "the remainder of the line is its action. If the action is empty, then when "
1427 "the pattern is matched the input token is simply discarded. For example, "
1428 "here is the specification for a program which deletes all occurrences of "
1429 "\"zap me\" from its input:"
1430 msgstr ""
1431 "Cada patrón en una regla tiene una acción asociada, que puede ser cualquier "
1432 "sentencia en C. El patrón finaliza en el primer caracter de espacio en "
1433 "blanco que no sea una secuencia de escape; lo que queda de la línea es su "
1434 "acción. Si la acción está vacía, entonces cuando el patrón se empareje el "
1435 "token de entrada simplemente se descarta. Por ejemplo, aquí está la "
1436 "especificación de un programa que borra todas las apariciones de \"zap me\" "
1437 "en su entrada:"
1438
1439 #. type: Plain text
1440 #: original/man1/flex.1:688
1441 #, no-wrap
1442 msgid ""
1443 " %%\n"
1444 " \"zap me\"\n"
1445 msgstr ""
1446 " %%\n"
1447 " \"zap me\"\n"
1448
1449 #. type: Plain text
1450 #: original/man1/flex.1:692
1451 msgid ""
1452 "(It will copy all other characters in the input to the output since they will "
1453 "be matched by the default rule.)"
1454 msgstr ""
1455 "(Este copiará el resto de caracteres de la entrada a la salida ya que serán "
1456 "emparejados por la regla por defecto.)"
1457
1458 #. type: Plain text
1459 #: original/man1/flex.1:695
1460 msgid ""
1461 "Here is a program which compresses multiple blanks and tabs down to a single "
1462 "blank, and throws away whitespace found at the end of a line:"
1463 msgstr ""
1464 "Aquí hay un programa que comprime varios espacios en blanco y tabuladores a "
1465 "un solo espacio en blanco, y desecha los espacios que se encuentren al final "
1466 "de una línea:"
1467
1468 #. type: Plain text
1469 #: original/man1/flex.1:700
1470 #, no-wrap
1471 msgid ""
1472 " %%\n"
1473 " [ \\et]+ putchar( ' ' );\n"
1474 " [ \\et]+$ /* ignore this token */\n"
1475 msgstr ""
1476 " %%\n"
1477 " [ \\et]+ putchar( ' ' );\n"
1478 " [ \\et]+$ /* ignora este token */\n"
1479
1480 #. type: Plain text
1481 #: original/man1/flex.1:712
1482 msgid ""
1483 "If the action contains a '{', then the action spans till the balancing '}' is "
1484 "found, and the action may cross multiple lines. I<flex> knows about C "
1485 "strings and comments and won't be fooled by braces found within them, but "
1486 "also allows actions to begin with B<%{> and will consider the action to be "
1487 "all the text up to the next B<%}> (regardless of ordinary braces inside the "
1488 "action)."
1489 msgstr ""
1490 "Si la acción contiene un '{', entonces la acción abarca hasta que se "
1491 "encuentre el correspondiente '}', y la acción podría entonces cruzar varias "
1492 "líneas. I<flex> es capaz de reconocer las cadenas y comentarios de C y no se "
1493 "dejará engañar por las llaves que encuentre dentro de estos, pero aun así "
1494 "también permite que las acciones comiencen con B<%{> y considerará que la "
1495 "acción es todo el texto hasta el siguiente B<%}> (sin tener en cuenta las "
1496 "llaves ordinarias dentro de la acción)."
1497
1498 #. type: Plain text
1499 #: original/man1/flex.1:715
1500 msgid ""
1501 "An action consisting solely of a vertical bar ('|') means \"same as the "
1502 "action for the next rule.\" See below for an illustration."
1503 msgstr ""
1504 "Una acción que consista sólamente de una barra vertical ('|') significa \"lo "
1505 "mismo que la acción para la siguiente regla.\" Vea más abajo para una "
1506 "ilustración."
1507
1508 #. type: Plain text
1509 #: original/man1/flex.1:725
1510 msgid ""
1511 "Actions can include arbitrary C code, including B<return> statements to "
1512 "return a value to whatever routine called B<yylex().> Each time B<yylex()> is "
1513 "called it continues processing tokens from where it last left off until it "
1514 "either reaches the end of the file or executes a return."
1515 msgstr ""
1516 "Las acciones pueden incluir código C arbitrario, incuyendo sentencias "
1517 "B<return> para devolver un valor desde cualquier rutina llamada B<yylex().> "
1518 "Cada vez que se llama a B<yylex()> esta continúa procesando tokens desde "
1519 "donde lo dejó la última vez hasta que o bien llegue al final del fichero o "
1520 "ejecute un return."
1521
1522 #. type: Plain text
1523 #: original/man1/flex.1:735
1524 msgid ""
1525 "Actions are free to modify B<yytext> except for lengthening it (adding "
1526 "characters to its end--these will overwrite later characters in the input "
1527 "stream). This however does not apply when using B<%array> (see above); in "
1528 "that case, B<yytext> may be freely modified in any way."
1529 msgstr ""
1530 "Las acciones tienen libertad para modificar B<yytext> excepto para alargarla "
1531 "(añadiendo caracteres al final--esto sobreescribirá más tarde caracteres en "
1532 "el flujo de entrada). Sin embargo esto no se aplica cuando se utiliza B<"
1533 "%array> (ver arriba); en ese caso, B<yytext> podría modificarse libremente de "
1534 "cualquier manera."
1535
1536 #. type: Plain text
1537 #: original/man1/flex.1:741
1538 msgid ""
1539 "Actions are free to modify B<yyleng> except they should not do so if the "
1540 "action also includes use of B<yymore()> (see below)."
1541 msgstr ""
1542 "Las acciones tienen libertad para modificar B<yyleng> excepto que estas no "
1543 "deberían hacerlo si la acción también incluye el uso de B<yymore()> (ver más "
1544 "abajo)."
1545
1546 #. type: Plain text
1547 #: original/man1/flex.1:744
1548 msgid ""
1549 "There are a number of special directives which can be included within an "
1550 "action:"
1551 msgstr ""
1552 "Hay un número de directivas especiales que pueden incluirse dentro de una "
1553 "acción:"
1554
1555 #. type: Plain text
1556 #: original/man1/flex.1:747
1557 msgid "B<ECHO> copies yytext to the scanner's output."
1558 msgstr "B<ECHO> copia yytext a la salida del escáner."
1559
1560 #. type: Plain text
1561 #: original/man1/flex.1:751
1562 msgid ""
1563 "B<BEGIN> followed by the name of a start condition places the scanner in the "
1564 "corresponding start condition (see below)."
1565 msgstr ""
1566 "B<BEGIN> seguido del nombre de la condición de arranque pone al escáner en la "
1567 "condición de arranque correspondiente (ver más abajo)."
1568
1569 #. type: Plain text
1570 #: original/man1/flex.1:766
1571 msgid ""
1572 "B<REJECT> directs the scanner to proceed on to the \"second best\" rule which "
1573 "matched the input (or a prefix of the input). The rule is chosen as "
1574 "described above in \"How the Input is Matched\", and B<yytext> and B<yyleng> "
1575 "set up appropriately. It may either be one which matched as much text as the "
1576 "originally chosen rule but came later in the I<flex> input file, or one which "
1577 "matched less text. For example, the following will both count the words in "
1578 "the input and call the routine special() whenever \"frob\" is seen:"
1579 msgstr ""
1580 "B<REJECT> ordena al escáner a que proceda con la \"segunda mejor\" regla que "
1581 "concuerde con la entrada (o un prefijo de la entrada). La regla se escoge "
1582 "como se describió anteriormente en \"Cómo se Empareja la Entrada\", y "
1583 "B<yytext> e B<yyleng> se ajustan de forma apropiada. Podría ser una que "
1584 "empareje tanto texto como la regla escogida originalmente pero que viene más "
1585 "tarde en el fichero de entrada de I<flex,> o una que empareje menos texto. "
1586 "Por ejemplo, lo que viene a continuación contará las palabras en la entrada y "
1587 "llamará a la rutina especial() siempre que vea \"frob\":"
1588
1589 #. type: Plain text
1590 #: original/man1/flex.1:770
1591 #, no-wrap
1592 msgid ""
1593 " int word_count = 0;\n"
1594 " %%\n"
1595 msgstr ""
1596 " int contador_palabras = 0;\n"
1597 " %%\n"
1598
1599 #. type: Plain text
1600 #: original/man1/flex.1:773
1601 #, no-wrap
1602 msgid ""
1603 " frob special(); REJECT;\n"
1604 " [^ \\et\\en]+ ++word_count;\n"
1605 msgstr ""
1606 " frob especial(); REJECT;\n"
1607 " [^ \\et\\en]+ ++contador_palabras;\n"
1608
1609 #. type: Plain text
1610 #: original/man1/flex.1:784
1611 msgid ""
1612 "Without the B<REJECT,> any \"frob\"'s in the input would not be counted as "
1613 "words, since the scanner normally executes only one action per token. "
1614 "Multiple B<REJECT's> are allowed, each one finding the next best choice to "
1615 "the currently active rule. For example, when the following scanner scans the "
1616 "token \"abcd\", it will write \"abcdabcaba\" to the output:"
1617 msgstr ""
1618 "Sin el B<REJECT,> cualquier número de \"frob\"'s en la entrada no serían "
1619 "contados como palabras, ya que el escáner normalmente ejecuta solo una acción "
1620 "por token. Se permite el uso de múltiples B<REJECT's,> cada uno buscando la "
1621 "siguiente mejor elección a la regla que actualmente esté activa. Por "
1622 "ejemplo, cuando el siguiente escáner analice el token \"abcd\", este "
1623 "escribirá \"abcdabcaba\" a la salida:"
1624
1625 #. type: Plain text
1626 #: original/man1/flex.1:792
1627 #, no-wrap
1628 msgid ""
1629 " %%\n"
1630 " a |\n"
1631 " ab |\n"
1632 " abc |\n"
1633 " abcd ECHO; REJECT;\n"
1634 " .|\\en /* eat up any unmatched character */\n"
1635 msgstr ""
1636 " %%\n"
1637 " a |\n"
1638 " ab |\n"
1639 " abc |\n"
1640 " abcd ECHO; REJECT;\n"
1641 " .|\\en /* se come caracteres sin emparejar */\n"
1642
1643 #. type: Plain text
1644 #: original/man1/flex.1:809
1645 msgid ""
1646 "(The first three rules share the fourth's action since they use the special "
1647 "'|' action.) B<REJECT> is a particularly expensive feature in terms of "
1648 "scanner performance; if it is used in I<any> of the scanner's actions it will "
1649 "slow down I<all> of the scanner's matching. Furthermore, B<REJECT> cannot be "
1650 "used with the I<-Cf> or I<-CF> options (see below)."
1651 msgstr ""
1652 "(Las primeras tres reglas comparten la acción de la cuarta ya que estas usan "
1653 "la acción especial '|'.) B<REJECT> es una propiedad particularmente cara en "
1654 "términos de rendimiento del escáner; si se usa en I<cualquiera> de las "
1655 "acciones del escáner esta ralentizará I<todo> el proceso de emparejamiento "
1656 "del escáner. Además, B<REJECT> no puede usarse con las opciones I<-Cf> o I<-"
1657 "CF> (ver más abajo)."
1658
1659 #. type: Plain text
1660 #: original/man1/flex.1:817
1661 msgid ""
1662 "Note also that unlike the other special actions, B<REJECT> is a I<branch;> "
1663 "code immediately following it in the action will I<not> be executed."
1664 msgstr ""
1665 "Fíjese también que a diferencia de las otras acciones especiales, B<REJECT> "
1666 "es una I<bifurcación;> el código que la siga inmediatamente en la acción "
1667 "I<no> será ejecutado."
1668
1669 #. type: Plain text
1670 #: original/man1/flex.1:826
1671 msgid ""
1672 "B<yymore()> tells the scanner that the next time it matches a rule, the "
1673 "corresponding token should be I<appended> onto the current value of B<yytext> "
1674 "rather than replacing it. For example, given the input \"mega-kludge\" the "
1675 "following will write \"mega-mega-kludge\" to the output:"
1676 msgstr ""
1677 "B<yymore()> dice al escáner que la próxima vez que empareje una regla, el "
1678 "token correspondiente debe ser I<añadido> tras el valor actual de B<yytext> "
1679 "en lugar de reemplazarlo. Por ejemplo, dada la entrada \"mega-klugde\" lo "
1680 "que viene a continuación escribirá \"mega-mega-kludge\" a la salida:"
1681
1682 #. type: Plain text
1683 #: original/man1/flex.1:831
1684 #, no-wrap
1685 msgid ""
1686 " %%\n"
1687 " mega- ECHO; yymore();\n"
1688 " kludge ECHO;\n"
1689 msgstr ""
1690 " %%\n"
1691 " mega- ECHO; yymore();\n"
1692 " kludge ECHO;\n"
1693
1694 #. type: Plain text
1695 #: original/man1/flex.1:840
1696 msgid ""
1697 "First \"mega-\" is matched and echoed to the output. Then \"kludge\" is "
1698 "matched, but the previous \"mega-\" is still hanging around at the beginning "
1699 "of B<yytext> so the B<ECHO> for the \"kludge\" rule will actually write "
1700 "\"mega-kludge\"."
1701 msgstr ""
1702 "El primer \"mega-\" se empareja y se repite a la salida. Entonces se "
1703 "empareja \"kludge\", pero el \"mega-\" previo aún está esperando al inicio de "
1704 "B<yytext> asi que el B<ECHO> para la regla del \"kludge\" realmente escribirá "
1705 "\"mega-kludge\"."
1706
1707 #. type: Plain text
1708 #: original/man1/flex.1:856
1709 msgid ""
1710 "Two notes regarding use of B<yymore().> First, B<yymore()> depends on the "
1711 "value of I<yyleng> correctly reflecting the size of the current token, so you "
1712 "must not modify I<yyleng> if you are using B<yymore().> Second, the presence "
1713 "of B<yymore()> in the scanner's action entails a minor performance penalty in "
1714 "the scanner's matching speed."
1715 msgstr ""
1716 "Dos notas respecto al uso de B<yymore().> Primero, B<yymore()> depende de que "
1717 "el valor de I<yyleng> refleje correctamente el tamaño del token actual, así "
1718 "que no debe modificar I<yyleng> si está utilizando B<yymore().> Segundo, la "
1719 "presencia de B<yymore()> en la acción del escáner implica una pequeña "
1720 "penalización de rendimiento en la velocidad de emparejamiento del escáner."
1721
1722 #. type: Plain text
1723 #: original/man1/flex.1:871
1724 msgid ""
1725 "B<yyless(n)> returns all but the first I<n> characters of the current token "
1726 "back to the input stream, where they will be rescanned when the scanner looks "
1727 "for the next match. B<yytext> and B<yyleng> are adjusted appropriately (e."
1728 "g., B<yyleng> will now be equal to I<n> ). For example, on the input \"foobar"
1729 "\" the following will write out \"foobarbar\":"
1730 msgstr ""
1731 "B<yyless(n)> devuelve todos excepto los primeros I<n> caracteres del token "
1732 "actual de nuevo al flujo de entrada, donde serán reanalizados cuando el "
1733 "escáner busque el siguiente emparejamiento. B<yytext> e B<yyleng> se ajustan "
1734 "de forma adecuada (p.ej., B<yyleng> no será igual a I<n> ). Por ejemplo, con "
1735 "la entrada \"foobar\" lo que viene a continuación escribirá \"foobarbar\":"
1736
1737 #. type: Plain text
1738 #: original/man1/flex.1:876
1739 #, no-wrap
1740 msgid ""
1741 " %%\n"
1742 " foobar ECHO; yyless(3);\n"
1743 " [a-z]+ ECHO;\n"
1744 msgstr ""
1745 " %%\n"
1746 " foobar ECHO; yyless(3);\n"
1747 " [a-z]+ ECHO;\n"
1748
1749 #. type: Plain text
1750 #: original/man1/flex.1:884
1751 msgid ""
1752 "An argument of 0 to B<yyless> will cause the entire current input string to "
1753 "be scanned again. Unless you've changed how the scanner will subsequently "
1754 "process its input (using B<BEGIN,> for example), this will result in an "
1755 "endless loop."
1756 msgstr ""
1757 "Un argumento de 0 para B<yyless> hará que la cadena de entrada actual sea "
1758 "analizada por completo de nuevo. A menos que haya cambiado la manera en la "
1759 "que el escáner procese de ahora en adelante su entrada (utilizando B<BEGIN,> "
1760 "por ejemplo), esto producirá un bucle sin fin."
1761
1762 #. type: Plain text
1763 #: original/man1/flex.1:889
1764 msgid ""
1765 "Note that B<yyless> is a macro and can only be used in the flex input file, "
1766 "not from other source files."
1767 msgstr ""
1768 "Fíjese que B<yyless> es una macro y puede ser utilizada solamente en el "
1769 "fichero de entrada de flex, no desde otros ficheros fuente."
1770
1771 #. type: Plain text
1772 #: original/man1/flex.1:896
1773 msgid ""
1774 "B<unput(c)> puts the character I<c> back onto the input stream. It will be "
1775 "the next character scanned. The following action will take the current token "
1776 "and cause it to be rescanned enclosed in parentheses."
1777 msgstr ""
1778 "B<unput(c)> pone el caracter I<c> de nuevo en el flujo de entrada. Este será "
1779 "el próximo caracter analizado. La siguiente acción tomará el token actual y "
1780 "hará que se vuelva a analizar pero encerrado entre paréntesis."
1781
1782 #. type: Plain text
1783 #: original/man1/flex.1:908
1784 #, no-wrap
1785 msgid ""
1786 " {\n"
1787 " int i;\n"
1788 " /* Copy yytext because unput() trashes yytext */\n"
1789 " char *yycopy = strdup( yytext );\n"
1790 " unput( ')' );\n"
1791 " for ( i = yyleng - 1; i E<gt>= 0; --i )\n"
1792 " unput( yycopy[i] );\n"
1793 " unput( '(' );\n"
1794 " free( yycopy );\n"
1795 " }\n"
1796 msgstr ""
1797 " {\n"
1798 " int i;\n"
1799 " /* Copia yytext porque unput() desecha yytext */\n"
1800 " char *yycopia = strdup( yytext );\n"
1801 " unput( ')' );\n"
1802 " for ( i = yyleng - 1; i E<gt>= 0; --i )\n"
1803 " unput( yycopia[i] );\n"
1804 " unput( '(' );\n"
1805 " free( yycopia );\n"
1806 " }\n"
1807
1808 #. type: Plain text
1809 #: original/man1/flex.1:915
1810 msgid ""
1811 "Note that since each B<unput()> puts the given character back at the "
1812 "I<beginning> of the input stream, pushing back strings must be done back-to-"
1813 "front."
1814 msgstr ""
1815 "Fíjese que ya que cada B<unput()> pone el caracter dado de nuevo al "
1816 "I<principio> del flujo de entrada, al devolver cadenas de caracteres se debe "
1817 "hacer de atrás hacia delante."
1818
1819 #. type: Plain text
1820 #: original/man1/flex.1:933
1821 msgid ""
1822 "An important potential problem when using B<unput()> is that if you are using "
1823 "B<%pointer> (the default), a call to B<unput()> I<destroys> the contents of "
1824 "I<yytext,> starting with its rightmost character and devouring one character "
1825 "to the left with each call. If you need the value of yytext preserved after "
1826 "a call to B<unput()> (as in the above example), you must either first copy it "
1827 "elsewhere, or build your scanner using B<%array> instead (see How The Input "
1828 "Is Matched)."
1829 msgstr ""
1830 "Un problema potencial importante cuando se utiliza B<unput()> es que si está "
1831 "usando B<%pointer> (por defecto), una llamada a B<unput()> I<destruye> el "
1832 "contenido de I<yytext,> comenzando con su caracter más a la derecha y "
1833 "devorando un caracter a la izquierda con cada llamada. Si necesita que se "
1834 "preserve el valor de yytext después de una llamada a B<unput()> (como en el "
1835 "ejemplo anterior), usted debe o bien copiarlo primero en cualquier lugar, o "
1836 "construir su escáner usando B<%array> (ver Cómo se Empareja la Entrada)."
1837
1838 #. type: Plain text
1839 #: original/man1/flex.1:937
1840 msgid ""
1841 "Finally, note that you cannot put back B<EOF> to attempt to mark the input "
1842 "stream with an end-of-file."
1843 msgstr ""
1844 "Finalmente, note que no puede devolver B<EOF> para intentar marcar el flujo "
1845 "de entrada con un fin-de-fichero."
1846
1847 #. type: Plain text
1848 #: original/man1/flex.1:941
1849 msgid ""
1850 "B<input()> reads the next character from the input stream. For example, the "
1851 "following is one way to eat up C comments:"
1852 msgstr ""
1853 "B<input()> lee el próximo caracter del flujo de entrada. Por ejemplo, lo que "
1854 "viene a continuación es una manera de comerse los comentarios en C:"
1855
1856 #. type: Plain text
1857 #: original/man1/flex.1:946
1858 #, no-wrap
1859 msgid ""
1860 " %%\n"
1861 " \"/*\" {\n"
1862 " register int c;\n"
1863 msgstr ""
1864 " %%\n"
1865 " \"/*\" {\n"
1866 " register int c;\n"
1867
1868 #. type: Plain text
1869 #: original/man1/flex.1:952
1870 #, no-wrap
1871 msgid ""
1872 " for ( ; ; )\n"
1873 " {\n"
1874 " while ( (c = input()) != '*' &&\n"
1875 " c != EOF )\n"
1876 " ; /* eat up text of comment */\n"
1877 msgstr ""
1878 " for ( ; ; )\n"
1879 " {\n"
1880 " while ( (c = input()) != '*' &&\n"
1881 " c != EOF )\n"
1882 " ; /* se come el texto del comentario */\n"
1883
1884 #. type: Plain text
1885 #: original/man1/flex.1:960
1886 #, no-wrap
1887 msgid ""
1888 " if ( c == '*' )\n"
1889 " {\n"
1890 " while ( (c = input()) == '*' )\n"
1891 " ;\n"
1892 " if ( c == '/' )\n"
1893 " break; /* found the end */\n"
1894 " }\n"
1895 msgstr ""
1896 " if ( c == '*' )\n"
1897 " {\n"
1898 " while ( (c = input()) == '*' )\n"
1899 " ;\n"
1900 " if ( c == '/' )\n"
1901 " break; /* encontró el final */\n"
1902 " }\n"
1903
1904 #. type: Plain text
1905 #: original/man1/flex.1:968
1906 #, no-wrap
1907 msgid ""
1908 " if ( c == EOF )\n"
1909 " {\n"
1910 " error( \"EOF in comment\" );\n"
1911 " break;\n"
1912 " }\n"
1913 " }\n"
1914 " }\n"
1915 msgstr ""
1916 " if ( c == EOF )\n"
1917 " {\n"
1918 " error( \"EOF en comentario\" );\n"
1919 " break;\n"
1920 " }\n"
1921 " }\n"
1922 " }\n"
1923
1924 #. type: Plain text
1925 #: original/man1/flex.1:980
1926 msgid ""
1927 "(Note that if the scanner is compiled using B<C++,> then B<input()> is "
1928 "instead referred to as B<yyinput(),> in order to avoid a name clash with the "
1929 "B<C++> stream by the name of I<input.)>"
1930 msgstr ""
1931 "(Fíjese que si el escáner se compila usando B<C++,> entonces a B<input()> se "
1932 "le hace referencia con B<yyinput(),> para evitar una colisión de nombre con "
1933 "el flujo de B<C++> por el nombre I<input.)>"
1934
1935 #. type: Plain text
1936 #: original/man1/flex.1:990
1937 msgid ""
1938 "B<YY_FLUSH_BUFFER> flushes the scanner's internal buffer so that the next "
1939 "time the scanner attempts to match a token, it will first refill the buffer "
1940 "using B<YY_INPUT> (see The Generated Scanner, below). This action is a "
1941 "special case of the more general B<yy_flush_buffer()> function, described "
1942 "below in the section Multiple Input Buffers."
1943 msgstr ""
1944 "B<YY_FLUSH_BUFFER> vacía el buffer interno del escáner de manera que la "
1945 "próxima vez que el escáner intente emparejar un token, este primero rellenará "
1946 "el buffer usando B<YY_INPUT> (ver El Escáner Generado, más abajo). Esta "
1947 "acción es un caso especial de la función más general B<yy_flush_buffer(),> "
1948 "descrita más abajo en la sección Múltiples Buffers de Entrada."
1949
1950 #. type: Plain text
1951 #: original/man1/flex.1:998
1952 msgid ""
1953 "B<yyterminate()> can be used in lieu of a return statement in an action. It "
1954 "terminates the scanner and returns a 0 to the scanner's caller, indicating "
1955 "\"all done\". By default, B<yyterminate()> is also called when an end-of-"
1956 "file is encountered. It is a macro and may be redefined."
1957 msgstr ""
1958 "B<yyterminate()> se puede utilizar en lugar de una sentencia de retorno en "
1959 "una acción. Esta hace que finalice el escáner y retorne un 0 a quien haya "
1960 "llamado al escáner, indicando que \"todo está hecho\". Por defecto, también "
1961 "se llama a B<yyterminate()> cuando se encuentra un fin-de-fichero. Esta es "
1962 "una macro y podría ser redefinida."
1963
1964 #. type: SH
1965 #: original/man1/flex.1:998
1966 #, no-wrap
1967 msgid "THE GENERATED SCANNER"
1968 msgstr "El Escáner Generado"
1969
1970 #. type: Plain text
1971 #: original/man1/flex.1:1009
1972 msgid ""
1973 "The output of I<flex> is the file B<lex.yy.c,> which contains the scanning "
1974 "routine B<yylex(),> a number of tables used by it for matching tokens, and a "
1975 "number of auxiliary routines and macros. By default, B<yylex()> is declared "
1976 "as follows:"
1977 msgstr ""
1978 "La salida de I<flex> es el fichero B<lex.yy.c,> que contiene la rutina de "
1979 "análisis B<yylex(),> un número de tablas usadas por esta para emparejar "
1980 "tokens, y un número de rutinas auxiliares y macros. Por defecto, B<yylex()> "
1981 "se declara así"
1982
1983 #. type: Plain text
1984 #: original/man1/flex.1:1015
1985 #, no-wrap
1986 msgid ""
1987 " int yylex()\n"
1988 " {\n"
1989 " ... various definitions and the actions in here ...\n"
1990 " }\n"
1991 msgstr ""
1992 " int yylex()\n"
1993 " {\n"
1994 " ... aquí van varias definiciones y las acciones ...\n"
1995 " }\n"
1996
1997 #. type: Plain text
1998 #: original/man1/flex.1:1020
1999 msgid ""
2000 "(If your environment supports function prototypes, then it will be \"int "
2001 "yylex( void )\".) This definition may be changed by defining the \"YY_DECL\" "
2002 "macro. For example, you could use:"
2003 msgstr ""
2004 "(Si su entorno acepta prototipos de funciones, entonces este será \"int "
2005 "yylex( void )\"). Esta definición podría modificarse definiendo la macro "
2006 "\"YY_DECL\". Por ejemplo, podría utilizar:"
2007
2008 #. type: Plain text
2009 #: original/man1/flex.1:1023
2010 #, no-wrap
2011 msgid " #define YY_DECL float lexscan( a, b ) float a, b;\n"
2012 msgstr " #define YY_DECL float lexscan( a, b ) float a, b;\n"
2013
2014 #. type: Plain text
2015 #: original/man1/flex.1:1031
2016 msgid ""
2017 "to give the scanning routine the name I<lexscan,> returning a float, and "
2018 "taking two floats as arguments. Note that if you give arguments to the "
2019 "scanning routine using a K&R-style/non-prototyped function declaration, you "
2020 "must terminate the definition with a semi-colon (;)."
2021 msgstr ""
2022 "para darle a la rutina de análisis el nombre I<lexscan,> que devuelve un "
2023 "real, y toma dos reales como argumentos. Fíjese que si pone argumentos a la "
2024 "rutina de análisis usando una declaración de función no-prototipada/tipo-K&R, "
2025 "debe hacer terminar la definición con un punto y coma (;)."
2026
2027 #. type: Plain text
2028 #: original/man1/flex.1:1041
2029 msgid ""
2030 "Whenever B<yylex()> is called, it scans tokens from the global input file "
2031 "I<yyin> (which defaults to stdin). It continues until it either reaches an "
2032 "end-of-file (at which point it returns the value 0) or one of its actions "
2033 "executes a I<return> statement."
2034 msgstr ""
2035 "Siempre que se llame a B<yylex()>, este analiza tokens desde el fichero de "
2036 "entrada global I<yyin> (que por defecto es igual a stdin). La función "
2037 "continúa hasta que alcance el final del fichero (punto en el que devuelve el "
2038 "valor 0) o una de sus acciones ejecute una sentencia I<return>."
2039
2040 #. type: Plain text
2041 #: original/man1/flex.1:1080
2042 msgid ""
2043 "If the scanner reaches an end-of-file, subsequent calls are undefined unless "
2044 "either I<yyin> is pointed at a new input file (in which case scanning "
2045 "continues from that file), or B<yyrestart()> is called. B<yyrestart()> takes "
2046 "one argument, a B<FILE *> pointer (which can be nil, if you've set up "
2047 "B<YY_INPUT> to scan from a source other than I<yyin),> and initializes "
2048 "I<yyin> for scanning from that file. Essentially there is no difference "
2049 "between just assigning I<yyin> to a new input file or using B<yyrestart()> to "
2050 "do so; the latter is available for compatibility with previous versions of "
2051 "I<flex,> and because it can be used to switch input files in the middle of "
2052 "scanning. It can also be used to throw away the current input buffer, by "
2053 "calling it with an argument of I<yyin;> but better is to use "
2054 "B<YY_FLUSH_BUFFER> (see above). Note that B<yyrestart()> does I<not> reset "
2055 "the start condition to B<INITIAL> (see Start Conditions, below)."
2056 msgstr ""
2057 "Si el escáner alcanza un fin-de-fichero, entonces el comportamiento en las "
2058 "llamadas posteriores está indefinido a menos que o bien I<yyin> apunte a un "
2059 "nuevo fichero de entrada (en cuyo caso el análisis continúa a partir de ese "
2060 "fichero), o se llame a B<yyrestart().> B<yyrestart()> toma un argumento, un "
2061 "puntero B<FILE *> (que puede ser nulo, si ha preparado a B<YY_INPUT> para que "
2062 "analice una fuente distinta a I<yyin),> e inicializa I<yyin> para que escanee "
2063 "ese fichero. Esencialmente no hay diferencia entre la asignación a I<yyin> "
2064 "de un nuevo fichero de entrada o el uso de B<yyrestart()> para hacerlo; esto "
2065 "último está disponible por compatibilidad con versiones anteriores de I<flex,"
2066 "> y porque puede utilizarse para conmutar ficheros de entrada en medio del "
2067 "análisis. También se puede utilizar para desechar el buffer de entrada "
2068 "actual, invocándola con un argumento igual a I<yyin;> pero mejor es usar "
2069 "B<YY_FLUSH_BUFFER> (ver más arriba). Fíjese que B<yyrestart()> I<no> "
2070 "reinicializa la condición de arranque a B<INITIAL> (ver Condiciones de "
2071 "Arranque, más abajo)."
2072
2073 #. type: Plain text
2074 #: original/man1/flex.1:1087
2075 msgid ""
2076 "If B<yylex()> stops scanning due to executing a I<return> statement in one of "
2077 "the actions, the scanner may then be called again and it will resume scanning "
2078 "where it left off."
2079 msgstr ""
2080 "Si B<yylex()> para el análisis debido a la ejecución de una sentencia "
2081 "I<return> en una de las acciones, el analizador podría ser llamado de nuevo y "
2082 "este reanudaría el análisis donde lo dejó."
2083
2084 #. type: Plain text
2085 #: original/man1/flex.1:1107
2086 msgid ""
2087 "By default (and for purposes of efficiency), the scanner uses block-reads "
2088 "rather than simple I<getc()> calls to read characters from I<yyin.> The "
2089 "nature of how it gets its input can be controlled by defining the B<YY_INPUT> "
2090 "macro. YY_INPUT's calling sequence is \"YY_INPUT(buf,result,max_size)\". "
2091 "Its action is to place up to I<max_size> characters in the character array "
2092 "I<buf> and return in the integer variable I<result> either the number of "
2093 "characters read or the constant YY_NULL (0 on Unix systems) to indicate "
2094 "EOF. The default YY_INPUT reads from the global file-pointer \"yyin\"."
2095 msgstr ""
2096 "Por defecto (y por razones de eficiencia), el analizador usa lecturas por "
2097 "bloques en lugar de simples llamadas a I<getc()> para leer caracteres desde "
2098 "I<yyin.> La manera en la que toma su entrada se puede controlar definienfo la "
2099 "macro B<YY_INPUT.> La secuencia de llamada para YY_INPUT es \"YY_INPUT(buf,"
2100 "result,max_size)\". Su acción es poner hasta I<max_size> caracteres en el "
2101 "array de caracteres I<buf> y devolver en la variable entera I<result> bien o "
2102 "el número de caracteres leídos o la constante YY_NULL (0 en sistemas Unix) "
2103 "para indicar EOF. Por defecto YY_INPUT lee desde la variable global puntero "
2104 "a fichero \"yyin\"."
2105
2106 #. type: Plain text
2107 #: original/man1/flex.1:1110
2108 msgid ""
2109 "A sample definition of YY_INPUT (in the definitions section of the input "
2110 "file):"
2111 msgstr ""
2112 "Una definición de ejemplo para YY_INPUT (en la sección de definiciones del "
2113 "fichero de entrada) es:"
2114
2115 #. type: Plain text
2116 #: original/man1/flex.1:1119
2117 #, no-wrap
2118 msgid ""
2119 " %{\n"
2120 " #define YY_INPUT(buf,result,max_size) \\e\n"
2121 " { \\e\n"
2122 " int c = getchar(); \\e\n"
2123 " result = (c == EOF) ? YY_NULL : (buf[0] = c, 1); \\e\n"
2124 " }\n"
2125 " %}\n"
2126 msgstr ""
2127 " %{\n"
2128 " #define YY_INPUT(buf,result,max_size) \\e\n"
2129 " { \\e\n"
2130 " int c = getchar(); \\e\n"
2131 " result = (c == EOF) ? YY_NULL : (buf[0] = c, 1); \\e\n"
2132 " }\n"
2133 " %}\n"
2134
2135 #. type: Plain text
2136 #: original/man1/flex.1:1123
2137 msgid ""
2138 "This definition will change the input processing to occur one character at a "
2139 "time."
2140 msgstr ""
2141 "Esta definición cambiará el procesamiento de la entrada para que suceda un "
2142 "caracter a la vez."
2143
2144 #. type: Plain text
2145 #: original/man1/flex.1:1139
2146 msgid ""
2147 "When the scanner receives an end-of-file indication from YY_INPUT, it then "
2148 "checks the B<yywrap()> function. If B<yywrap()> returns false (zero), then "
2149 "it is assumed that the function has gone ahead and set up I<yyin> to point to "
2150 "another input file, and scanning continues. If it returns true (non-zero), "
2151 "then the scanner terminates, returning 0 to its caller. Note that in either "
2152 "case, the start condition remains unchanged; it does I<not> revert to "
2153 "B<INITIAL.>"
2154 msgstr ""
2155 "Cuando el analizador reciba una indicación de fin-de-fichero desde YY_INPUT, "
2156 "entonces esta comprueba la función B<yywrap().> Si B<yywrap()> devuelve falso "
2157 "(cero), entonces se asume que la función ha ido más allá y ha preparado "
2158 "I<yyin> para que apunte a otro fichero de entrada, y el análisis continúa. "
2159 "Si este retorna verdadero (no-cero), entonces el analizador termina, "
2160 "devolviendo un 0 a su invocador. Fíjese que en cualquier caso, la condición "
2161 "de arranque permanece sin cambios; esta I<no> vuelve a ser B<INITIAL.>"
2162
2163 #. type: Plain text
2164 #: original/man1/flex.1:1149
2165 msgid ""
2166 "If you do not supply your own version of B<yywrap(),> then you must either "
2167 "use B<%option noyywrap> (in which case the scanner behaves as though "
2168 "B<yywrap()> returned 1), or you must link with B<-lfl> to obtain the default "
2169 "version of the routine, which always returns 1."
2170 msgstr ""
2171 "Si no proporciona su propia versión de B<yywrap(),> entonces debe bien o usar "
2172 "B<%option noyywrap> (en cuyo caso el analizador se comporta como si "
2173 "B<yywrap()> devolviera un 1), o debe enlazar con B<-lfl> para obtener la "
2174 "versión por defecto de la rutina, que siempre devuelve un 1."
2175
2176 #. type: Plain text
2177 #: original/man1/flex.1:1156
2178 msgid ""
2179 "Three routines are available for scanning from in-memory buffers rather than "
2180 "files: B<yy_scan_string(), yy_scan_bytes(),> and B<yy_scan_buffer().> See the "
2181 "discussion of them below in the section Multiple Input Buffers."
2182 msgstr ""
2183 "Hay disponibles tres rutinas para analizar desde buffers de memoria en lugar "
2184 "de desde ficheros: B<yy_scan_string(), yy_scan_bytes(),> e B<yy_scan_buffer()."
2185 "> Las trataremos en la sección Múltiples Buffers de Entrada."
2186
2187 #. type: Plain text
2188 #: original/man1/flex.1:1165
2189 msgid ""
2190 "The scanner writes its B<ECHO> output to the I<yyout> global (default, "
2191 "stdout), which may be redefined by the user simply by assigning it to some "
2192 "other B<FILE> pointer."
2193 msgstr ""
2194 "El analizador escribe su salida con B<ECHO> a la variable global I<yyout> "
2195 "(por defecto, stdout), que el usuario podría redefinir asignándole cualquier "
2196 "otro puntero a B<FILE>."
2197
2198 #. type: SH
2199 #: original/man1/flex.1:1165
2200 #, no-wrap
2201 msgid "START CONDITIONS"
2202 msgstr "CONDICIONES DE ARRANQUE"
2203
2204 #. type: Plain text
2205 #: original/man1/flex.1:1170
2206 msgid ""
2207 "I<flex> provides a mechanism for conditionally activating rules. Any rule "
2208 "whose pattern is prefixed with \"E<lt>scE<gt>\" will only be active when the "
2209 "scanner is in the start condition named \"sc\". For example,"
2210 msgstr ""
2211 "I<flex> dispone de un mecanismo para activar reglas condicionalmente. "
2212 "Cualquier regla cuyo patrón se prefije con \"E<lt>scE<gt>\" únicamente estará "
2213 "activa cuando el analizador se encuentre en la condición de arranque llamada "
2214 "\"sc\". Por ejemplo,"
2215
2216 #. type: Plain text
2217 #: original/man1/flex.1:1175
2218 #, no-wrap
2219 msgid ""
2220 " E<lt>STRINGE<gt>[^\"]* { /* eat up the string body ... */\n"
2221 " ...\n"
2222 " }\n"
2223 msgstr ""
2224 " E<lt>STRINGE<gt>[^\"]* { /* se come el cuerpo de la cadena ... */\n"
2225 " ...\n"
2226 " }\n"
2227
2228 #. type: Plain text
2229 #: original/man1/flex.1:1179
2230 msgid ""
2231 "will be active only when the scanner is in the \"STRING\" start condition, and"
2232 msgstr ""
2233 "estará activa solamente cuando el analizador esté en la condición de arranque "
2234 "\"STRING\", y"
2235
2236 #. type: Plain text
2237 #: original/man1/flex.1:1184
2238 #, no-wrap
2239 msgid ""
2240 " E<lt>INITIAL,STRING,QUOTEE<gt>\\e. { /* handle an escape ... */\n"
2241 " ...\n"
2242 " }\n"
2243 msgstr ""
2244 " E<lt>INITIAL,STRING,QUOTEE<gt>\\e. { /* trata una secuencia de escape ... */\n"
2245 " ...\n"
2246 " }\n"
2247
2248 #. type: Plain text
2249 #: original/man1/flex.1:1188
2250 msgid ""
2251 "will be active only when the current start condition is either \"INITIAL\", "
2252 "\"STRING\", or \"QUOTE\"."
2253 msgstr ""
2254 "estará activa solamente cuando la condición de arranque actual sea o bien "
2255 "\"INITIAL\", \"STRING\", o \"QUOTE\"."
2256
2257 #. type: Plain text
2258 #: original/man1/flex.1:1222
2259 msgid ""
2260 "Start conditions are declared in the definitions (first) section of the input "
2261 "using unindented lines beginning with either B<%s> or B<%x> followed by a "
2262 "list of names. The former declares I<inclusive> start conditions, the latter "
2263 "I<exclusive> start conditions. A start condition is activated using the "
2264 "B<BEGIN> action. Until the next B<BEGIN> action is executed, rules with the "
2265 "given start condition will be active and rules with other start conditions "
2266 "will be inactive. If the start condition is I<inclusive,> then rules with no "
2267 "start conditions at all will also be active. If it is I<exclusive,> then "
2268 "I<only> rules qualified with the start condition will be active. A set of "
2269 "rules contingent on the same exclusive start condition describe a scanner "
2270 "which is independent of any of the other rules in the I<flex> input. Because "
2271 "of this, exclusive start conditions make it easy to specify \"mini-scanners\" "
2272 "which scan portions of the input that are syntactically different from the "
2273 "rest (e.g., comments)."
2274 msgstr ""
2275 "Las condiciones de arranque se declaran en la (primera) sección de "
2276 "definiciones de la entrada usando líneas sin sangrar comenzando con B<%s> o B<"
2277 "%x> seguida por una lista de nombres. Lo primero declara condiciones de "
2278 "arranque I<inclusivas,> lo último condiciones de arranque I<exclusivas.> Una "
2279 "condición de arranque se activa utilizando la acción B<BEGIN.> Hasta que se "
2280 "ejecute la próxima acción B<BEGIN,> las reglas con la condición de arranque "
2281 "dada estarán activas y las reglas con otras condiciones de arranque estarán "
2282 "inactivas. Si la condición de arranque es I<inclusiva,> entonces las reglas "
2283 "sin condiciones de arranque también estarán activas. Si es I<exclusiva,> "
2284 "entonces I<sólamente> las reglas calificadas con la condición de arranque "
2285 "estarán activas. Un conjunto de reglas dependientes de la misma condición de "
2286 "arranque exclusiva describe un analizador que es independiente de cualquiera "
2287 "de las otras reglas en la entrada de I<flex.> Debido a esto, las condiciones "
2288 "de arranque exclusivas hacen fácil la especificación de \"mini-escáneres\" "
2289 "que analizan porciones de la entrada que son sintácticamente diferentes al "
2290 "resto (p.ej., comentarios)."
2291
2292 #. type: Plain text
2293 #: original/man1/flex.1:1226
2294 msgid ""
2295 "If the distinction between inclusive and exclusive start conditions is still "
2296 "a little vague, here's a simple example illustrating the connection between "
2297 "the two. The set of rules:"
2298 msgstr ""
2299 "Si la distinción entre condiciones de arranque inclusivas o exclusivas es aún "
2300 "un poco vaga, aquí hay un ejemplo simple que ilustra la conexión entre las "
2301 "dos. El conjunto de reglas:"
2302
2303 #. type: Plain text
2304 #: original/man1/flex.1:1230
2305 #, no-wrap
2306 msgid ""
2307 " %s example\n"
2308 " %%\n"
2309 msgstr ""
2310 " %s ejemplo\n"
2311 " %%\n"
2312
2313 #. type: Plain text
2314 #: original/man1/flex.1:1232 original/man1/flex.1:1243 original/man1/flex.1:1280
2315 #, no-wrap
2316 msgid " E<lt>exampleE<gt>foo do_something();\n"
2317 msgstr " E<lt>ejemploE<gt>foo hacer_algo();\n"
2318
2319 #. type: Plain text
2320 #: original/man1/flex.1:1234
2321 #, no-wrap
2322 msgid " bar something_else();\n"
2323 msgstr " bar algo_mas();\n"
2324
2325 #. type: Plain text
2326 #: original/man1/flex.1:1237
2327 msgid "is equivalent to"
2328 msgstr "es equivalente a"
2329
2330 #. type: Plain text
2331 #: original/man1/flex.1:1241 original/man1/flex.1:1278
2332 #, no-wrap
2333 msgid ""
2334 " %x example\n"
2335 " %%\n"
2336 msgstr ""
2337 " %x ejemplo\n"
2338 " %%\n"
2339
2340 #. type: Plain text
2341 #: original/man1/flex.1:1245
2342 #, no-wrap
2343 msgid " E<lt>INITIAL,exampleE<gt>bar something_else();\n"
2344 msgstr " E<lt>INITIAL,ejemploE<gt>bar algo_mas();\n"
2345
2346 #. type: Plain text
2347 #: original/man1/flex.1:1269
2348 msgid ""
2349 "Without the B<E<lt>INITIAL,exampleE<gt>> qualifier, the I<bar> pattern in the "
2350 "second example wouldn't be active (i.e., couldn't match) when in start "
2351 "condition B<example.> If we just used B<E<lt>exampleE<gt>> to qualify I<bar,> "
2352 "though, then it would only be active in B<example> and not in B<INITIAL,> "
2353 "while in the first example it's active in both, because in the first example "
2354 "the B<example> startion condition is an I<inclusive> B<(%s)> start condition."
2355 msgstr ""
2356 "Sin el calificador B<E<lt>INITIAL,exampleE<gt>,> el patrón I<bar> en el "
2357 "segundo ejemplo no estará activo (es decir, no puede emparejarse) cuando se "
2358 "encuentre en la condición de arranque B<example.> Si hemos usado "
2359 "B<E<lt>exampleE<gt>> para calificar I<bar,> aunque, entonces este únicamente "
2360 "estará activo en B<example> y no en B<INITIAL,> mientras que en el primer "
2361 "ejemplo está activo en ambas, porque en el primer ejemplo la condición de "
2362 "arranque B<example> es una condición de arranque I<inclusiva> B<(%s)>."
2363
2364 #. type: Plain text
2365 #: original/man1/flex.1:1274
2366 msgid ""
2367 "Also note that the special start-condition specifier B<E<lt>*E<gt>> matches "
2368 "every start condition. Thus, the above example could also have been written;"
2369 msgstr ""
2370 "Fíjese también que el especificador especial de la condición de arranque "
2371 "B<E<lt>*E<gt>> empareja todas las condiciones de arranque. Así, el ejemplo "
2372 "anterior también pudo haberse escrito;"
2373
2374 #. type: Plain text
2375 #: original/man1/flex.1:1282
2376 #, no-wrap
2377 msgid " E<lt>*E<gt>bar something_else();\n"
2378 msgstr " E<lt>*E<gt>bar algo_mas();\n"
2379
2380 #. type: Plain text
2381 #: original/man1/flex.1:1289
2382 msgid ""
2383 "The default rule (to B<ECHO> any unmatched character) remains active in start "
2384 "conditions. It is equivalent to:"
2385 msgstr ""
2386 "La regla por defecto (hacer un B<ECHO> con cualquier caracter sin emparejar) "
2387 "permanece activa en las condiciones de arranque. Esta es equivalente a:"
2388
2389 #. type: Plain text
2390 #: original/man1/flex.1:1292
2391 #, no-wrap
2392 msgid " E<lt>*E<gt>.|\\en ECHO;\n"
2393 msgstr " E<lt>*E<gt>.|\\en ECHO;\n"
2394
2395 #. type: Plain text
2396 #: original/man1/flex.1:1304
2397 msgid ""
2398 "B<BEGIN(0)> returns to the original state where only the rules with no start "
2399 "conditions are active. This state can also be referred to as the start-"
2400 "condition \"INITIAL\", so B<BEGIN(INITIAL)> is equivalent to B<BEGIN(0).> "
2401 "(The parentheses around the start condition name are not required but are "
2402 "considered good style.)"
2403 msgstr ""
2404 "B<BEGIN(0)> retorna al estado original donde solo las reglas sin condiciones "
2405 "de arranque están activas. Este estado también puede referirse a la "
2406 "condición de arranque \"INITIAL\", así que B<BEGIN(INITIAL)> es equivalente a "
2407 "B<BEGIN(0).> (No se requieren los paréntesis alrededor del nombre de la "
2408 "condición de arranque pero se considera de buen estilo.)"
2409
2410 #. type: Plain text
2411 #: original/man1/flex.1:1313
2412 msgid ""
2413 "B<BEGIN> actions can also be given as indented code at the beginning of the "
2414 "rules section. For example, the following will cause the scanner to enter "
2415 "the \"SPECIAL\" start condition whenever B<yylex()> is called and the global "
2416 "variable I<enter_special> is true:"
2417 msgstr ""
2418 "Las acciones B<BEGIN> pueden darse también como código sangrado al comienzo "
2419 "de la sección de reglas. Por ejemplo, lo que viene a continuación hará que "
2420 "el analizador entre en la condición de arranque \"ESPECIAL\" siempre que se "
2421 "llame a B<yylex()> y la variable global I<entra_en_especial> sea verdadera:"
2422
2423 #. type: Plain text
2424 #: original/man1/flex.1:1316
2425 #, no-wrap
2426 msgid " int enter_special;\n"
2427 msgstr " int entra_en_especial;\n"
2428
2429 #. type: Plain text
2430 #: original/man1/flex.1:1321
2431 #, no-wrap
2432 msgid ""
2433 " %x SPECIAL\n"
2434 " %%\n"
2435 " if ( enter_special )\n"
2436 " BEGIN(SPECIAL);\n"
2437 msgstr ""
2438 " %x ESPECIAL\n"
2439 " %%\n"
2440 " if ( entra_en_especial )\n"
2441 " BEGIN(ESPECIAL);\n"
2442
2443 #. type: Plain text
2444 #: original/man1/flex.1:1324
2445 #, no-wrap
2446 msgid ""
2447 " E<lt>SPECIALE<gt>blahblahblah\n"
2448 " ...more rules follow...\n"
2449 msgstr ""
2450 " E<lt>ESPECIALE<gt>blablabla\n"
2451 " ...más reglas a continuación...\n"
2452
2453 #. type: Plain text
2454 #: original/man1/flex.1:1335
2455 msgid ""
2456 "To illustrate the uses of start conditions, here is a scanner which provides "
2457 "two different interpretations of a string like \"123.456\". By default it "
2458 "will treat it as three tokens, the integer \"123\", a dot ('.'), and the "
2459 "integer \"456\". But if the string is preceded earlier in the line by the "
2460 "string \"expect-floats\" it will treat it as a single token, the floating-"
2461 "point number 123.456:"
2462 msgstr ""
2463 "Para ilustrar los usos de las condiciones de arranque, aquí hay un analizador "
2464 "que ofrece dos interpretaciones diferentes para una cadena como \"123.456\". "
2465 "Por defecto este la tratará como tres tokens, el entero \"123\", un punto "
2466 "('.'), y el entero \"456\". Pero si la cadena viene precedida en la línea "
2467 "por la cadena \"espera-reales\" este la tratará como un único token, el "
2468 "número en coma flotante 123.456:"
2469
2470 #. type: Plain text
2471 #: original/man1/flex.1:1341
2472 #, no-wrap
2473 msgid ""
2474 " %{\n"
2475 " #include E<lt>math.hE<gt>\n"
2476 " %}\n"
2477 " %s expect\n"
2478 msgstr ""
2479 " %{\n"
2480 " #include E<lt>math.hE<gt>\n"
2481 " %}\n"
2482 " %s espera\n"
2483
2484 #. type: Plain text
2485 #: original/man1/flex.1:1344
2486 #, no-wrap
2487 msgid ""
2488 " %%\n"
2489 " expect-floats BEGIN(expect);\n"
2490 msgstr ""
2491 " %%\n"
2492 " espera-reales BEGIN(espera);\n"
2493
2494 #. type: Plain text
2495 #: original/man1/flex.1:1357
2496 #, no-wrap
2497 msgid ""
2498 " E<lt>expectE<gt>[0-9]+\".\"[0-9]+ {\n"
2499 " printf( \"found a float, = %f\\en\",\n"
2500 " atof( yytext ) );\n"
2501 " }\n"
2502 " E<lt>expectE<gt>\\en {\n"
2503 " /* that's the end of the line, so\n"
2504 " * we need another \"expect-number\"\n"
2505 " * before we'll recognize any more\n"
2506 " * numbers\n"
2507 " */\n"
2508 " BEGIN(INITIAL);\n"
2509 " }\n"
2510 msgstr ""
2511 " E<lt>esperaE<gt>[0-9]+\".\"[0-9]+ {\n"
2512 " printf( \"encontró un real, = %f\\en\",\n"
2513 " atof( yytext ) );\n"
2514 " }\n"
2515 " E<lt>esperaE<gt>\\en {\n"
2516 " /* este es el final de la línea,\n"
2517 " * así que necesitamos otro\n"
2518 " * \"espera-numero\" antes de\n"
2519 " * que volvamos a reconocer más\n"
2520 " * números\n"
2521 " */\n"
2522 " BEGIN(INITIAL);\n"
2523 " }\n"
2524
2525 #. type: Plain text
2526 #: original/man1/flex.1:1362
2527 #, no-wrap
2528 msgid ""
2529 " [0-9]+ {\n"
2530 " printf( \"found an integer, = %d\\en\",\n"
2531 " atoi( yytext ) );\n"
2532 " }\n"
2533 msgstr ""
2534 " [0-9]+ {\n"
2535 " printf( \"encontró un entero, = %d\\en\",\n"
2536 " atoi( yytext ) );\n"
2537 " }\n"
2538
2539 #. type: Plain text
2540 #: original/man1/flex.1:1364
2541 #, no-wrap
2542 msgid " \".\" printf( \"found a dot\\en\" );\n"
2543 msgstr " \".\" printf( \"encontró un punto\\en\" );\n"
2544
2545 #. type: Plain text
2546 #: original/man1/flex.1:1368
2547 msgid ""
2548 "Here is a scanner which recognizes (and discards) C comments while "
2549 "maintaining a count of the current input line."
2550 msgstr ""
2551 "Aquí está un analizador que reconoce (y descarta) comentarios de C mientras "
2552 "mantiene una cuenta de la línea actual de entrada."
2553
2554 #. type: Plain text
2555 #: original/man1/flex.1:1373 original/man1/flex.1:3027 original/man1/flex.1:3042
2556 #, no-wrap
2557 msgid ""
2558 " %x comment\n"
2559 " %%\n"
2560 " int line_num = 1;\n"
2561 msgstr ""
2562 " %x comentario\n"
2563 " %%\n"
2564 " int num_linea = 1;\n"
2565
2566 #. type: Plain text
2567 #: original/man1/flex.1:1375 original/man1/flex.1:3029 original/man1/flex.1:3044
2568 #, no-wrap
2569 msgid " \"/*\" BEGIN(comment);\n"
2570 msgstr " \"/*\" BEGIN(comentario);\n"
2571
2572 #. type: Plain text
2573 #: original/man1/flex.1:1380
2574 #, no-wrap
2575 msgid ""
2576 " E<lt>commentE<gt>[^*\\en]* /* eat anything that's not a '*' */\n"
2577 " E<lt>commentE<gt>\"*\"+[^*/\\en]* /* eat up '*'s not followed by '/'s */\n"
2578 " E<lt>commentE<gt>\\en ++line_num;\n"
2579 " E<lt>commentE<gt>\"*\"+\"/\" BEGIN(INITIAL);\n"
2580 msgstr ""
2581 " E<lt>commentE<gt>[^*\\en]* /* come todo lo que no sea '*' */\n"
2582 " E<lt>commentE<gt>\"*\"+[^*/\\en]* /* come '*'s no seguidos por '/'s */\n"
2583 " E<lt>commentE<gt>\\en ++num_linea;\n"
2584 " E<lt>commentE<gt>\"*\"+\"/\" BEGIN(INITIAL);\n"
2585
2586 #. type: Plain text
2587 #: original/man1/flex.1:1386
2588 msgid ""
2589 "This scanner goes to a bit of trouble to match as much text as possible with "
2590 "each rule. In general, when attempting to write a high-speed scanner try to "
2591 "match as much possible in each rule, as it's a big win."
2592 msgstr ""
2593 "Este analizador se complica un poco para emparejar tanto texto como le sea "
2594 "posible en cada regla. En general, cuando se intenta escribir un analizador "
2595 "de alta velocidad haga que cada regla empareje lo más que pueda, ya que esto "
2596 "es un buen logro."
2597
2598 #. type: Plain text
2599 #: original/man1/flex.1:1390
2600 msgid ""
2601 "Note that start-conditions names are really integer values and can be stored "
2602 "as such. Thus, the above could be extended in the following fashion:"
2603 msgstr ""
2604 "Fíjese que los nombres de las condiciones de arranque son realmente valores "
2605 "enteros y pueden ser almacenados como tales. Así, lo anterior podría "
2606 "extenderse de la siguiente manera:"
2607
2608 #. type: Plain text
2609 #: original/man1/flex.1:1396
2610 #, no-wrap
2611 msgid ""
2612 " %x comment foo\n"
2613 " %%\n"
2614 " int line_num = 1;\n"
2615 " int comment_caller;\n"
2616 msgstr ""
2617 " %x comentario foo\n"
2618 " %%\n"
2619 " int num_linea = 1;\n"
2620 " int invocador_comentario;\n"
2621
2622 #. type: Plain text
2623 #: original/man1/flex.1:1401
2624 #, no-wrap
2625 msgid ""
2626 " \"/*\" {\n"
2627 " comment_caller = INITIAL;\n"
2628 " BEGIN(comment);\n"
2629 " }\n"
2630 msgstr ""
2631 " \"/*\" {\n"
2632 " invocador_comentario = INITIAL;\n"
2633 " BEGIN(comentario);\n"
2634 " }\n"
2635
2636 #. type: Plain text
2637 #: original/man1/flex.1:1403
2638 #, no-wrap
2639 msgid " ...\n"
2640 msgstr " ...\n"
2641
2642 #. type: Plain text
2643 #: original/man1/flex.1:1408
2644 #, no-wrap
2645 msgid ""
2646 " E<lt>fooE<gt>\"/*\" {\n"
2647 " comment_caller = foo;\n"
2648 " BEGIN(comment);\n"
2649 " }\n"
2650 msgstr ""
2651 " E<lt>fooE<gt>\"/*\" {\n"
2652 " invocador_comentario = foo;\n"
2653 " BEGIN(comentario);\n"
2654 " }\n"
2655
2656 #. type: Plain text
2657 #: original/man1/flex.1:1413
2658 #, no-wrap
2659 msgid ""
2660 " E<lt>commentE<gt>[^*\\en]* /* eat anything that's not a '*' */\n"
2661 " E<lt>commentE<gt>\"*\"+[^*/\\en]* /* eat up '*'s not followed by '/'s */\n"
2662 " E<lt>commentE<gt>\\en ++line_num;\n"
2663 " E<lt>commentE<gt>\"*\"+\"/\" BEGIN(comment_caller);\n"
2664 msgstr ""
2665 " E<lt>comentarioE<gt>[^*\\en]* /* se come cualquier cosa que no sea un '*' */\n"
2666 " E<lt>comentarioE<gt>\"*\"+[^*/\\en]* /* se come '*'s que no continuen con '/'s */\n"
2667 " E<lt>comentarioE<gt>\\en ++num_linea;\n"
2668 " E<lt>comentarioE<gt>\"*\"+\"/\" BEGIN(invocador_comentario);\n"
2669
2670 #. type: Plain text
2671 #: original/man1/flex.1:1421
2672 msgid ""
2673 "Furthermore, you can access the current start condition using the integer-"
2674 "valued B<YY_START> macro. For example, the above assignments to "
2675 "I<comment_caller> could instead be written"
2676 msgstr ""
2677 "Además, puede acceder a la condición de arranque actual usando la macro de "
2678 "valor entero B<YY_START.> Por ejemplo, las asignaciones anteriores a "
2679 "I<invocador_comentario> podrían escribirse en su lugar como"
2680
2681 #. type: Plain text
2682 #: original/man1/flex.1:1424
2683 #, no-wrap
2684 msgid " comment_caller = YY_START;\n"
2685 msgstr " invocador_comentario = YY_START;\n"
2686
2687 #. type: Plain text
2688 #: original/man1/flex.1:1432
2689 msgid ""
2690 "Flex provides B<YYSTATE> as an alias for B<YY_START> (since that is what's "
2691 "used by AT&T I<lex).>"
2692 msgstr ""
2693 "Flex ofrece B<YYSTATE> como un alias para B<YY_START> (ya que es lo que usa "
2694 "I<lex> de AT&T)."
2695
2696 #. type: Plain text
2697 #: original/man1/flex.1:1435
2698 msgid ""
2699 "Note that start conditions do not have their own name-space; %s's and %x's "
2700 "declare names in the same fashion as #define's."
2701 msgstr ""
2702 "Fíjese que las condiciones de arranque no tienen su propio espacio de "
2703 "nombres; los %s's y %x's declaran nombres de la misma manera que con "
2704 "#define's."
2705
2706 #. type: Plain text
2707 #: original/man1/flex.1:1439
2708 msgid ""
2709 "Finally, here's an example of how to match C-style quoted strings using "
2710 "exclusive start conditions, including expanded escape sequences (but not "
2711 "including checking for a string that's too long):"
2712 msgstr ""
2713 "Finalmente, aquí hay un ejemplo de cómo emparejar cadenas entre comillas al "
2714 "estilo de C usando condiciones de arranque exclusivas, incluyendo secuencias "
2715 "de escape expandidas (pero sin incluir la comprobación de cadenas que son "
2716 "demasiado largas):"
2717
2718 #. type: Plain text
2719 #: original/man1/flex.1:1442
2720 #, no-wrap
2721 msgid " %x str\n"
2722 msgstr " %x str\n"
2723
2724 #. type: Plain text
2725 #: original/man1/flex.1:1446
2726 #, no-wrap
2727 msgid ""
2728 " %%\n"
2729 " char string_buf[MAX_STR_CONST];\n"
2730 " char *string_buf_ptr;\n"
2731 msgstr ""
2732 " %%\n"
2733 " char string_buf[MAX_STR_CONST];\n"
2734 " char *string_buf_ptr;\n"
2735
2736 #. type: Plain text
2737 #: original/man1/flex.1:1449
2738 #, no-wrap
2739 msgid " \\e\" string_buf_ptr = string_buf; BEGIN(str);\n"
2740 msgstr " \\e\" string_buf_ptr = string_buf; BEGIN(str);\n"
2741
2742 #. type: Plain text
2743 #: original/man1/flex.1:1457
2744 #, no-wrap
2745 msgid ""
2746 " E<lt>strE<gt>\\e\" { /* saw closing quote - all done */\n"
2747 " BEGIN(INITIAL);\n"
2748 " *string_buf_ptr = '\\e0';\n"
2749 " /* return string constant token type and\n"
2750 " * value to parser\n"
2751 " */\n"
2752 " }\n"
2753 msgstr ""
2754 " E<lt>strE<gt>\\e\" { /* se vio la comilla que cierra - todo está hecho */\n"
2755 " BEGIN(INITIAL);\n"
2756 " *string_buf_ptr = '\\e0';\n"
2757 " /* devuelve un tipo de token de cadena constante y\n"
2758 " * el valor para el analizador sintáctico\n"
2759 " */\n"
2760 " }\n"
2761
2762 #. type: Plain text
2763 #: original/man1/flex.1:1462
2764 #, no-wrap
2765 msgid ""
2766 " E<lt>strE<gt>\\en {\n"
2767 " /* error - unterminated string constant */\n"
2768 " /* generate error message */\n"
2769 " }\n"
2770 msgstr ""
2771 " E<lt>strE<gt>\\en {\n"
2772 " /* error - cadena constante sin finalizar */\n"
2773 " /* genera un mensaje de error */\n"
2774 " }\n"
2775
2776 #. type: Plain text
2777 #: original/man1/flex.1:1466
2778 #, no-wrap
2779 msgid ""
2780 " E<lt>strE<gt>\\e\\e[0-7]{1,3} {\n"
2781 " /* octal escape sequence */\n"
2782 " int result;\n"
2783 msgstr ""
2784 " E<lt>strE<gt>\\e\\e[0-7]{1,3} {\n"
2785 " /* secuencia de escape en octal */\n"
2786 " int resultado;\n"
2787
2788 #. type: Plain text
2789 #: original/man1/flex.1:1468
2790 #, no-wrap
2791 msgid " (void) sscanf( yytext + 1, \"%o\", &result );\n"
2792 msgstr " (void) sscanf( yytext + 1, \"%o\", &resultado );\n"
2793
2794 #. type: Plain text
2795 #: original/man1/flex.1:1471
2796 #, no-wrap
2797 msgid ""
2798 " if ( result E<gt> 0xff )\n"
2799 " /* error, constant is out-of-bounds */\n"
2800 msgstr ""
2801 " if ( resultado E<gt> 0xff )\n"
2802 " /* error, constante fuera de rango */\n"
2803
2804 #. type: Plain text
2805 #: original/man1/flex.1:1474
2806 #, no-wrap
2807 msgid ""
2808 " *string_buf_ptr++ = result;\n"
2809 " }\n"
2810 msgstr ""
2811 " *string_buf_ptr++ = resultado;\n"
2812 " }\n"
2813
2814 #. type: Plain text
2815 #: original/man1/flex.1:1480
2816 #, no-wrap
2817 msgid ""
2818 " E<lt>strE<gt>\\e\\e[0-9]+ {\n"
2819 " /* generate error - bad escape sequence; something\n"
2820 " * like '\\e48' or '\\e0777777'\n"
2821 " */\n"
2822 " }\n"
2823 msgstr ""
2824 " E<lt>strE<gt>\\e\\e[0-9]+ {\n"
2825 " /* genera un error - secuencia de escape errónea;\n"
2826 " * algo como '\\e48' o '\\e0777777'\n"
2827 " */\n"
2828 " }\n"
2829
2830 #. type: Plain text
2831 #: original/man1/flex.1:1486
2832 #, no-wrap
2833 msgid ""
2834 " E<lt>strE<gt>\\e\\en *string_buf_ptr++ = '\\en';\n"
2835 " E<lt>strE<gt>\\e\\et *string_buf_ptr++ = '\\et';\n"
2836 " E<lt>strE<gt>\\e\\er *string_buf_ptr++ = '\\er';\n"
2837 " E<lt>strE<gt>\\e\\eb *string_buf_ptr++ = '\\eb';\n"
2838 " E<lt>strE<gt>\\e\\ef *string_buf_ptr++ = '\\ef';\n"
2839 msgstr ""
2840 " E<lt>strE<gt>\\e\\en *string_buf_ptr++ = '\\en';\n"
2841 " E<lt>strE<gt>\\e\\et *string_buf_ptr++ = '\\et';\n"
2842 " E<lt>strE<gt>\\e\\er *string_buf_ptr++ = '\\er';\n"
2843 " E<lt>strE<gt>\\e\\eb *string_buf_ptr++ = '\\eb';\n"
2844 " E<lt>strE<gt>\\e\\ef *string_buf_ptr++ = '\\ef';\n"
2845
2846 #. type: Plain text
2847 #: original/man1/flex.1:1488
2848 #, no-wrap
2849 msgid " E<lt>strE<gt>\\e\\e(.|\\en) *string_buf_ptr++ = yytext[1];\n"
2850 msgstr " E<lt>strE<gt>\\e\\e(.|\\en) *string_buf_ptr++ = yytext[1];\n"
2851
2852 #. type: Plain text
2853 #: original/man1/flex.1:1491
2854 #, no-wrap
2855 msgid ""
2856 " E<lt>strE<gt>[^\\e\\e\\en\\e\"]+ {\n"
2857 " char *yptr = yytext;\n"
2858 msgstr ""
2859 " E<lt>strE<gt>[^\\e\\e\\en\\e\"]+ {\n"
2860 " char *yptr = yytext;\n"
2861
2862 #. type: Plain text
2863 #: original/man1/flex.1:1495
2864 #, no-wrap
2865 msgid ""
2866 " while ( *yptr )\n"
2867 " *string_buf_ptr++ = *yptr++;\n"
2868 " }\n"
2869 msgstr ""
2870 " while ( *yptr )\n"
2871 " *string_buf_ptr++ = *yptr++;\n"
2872 " }\n"
2873
2874 #. type: Plain text
2875 #: original/man1/flex.1:1504
2876 msgid ""
2877 "Often, such as in some of the examples above, you wind up writing a whole "
2878 "bunch of rules all preceded by the same start condition(s). Flex makes this "
2879 "a little easier and cleaner by introducing a notion of start condition "
2880 "I<scope.> A start condition scope is begun with:"
2881 msgstr ""
2882 "A menudo, como en alguno de los ejemplos anteriores, uno acaba escribiendo un "
2883 "buen número de reglas todas precedidas por la(s) misma(s) condición(es) de "
2884 "arranque. Flex hace esto un poco más fácil y claro introduciendo la noción "
2885 "de I<ámbito> de la condición de arranque. Un ámbito de condición de arranque "
2886 "comienza con:"
2887
2888 #. type: Plain text
2889 #: original/man1/flex.1:1507
2890 #, no-wrap
2891 msgid " E<lt>SCsE<gt>{\n"
2892 msgstr " E<lt>SCsE<gt>{\n"
2893
2894 #. type: Plain text
2895 #: original/man1/flex.1:1519
2896 msgid ""
2897 "where I<SCs> is a list of one or more start conditions. Inside the start "
2898 "condition scope, every rule automatically has the prefix I<E<lt>SCsE<gt>> "
2899 "applied to it, until a I<'}'> which matches the initial I<'{'.> So, for "
2900 "example,"
2901 msgstr ""
2902 "Donde I<SCs> es una lista de una o más condiciones de arranque. Dentro del "
2903 "ámbito de la condición de arranque, cada regla automáticamente tiene el "
2904 "prefijo I<E<lt>SCsE<gt>> aplicado a esta, hasta un I<'}'> que corresponda con "
2905 "el I<'{'> inicial. Así, por ejemplo,"
2906
2907 #. type: Plain text
2908 #: original/man1/flex.1:1527
2909 #, no-wrap
2910 msgid ""
2911 " E<lt>ESCE<gt>{\n"
2912 " \"\\e\\en\" return '\\en';\n"
2913 " \"\\e\\er\" return '\\er';\n"
2914 " \"\\e\\ef\" return '\\ef';\n"
2915 " \"\\e\\e0\" return '\\e0';\n"
2916 " }\n"
2917 msgstr ""
2918 " E<lt>ESCE<gt>{\n"
2919 " \"\\e\\en\" return '\\en';\n"
2920 " \"\\e\\er\" return '\\er';\n"
2921 " \"\\e\\ef\" return '\\ef';\n"
2922 " \"\\e\\e0\" return '\\e0';\n"
2923 " }\n"
2924
2925 #. type: Plain text
2926 #: original/man1/flex.1:1530
2927 msgid "is equivalent to:"
2928 msgstr "es equivalente a:"
2929
2930 #. type: Plain text
2931 #: original/man1/flex.1:1536
2932 #, no-wrap
2933 msgid ""
2934 " E<lt>ESCE<gt>\"\\e\\en\" return '\\en';\n"
2935 " E<lt>ESCE<gt>\"\\e\\er\" return '\\er';\n"
2936 " E<lt>ESCE<gt>\"\\e\\ef\" return '\\ef';\n"
2937 " E<lt>ESCE<gt>\"\\e\\e0\" return '\\e0';\n"
2938 msgstr ""
2939 " E<lt>ESCE<gt>\"\\e\\en\" return '\\en';\n"
2940 " E<lt>ESCE<gt>\"\\e\\er\" return '\\er';\n"
2941 " E<lt>ESCE<gt>\"\\e\\ef\" return '\\ef';\n"
2942 " E<lt>ESCE<gt>\"\\e\\e0\" return '\\e0';\n"
2943
2944 #. type: Plain text
2945 #: original/man1/flex.1:1539
2946 msgid "Start condition scopes may be nested."
2947 msgstr "Los ámbitos de las condiciones de arranque pueden anidarse."
2948
2949 #. type: Plain text
2950 #: original/man1/flex.1:1541
2951 msgid ""
2952 "Three routines are available for manipulating stacks of start conditions:"
2953 msgstr ""
2954 "Están disponibles tres rutinas para manipular pilas de condiciones de "
2955 "arranque:"
2956
2957 #. type: TP
2958 #: original/man1/flex.1:1541
2959 #, no-wrap
2960 msgid "B<void yy_push_state(int new_state)>"
2961 msgstr "B<void yy_push_state(int new_state)>"
2962
2963 #. type: Plain text
2964 #: original/man1/flex.1:1549
2965 msgid ""
2966 "pushes the current start condition onto the top of the start condition stack "
2967 "and switches to I<new_state> as though you had used B<BEGIN new_state> "
2968 "(recall that start condition names are also integers)."
2969 msgstr ""
2970 "empuja la condición de arranque actual al tope de la pila de las condiciones "
2971 "de arranque y cambia a I<new_state> como si hubiera utilizado B<BEGIN "
2972 "new_state> (recuerde que los nombres de las condiciones de arranque también "
2973 "son enteros)."
2974
2975 #. type: TP
2976 #: original/man1/flex.1:1549
2977 #, no-wrap
2978 msgid "B<void yy_pop_state()>"
2979 msgstr "B<void yy_pop_state()>"
2980
2981 #. type: Plain text
2982 #: original/man1/flex.1:1553
2983 msgid "pops the top of the stack and switches to it via B<BEGIN.>"
2984 msgstr "extrae el tope de la pila y cambia a este mediante un B<BEGIN.>"
2985
2986 #. type: TP
2987 #: original/man1/flex.1:1553
2988 #, no-wrap
2989 msgid "B<int yy_top_state()>"
2990 msgstr "B<int yy_top_state()>"
2991
2992 #. type: Plain text
2993 #: original/man1/flex.1:1556
2994 msgid "returns the top of the stack without altering the stack's contents."
2995 msgstr "devuelve el tope de la pila sin alterar el contenido de la pila."
2996
2997 #. type: Plain text
2998 #: original/man1/flex.1:1559
2999 msgid ""
3000 "The start condition stack grows dynamically and so has no built-in size "
3001 "limitation. If memory is exhausted, program execution aborts."
3002 msgstr ""
3003 "La pila de las condiciones de arranque crece dinámicamente y por ello no "
3004 "tiene asociada ninguna limitación de tamaño. Si la memoria se agota, se "
3005 "aborta la ejecución del programa."
3006
3007 #. type: Plain text
3008 #: original/man1/flex.1:1563
3009 msgid ""
3010 "To use start condition stacks, your scanner must include a B<%option stack> "
3011 "directive (see Options below)."
3012 msgstr ""
3013 "Para usar pilas de condiciones de arranque, su analizador debe incluir una "
3014 "directiva B<%option stack> (ver Opciones más abajo)."
3015
3016 #. type: SH
3017 #: original/man1/flex.1:1563
3018 #, no-wrap
3019 msgid "MULTIPLE INPUT BUFFERS"
3020 msgstr "MÚLTIPLES BUFFERS DE ENTRADA"
3021
3022 #. type: Plain text
3023 #: original/man1/flex.1:1575
3024 msgid ""
3025 "Some scanners (such as those which support \"include\" files) require "
3026 "reading from several input streams. As I<flex> scanners do a large amount of "
3027 "buffering, one cannot control where the next input will be read from by "
3028 "simply writing a B<YY_INPUT> which is sensitive to the scanning context. "
3029 "B<YY_INPUT> is only called when the scanner reaches the end of its buffer, "
3030 "which may be a long time after scanning a statement such as an \"include\" "
3031 "which requires switching the input source."
3032 msgstr ""
3033 "Algunos analizadores (tales como aquellos que aceptan ficheros \"incluidos\") "
3034 "requieren la lectura de varios flujos de entrada. Ya que los analizadores de "
3035 "I<flex> hacen mucho uso de buffers, uno no puede controlar de dónde será "
3036 "leída la siguiente entrada escribiendo símplemente un B<YY_INPUT> que sea "
3037 "sensible al contexto del análisis. A B<YY_INPUT> sólo se le llama cuando el "
3038 "analizador alcanza el final de su buffer, que podría ser bastante tiempo "
3039 "después de haber analizado una sentencia como un \"include\" que requiere el "
3040 "cambio de la fuente de entrada."
3041
3042 #. type: Plain text
3043 #: original/man1/flex.1:1580
3044 msgid ""
3045 "To negotiate these sorts of problems, I<flex> provides a mechanism for "
3046 "creating and switching between multiple input buffers. An input buffer is "
3047 "created by using:"
3048 msgstr ""
3049 "Para solventar este tipo de problemas, I<flex> provee un mecanismo para crear "
3050 "y conmutar entre varios buffers de entrada. Un buffer de entrada se crea "
3051 "usando:"
3052
3053 #. type: Plain text
3054 #: original/man1/flex.1:1583
3055 #, no-wrap
3056 msgid " YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )\n"
3057 msgstr " YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )\n"
3058
3059 #. type: Plain text
3060 #: original/man1/flex.1:1619
3061 msgid ""
3062 "which takes a I<FILE> pointer and a size and creates a buffer associated with "
3063 "the given file and large enough to hold I<size> characters (when in doubt, "
3064 "use B<YY_BUF_SIZE> for the size). It returns a B<YY_BUFFER_STATE> handle, "
3065 "which may then be passed to other routines (see below). The "
3066 "B<YY_BUFFER_STATE> type is a pointer to an opaque B<struct yy_buffer_state> "
3067 "structure, so you may safely initialize YY_BUFFER_STATE variables to "
3068 "B<((YY_BUFFER_STATE) 0)> if you wish, and also refer to the opaque structure "
3069 "in order to correctly declare input buffers in source files other than that "
3070 "of your scanner. Note that the I<FILE> pointer in the call to "
3071 "B<yy_create_buffer> is only used as the value of I<yyin> seen by B<YY_INPUT;> "
3072 "if you redefine B<YY_INPUT> so it no longer uses I<yyin,> then you can safely "
3073 "pass a nil I<FILE> pointer to B<yy_create_buffer.> You select a particular "
3074 "buffer to scan from using:"
3075 msgstr ""
3076 "que toma un puntero a I<FILE> y un tamaño \"size\" y crea un buffer asociado "
3077 "con el fichero dado y lo suficientemente grande para mantener I<size> "
3078 "caracteres (cuando dude, use B<YY_BUF_SIZE> para el tamaño). Este devuelve "
3079 "un handle B<YY_BUFFER_STATE,> que podría pasarse a otras rutinas (ver más "
3080 "abajo). El tipo de B<YY_BUFFER_STATE> es un puntero a una estructura opaca "
3081 "B<struct yy_buffer_state,> de manera que podría inicializar de forma segura "
3082 "variables YY_BUFFER_STATE a B<((YY_BUFFER_STATE) 0)> si lo desea, y también "
3083 "hacer referencia a la estructura opaca para declarar correctamente buffers de "
3084 "entrada en otros ficheros fuente además de los de su analizador. Fíjese que "
3085 "el puntero a I<FILE> en la llamada a B<yy_create_buffer> se usa solamente "
3086 "como el valor de I<yyin> visto por B<YY_INPUT;> si usted redefine B<YY_INPUT> "
3087 "de manera que no use más a I<yyin,> entonces puede pasar de forma segura un "
3088 "puntero I<FILE> nulo a B<yy_create_buffer.> Se selecciona un buffer en "
3089 "particular a analizar utilizando:"
3090
3091 #. type: Plain text
3092 #: original/man1/flex.1:1622
3093 #, no-wrap
3094 msgid " void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )\n"
3095 msgstr " void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )\n"
3096
3097 #. type: Plain text
3098 #: original/man1/flex.1:1639
3099 msgid ""
3100 "switches the scanner's input buffer so subsequent tokens will come from "
3101 "I<new_buffer.> Note that B<yy_switch_to_buffer()> may be used by yywrap() to "
3102 "set things up for continued scanning, instead of opening a new file and "
3103 "pointing I<yyin> at it. Note also that switching input sources via either "
3104 "B<yy_switch_to_buffer()> or B<yywrap()> does I<not> change the start "
3105 "condition."
3106 msgstr ""
3107 "conmuta el buffer de entrada del analizador de manera que los tokens "
3108 "posteriores provienen de I<nuevo_buffer.> Fíjese que B<yy_switch_to_buffer()> "
3109 "podría usarlo yywrap() para arreglar las cosas para un análisis continuo, en "
3110 "lugar de abrir un nuevo fichero y que I<yyin> apunte a este. Fíjese también "
3111 "que cambiar las fuentes de entrada ya sea por medio de "
3112 "B<yy_switch_to_buffer()> o de B<yywrap()> I<no> cambia la condición de "
3113 "arranque."
3114
3115 #. type: Plain text
3116 #: original/man1/flex.1:1642
3117 #, no-wrap
3118 msgid " void yy_delete_buffer( YY_BUFFER_STATE buffer )\n"
3119 msgstr " void yy_delete_buffer( YY_BUFFER_STATE buffer )\n"
3120
3121 #. type: Plain text
3122 #: original/man1/flex.1:1648
3123 msgid ""
3124 "is used to reclaim the storage associated with a buffer. ( B<buffer> can be "
3125 "nil, in which case the routine does nothing.) You can also clear the current "
3126 "contents of a buffer using:"
3127 msgstr ""
3128 "se usa para recuperar el almacenamiento asociado a un buffer. (El B<buffer> "
3129 "puede ser nulo, en cuyo caso la rutina no hace nada.) Puede también limpiar "
3130 "el contenido actual de un buffer usando:"
3131
3132 #. type: Plain text
3133 #: original/man1/flex.1:1651
3134 #, no-wrap
3135 msgid " void yy_flush_buffer( YY_BUFFER_STATE buffer )\n"
3136 msgstr " void yy_flush_buffer( YY_BUFFER_STATE buffer )\n"
3137
3138 #. type: Plain text
3139 #: original/man1/flex.1:1657
3140 msgid ""
3141 "This function discards the buffer's contents, so the next time the scanner "
3142 "attempts to match a token from the buffer, it will first fill the buffer anew "
3143 "using B<YY_INPUT.>"
3144 msgstr ""
3145 "Esta función descarta el contenido del buffer, de manera que la próxima vez "
3146 "que el analizador intente emparejar un token desde el buffer, este primero "
3147 "rellenará el buffer utilizando B<YY_INPUT.>"
3148
3149 #. type: Plain text
3150 #: original/man1/flex.1:1666
3151 msgid ""
3152 "B<yy_new_buffer()> is an alias for B<yy_create_buffer(),> provided for "
3153 "compatibility with the C++ use of I<new> and I<delete> for creating and "
3154 "destroying dynamic objects."
3155 msgstr ""
3156 "B<yy_new_buffer()> es un alias de B<yy_create_buffer(),> que se ofrece por "
3157 "compatibilidad con el uso en C++ de I<new> y I<delete> para crear y destruir "
3158 "objetos dinámicos."
3159
3160 #. type: Plain text
3161 #: original/man1/flex.1:1672
3162 msgid ""
3163 "Finally, the B<YY_CURRENT_BUFFER> macro returns a B<YY_BUFFER_STATE> handle "
3164 "to the current buffer."
3165 msgstr ""
3166 "Finalmente, la macro B<YY_CURRENT_BUFFER> retorna un handle "
3167 "B<YY_BUFFER_STATE> al buffer actual."
3168
3169 #. type: Plain text
3170 #: original/man1/flex.1:1677
3171 msgid ""
3172 "Here is an example of using these features for writing a scanner which "
3173 "expands include files (the B<E<lt>E<lt>EOFE<gt>E<gt>> feature is discussed "
3174 "below):"
3175 msgstr ""
3176 "Aquí hay un ejemplo del uso de estas propiedades para escribir un analizador "
3177 "que expande ficheros incluidos (la propiedad B<E<lt>E<lt>EOFE<gt>E<gt>> se "
3178 "comenta más abajo):"
3179
3180 #. type: Plain text
3181 #: original/man1/flex.1:1683
3182 #, no-wrap
3183 msgid ""
3184 " /* the \"incl\" state is used for picking up the name\n"
3185 " * of an include file\n"
3186 " */\n"
3187 " %x incl\n"
3188 msgstr ""
3189 " /* el estado \"incl\" se utiliza para obtener el nombre\n"
3190 " * del fichero a incluir.\n"
3191 " */\n"
3192 " %x incl\n"
3193
3194 #. type: Plain text
3195 #: original/man1/flex.1:1689
3196 #, no-wrap
3197 msgid ""
3198 " %{\n"
3199 " #define MAX_INCLUDE_DEPTH 10\n"
3200 " YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];\n"
3201 " int include_stack_ptr = 0;\n"
3202 " %}\n"
3203 msgstr ""
3204 " %{\n"
3205 " #define MAX_INCLUDE_DEPTH 10\n"
3206 " YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH];\n"
3207 " int include_stack_ptr = 0;\n"
3208 " %}\n"
3209
3210 #. type: Plain text
3211 #: original/man1/flex.1:1692
3212 #, no-wrap
3213 msgid ""
3214 " %%\n"
3215 " include BEGIN(incl);\n"
3216 msgstr ""
3217 " %%\n"
3218 " include BEGIN(incl);\n"
3219
3220 #. type: Plain text
3221 #: original/man1/flex.1:1695
3222 #, no-wrap
3223 msgid ""
3224 " [a-z]+ ECHO;\n"
3225 " [^a-z\\en]*\\en? ECHO;\n"
3226 msgstr ""
3227 " [a-z]+ ECHO;\n"
3228 " [^a-z\\en]*\\en? ECHO;\n"
3229
3230 #. type: Plain text
3231 #: original/man1/flex.1:1703
3232 #, no-wrap
3233 msgid ""
3234 " E<lt>inclE<gt>[ \\et]* /* eat the whitespace */\n"
3235 " E<lt>inclE<gt>[^ \\et\\en]+ { /* got the include file name */\n"
3236 " if ( include_stack_ptr E<gt>= MAX_INCLUDE_DEPTH )\n"
3237 " {\n"
3238 " fprintf( stderr, \"Includes nested too deeply\" );\n"
3239 " exit( 1 );\n"
3240 " }\n"
3241 msgstr ""
3242 " E<lt>inclE<gt>[ \\et]* /* se come los espacios en blanco */\n"
3243 " E<lt>inclE<gt>[^ \\et\\en]+ { /* obtiene el nombre de fichero a incluir */\n"
3244 " if ( include_stack_ptr E<gt>= MAX_INCLUDE_DEPTH )\n"
3245 " {\n"
3246 " fprintf( stderr, \"Demasiados include anidados\" );\n"
3247 " exit( 1 );\n"
3248 " }\n"
3249
3250 #. type: Plain text
3251 #: original/man1/flex.1:1706
3252 #, no-wrap
3253 msgid ""
3254 " include_stack[include_stack_ptr++] =\n"
3255 " YY_CURRENT_BUFFER;\n"
3256 msgstr ""
3257 " include_stack[include_stack_ptr++] =\n"
3258 " YY_CURRENT_BUFFER;\n"
3259
3260 #. type: Plain text
3261 #: original/man1/flex.1:1708
3262 #, no-wrap
3263 msgid " yyin = fopen( yytext, \"r\" );\n"
3264 msgstr " yyin = fopen( yytext, \"r\" );\n"
3265
3266 #. type: Plain text
3267 #: original/man1/flex.1:1711
3268 #, no-wrap
3269 msgid ""
3270 " if ( ! yyin )\n"
3271 " error( ... );\n"
3272 msgstr ""
3273 " if ( ! yyin )\n"
3274 " error( ... );\n"
3275
3276 #. type: Plain text
3277 #: original/man1/flex.1:1714
3278 #, no-wrap
3279 msgid ""
3280 " yy_switch_to_buffer(\n"
3281 " yy_create_buffer( yyin, YY_BUF_SIZE ) );\n"
3282 msgstr ""
3283 " yy_switch_to_buffer(\n"
3284 " yy_create_buffer( yyin, YY_BUF_SIZE ) );\n"
3285
3286 #. type: Plain text
3287 #: original/man1/flex.1:1717
3288 #, no-wrap
3289 msgid ""
3290 " BEGIN(INITIAL);\n"
3291 " }\n"
3292 msgstr ""
3293 " BEGIN(INITIAL);\n"
3294 " }\n"
3295
3296 #. type: Plain text
3297 #: original/man1/flex.1:1723
3298 #, no-wrap
3299 msgid ""
3300 " E<lt>E<lt>EOFE<gt>E<gt> {\n"
3301 " if ( --include_stack_ptr E<lt> 0 )\n"
3302 " {\n"
3303 " yyterminate();\n"
3304 " }\n"
3305 msgstr ""
3306 " E<lt>E<lt>EOFE<gt>E<gt> {\n"
3307 " if ( --include_stack_ptr E<lt> 0 )\n"
3308 " {\n"
3309 " yyterminate();\n"
3310 " }\n"
3311
3312 #. type: Plain text
3313 #: original/man1/flex.1:1731
3314 #, no-wrap
3315 msgid ""
3316 " else\n"
3317 " {\n"
3318 " yy_delete_buffer( YY_CURRENT_BUFFER );\n"
3319 " yy_switch_to_buffer(\n"
3320 " include_stack[include_stack_ptr] );\n"
3321 " }\n"
3322 " }\n"
3323 msgstr ""
3324 " else\n"
3325 " {\n"
3326 " yy_delete_buffer( YY_CURRENT_BUFFER );\n"
3327 " yy_switch_to_buffer(\n"
3328 " include_stack[include_stack_ptr] );\n"
3329 " }\n"
3330 " }\n"
3331
3332 #. type: Plain text
3333 #: original/man1/flex.1:1744
3334 msgid ""
3335 "Three routines are available for setting up input buffers for scanning in-"
3336 "memory strings instead of files. All of them create a new input buffer for "
3337 "scanning the string, and return a corresponding B<YY_BUFFER_STATE> handle "
3338 "(which you should delete with B<yy_delete_buffer()> when done with it). They "
3339 "also switch to the new buffer using B<yy_switch_to_buffer(),> so the next "
3340 "call to B<yylex()> will start scanning the string."
3341 msgstr ""
3342 "Se dispone de tres rutinas para preparar buffers de entrada para el análisis "
3343 "de cadenas en memoria en lugar de archivos. Todas estas crean un nuevo "
3344 "buffer de entrada para analizar la cadena, y devuelven el correspondiente "
3345 "handle B<YY_BUFFER_STATE> (que usted debería borrar con B<yy_delete_buffer()> "
3346 "cuando termine con él). Estas también conmutan el nuevo buffer usando "
3347 "B<yy_switch_to_buffer(),> de manera que la próxima llamada a B<yylex()> "
3348 "comenzará analizando la cadena."
3349
3350 #. type: TP
3351 #: original/man1/flex.1:1744
3352 #, no-wrap
3353 msgid "B<yy_scan_string(const char *str)>"
3354 msgstr "B<yy_scan_string(const char *str)>"
3355
3356 #. type: Plain text
3357 #: original/man1/flex.1:1747
3358 msgid "scans a NUL-terminated string."
3359 msgstr "analiza una cadena terminada en nulo."
3360
3361 #. type: TP
3362 #: original/man1/flex.1:1747
3363 #, no-wrap
3364 msgid "B<yy_scan_bytes(const char *bytes, int len)>"
3365 msgstr "B<yy_scan_bytes(const char *bytes, int len)>"
3366
3367 #. type: Plain text
3368 #: original/man1/flex.1:1754
3369 msgid ""
3370 "scans I<len> bytes (including possibly NUL's) starting at location I<bytes.>"
3371 msgstr ""
3372 "analiza I<len> bytes (incluyendo posibles NUL's) comenzando desde el punto "
3373 "I<bytes.>"
3374
3375 #. type: Plain text
3376 #: original/man1/flex.1:1761
3377 msgid ""
3378 "Note that both of these functions create and scan a I<copy> of the string or "
3379 "bytes. (This may be desirable, since B<yylex()> modifies the contents of the "
3380 "buffer it is scanning.) You can avoid the copy by using:"
3381 msgstr ""
3382 "Fíjese que ambas de estas funciones crean y analizan una I<copia> de la "
3383 "cadena o bytes. (Esto podría ser deseable, ya que B<yylex()> modifica el "
3384 "contenido del buffer que está analizado.) Usted puede evitar la copia "
3385 "utilizando:"
3386
3387 #. type: TP
3388 #: original/man1/flex.1:1761
3389 #, no-wrap
3390 msgid "B<yy_scan_buffer(char *base, yy_size_t size)>"
3391 msgstr "B<yy_scan_buffer(char *base, yy_size_t size)>"
3392
3393 #. type: Plain text
3394 #: original/man1/flex.1:1778
3395 msgid ""
3396 "which scans in place the buffer starting at I<base,> consisting of I<size> "
3397 "bytes, the last two bytes of which I<must> be B<YY_END_OF_BUFFER_CHAR> (ASCII "
3398 "NUL). These last two bytes are not scanned; thus, scanning consists of "
3399 "B<base[0]> through B<base[size-2],> inclusive."
3400 msgstr ""
3401 "que analiza in situ el buffer comenzando en I<base,> que consiste de I<size> "
3402 "bytes, donde los dos últimos bytes I<deben> ser B<YY_END_OF_BUFFER_CHAR> "
3403 "(ASCII NUL). Estos dos últimos bytes no se analizan; así, el análisis consta "
3404 "de B<base[0]> hasta B<base[size-2],> inclusive."
3405
3406 #. type: Plain text
3407 #: original/man1/flex.1:1786
3408 msgid ""
3409 "If you fail to set up I<base> in this manner (i.e., forget the final two "
3410 "B<YY_END_OF_BUFFER_CHAR> bytes), then B<yy_scan_buffer()> returns a nil "
3411 "pointer instead of creating a new input buffer."
3412 msgstr ""
3413 "Si se equivoca al disponer I<base> de esta manera (es decir, olvidar los dos "
3414 "B<YY_END_OF_BUFFER_CHAR> bytes finales), entonces B<yy_scan_buffer()> "
3415 "devuelve un puntero nulo en lugar de crear un nuevo buffer de entrada."
3416
3417 #. type: Plain text
3418 #: original/man1/flex.1:1791
3419 msgid ""
3420 "The type B<yy_size_t> is an integral type to which you can cast an integer "
3421 "expression reflecting the size of the buffer."
3422 msgstr ""
3423 "El tipo B<yy_size_t> es un tipo entero con el que puede hacer una conversión "
3424 "a una expresión entera para reflejar el tamaño del buffer."
3425
3426 #. type: SH
3427 #: original/man1/flex.1:1791
3428 #, no-wrap
3429 msgid "END-OF-FILE RULES"
3430 msgstr "REGLAS DE FIN-DE-FICHERO"
3431
3432 #. type: Plain text
3433 #: original/man1/flex.1:1797
3434 msgid ""
3435 "The special rule \"E<lt>E<lt>EOFE<gt>E<gt>\" indicates actions which are to "
3436 "be taken when an end-of-file is encountered and yywrap() returns non-zero (i."
3437 "e., indicates no further files to process). The action must finish by doing "
3438 "one of four things:"
3439 msgstr ""
3440 "La regla especial \"E<lt>E<lt>EOFE<gt>E<gt>\" indica las acciones que deben "
3441 "tomarse cuando se encuentre un fin-de-fichero e yywrap() retorne un valor "
3442 "distinto de cero (es decir, indica que no quedan ficheros por procesar). La "
3443 "acción debe finalizar haciendo una de estas cuatro cosas:"
3444
3445 #. type: Plain text
3446 #: original/man1/flex.1:1804
3447 msgid ""
3448 "assigning I<yyin> to a new input file (in previous versions of flex, after "
3449 "doing the assignment you had to call the special action B<YY_NEW_FILE;> this "
3450 "is no longer necessary);"
3451 msgstr ""
3452 "asignando a I<yyin> un nuevo fichero de entrada (en versiones anteriores de "
3453 "flex, después de hacer la asignación debía llamar a la acción especial "
3454 "B<YY_NEW_FILE;> esto ya no es necesario);"
3455
3456 #. type: Plain text
3457 #: original/man1/flex.1:1808
3458 msgid "executing a I<return> statement;"
3459 msgstr "ejecutando una sentencia I<return;>"
3460
3461 #. type: Plain text
3462 #: original/man1/flex.1:1812
3463 msgid "executing the special B<yyterminate()> action;"
3464 msgstr "ejecutando la acción especial B<yyterminate();>"
3465
3466 #. type: Plain text
3467 #: original/man1/flex.1:1816
3468 msgid ""
3469 "or, switching to a new buffer using B<yy_switch_to_buffer()> as shown in the "
3470 "example above."
3471 msgstr ""
3472 "o, conmutando a un nuevo buffer usando B<yy_switch_to_buffer()> como se "
3473 "mostró en el ejemplo anterior."
3474
3475 #. type: Plain text
3476 #: original/man1/flex.1:1824
3477 msgid ""
3478 "E<lt>E<lt>EOFE<gt>E<gt> rules may not be used with other patterns; they may "
3479 "only be qualified with a list of start conditions. If an unqualified "
3480 "E<lt>E<lt>EOFE<gt>E<gt> rule is given, it applies to I<all> start conditions "
3481 "which do not already have E<lt>E<lt>EOFE<gt>E<gt> actions. To specify an "
3482 "E<lt>E<lt>EOFE<gt>E<gt> rule for only the initial start condition, use"
3483 msgstr ""
3484 "Las reglas E<lt>E<lt>EOFE<gt>E<gt> no deberían usarse con otros patrones; "
3485 "estas deberían calificarse con una lista de condiciones de arranque. Si se "
3486 "da una regla E<lt>E<lt>EOFE<gt>E<gt> sin calificar, esta se aplica a I<todas> "
3487 "las condiciones de arranque que no tengan ya acciones "
3488 "E<lt>E<lt>EOFE<gt>E<gt>. Para especificar una regla E<lt>E<lt>EOFE<gt>E<gt> "
3489 "solamente para la condición de arranque inicial, use"
3490
3491 #. type: Plain text
3492 #: original/man1/flex.1:1827
3493 #, no-wrap
3494 msgid " E<lt>INITIALE<gt>E<lt>E<lt>EOFE<gt>E<gt>\n"
3495 msgstr " E<lt>INITIALE<gt>E<lt>E<lt>EOFE<gt>E<gt>\n"
3496
3497 #. type: Plain text
3498 #: original/man1/flex.1:1832
3499 msgid ""
3500 "These rules are useful for catching things like unclosed comments. An "
3501 "example:"
3502 msgstr ""
3503 "Estas reglas son útiles para atrapar cosas tales como comentarios sin final. "
3504 "Un ejemplo:"
3505
3506 #. type: Plain text
3507 #: original/man1/flex.1:1836
3508 #, no-wrap
3509 msgid ""
3510 " %x quote\n"
3511 " %%\n"
3512 msgstr ""
3513 " %x comilla\n"
3514 " %%\n"
3515
3516 #. type: Plain text
3517 #: original/man1/flex.1:1838
3518 #, no-wrap
3519 msgid " ...other rules for dealing with quotes...\n"
3520 msgstr " ...otras reglas que tengan que ver con comillas...\n"
3521
3522 #. type: Plain text
3523 #: original/man1/flex.1:1849
3524 #, no-wrap
3525 msgid ""
3526 " E<lt>quoteE<gt>E<lt>E<lt>EOFE<gt>E<gt> {\n"
3527 " error( \"unterminated quote\" );\n"
3528 " yyterminate();\n"
3529 " }\n"
3530 " E<lt>E<lt>EOFE<gt>E<gt> {\n"
3531 " if ( *++filelist )\n"
3532 " yyin = fopen( *filelist, \"r\" );\n"
3533 " else\n"
3534 " yyterminate();\n"
3535 " }\n"
3536 msgstr ""
3537 " E<lt>comillaE<gt>E<lt>E<lt>EOFE<gt>E<gt> {\n"
3538 " error( \"comilla sin cerrar\" );\n"
3539 " yyterminate();\n"
3540 " }\n"
3541 " E<lt>E<lt>EOFE<gt>E<gt> {\n"
3542 " if ( *++filelist )\n"
3543 " yyin = fopen( *filelist, \"r\" );\n"
3544 " else\n"
3545 " yyterminate();\n"
3546 " }\n"
3547
3548 #. type: SH
3549 #: original/man1/flex.1:1851
3550 #, no-wrap
3551 msgid "MISCELLANEOUS MACROS"
3552 msgstr "MACROS MISCELÁNEAS"
3553
3554 #. type: Plain text
3555 #: original/man1/flex.1:1864
3556 msgid ""
3557 "The macro B<YY_USER_ACTION> can be defined to provide an action which is "
3558 "always executed prior to the matched rule's action. For example, it could be "
3559 "#define'd to call a routine to convert yytext to lower-case. When "
3560 "B<YY_USER_ACTION> is invoked, the variable I<yy_act> gives the number of the "
3561 "matched rule (rules are numbered starting with 1). Suppose you want to "
3562 "profile how often each of your rules is matched. The following would do the "
3563 "trick:"
3564 msgstr ""
3565 "La macro B<YY_USER_ACTION> puede definirse para indicar una acción que "
3566 "siempre se ejecuta antes de la acción de la regla emparejada. Por ejemplo, "
3567 "podría declararse con #define para que llame a una rutina que convierta "
3568 "yytext a minúsculas. Cuando se invoca a B<YY_USER_ACTION,> la variable "
3569 "I<yy_act> da el número de la regla emparejada (las reglas están numeradas "
3570 "comenzando en 1). Suponga que quiere medir la frecuencia con la que sus "
3571 "reglas son emparejadas. Lo que viene a continuación podría hacer este truco:"
3572
3573 #. type: Plain text
3574 #: original/man1/flex.1:1867
3575 #, no-wrap
3576 msgid " #define YY_USER_ACTION ++ctr[yy_act]\n"
3577 msgstr " #define YY_USER_ACTION ++ctr[yy_act]\n"
3578
3579 #. type: Plain text
3580 #: original/man1/flex.1:1880
3581 msgid ""
3582 "where I<ctr> is an array to hold the counts for the different rules. Note "
3583 "that the macro B<YY_NUM_RULES> gives the total number of rules (including the "
3584 "default rule, even if you use B<-s),> so a correct declaration for I<ctr> is:"
3585 msgstr ""
3586 "donde I<ctr> en un vector que mantiene la cuenta para las diferentes reglas. "
3587 "Fíjese que la macro B<YY_NUM_RULES> da el número total de reglas (incluyendo "
3588 "la regla por defecto, incluso si usted usa B<-s),> así que una declaración "
3589 "correcta para I<ctr> es:"
3590
3591 #. type: Plain text
3592 #: original/man1/flex.1:1883
3593 #, no-wrap
3594 msgid " int ctr[YY_NUM_RULES];\n"
3595 msgstr " int ctr[YY_NUM_RULES];\n"
3596
3597 #. type: Plain text
3598 #: original/man1/flex.1:1892
3599 msgid ""
3600 "The macro B<YY_USER_INIT> may be defined to provide an action which is always "
3601 "executed before the first scan (and before the scanner's internal "
3602 "initializations are done). For example, it could be used to call a routine "
3603 "to read in a data table or open a logging file."
3604 msgstr ""
3605 "La macro B<YY_USER_INIT> podría definirse para indicar una acción que siempre "
3606 "se ejecuta antes del primer análisis (y antes de que se haga la "
3607 "inicialización interna del analizador). Por ejemplo, este podría usarse para "
3608 "llamar a una rutina que lea una tabla de datos o abrir un fichero de registro."
3609
3610 #. type: Plain text
3611 #: original/man1/flex.1:1912
3612 msgid ""
3613 "The macro B<yy_set_interactive(is_interactive)> can be used to control "
3614 "whether the current buffer is considered I<interactive.> An interactive "
3615 "buffer is processed more slowly, but must be used when the scanner's input "
3616 "source is indeed interactive to avoid problems due to waiting to fill buffers "
3617 "(see the discussion of the B<-I> flag below). A non-zero value in the macro "
3618 "invocation marks the buffer as interactive, a zero value as non-interactive. "
3619 "Note that use of this macro overrides B<%option always-interactive> or B<"
3620 "%option never-interactive> (see Options below). B<yy_set_interactive()> must "
3621 "be invoked prior to beginning to scan the buffer that is (or is not) to be "
3622 "considered interactive."
3623 msgstr ""
3624 "La macro B<yy_set_interactive(is_interactive)> se puede usar para controlar "
3625 "si el buffer actual se considera I<interactivo.> Un buffer interactivo se "
3626 "procesa más lentamente, pero debe usarse cuando la fuente de entrada del "
3627 "analizador es realmente interactiva para evitar problemas debidos a la espera "
3628 "para el llenado de los buffers (ver el comentario de la bandera B<-I> más "
3629 "abajo). Un valor distinto de cero en la invocación de la macro marcará el "
3630 "buffer como interactivo, un valor de cero como no-interactivo. Fíjese que el "
3631 "uso de esta macro no tiene en cuenta B<%option always-interactive> o B<"
3632 "%option never-interactive> (ver Opciones más abajo). B<yy_set_interactive()> "
3633 "debe invocarse antes del comienzo del análisis del buffer que es considerado "
3634 "(o no) interactivo."
3635
3636 #. type: Plain text
3637 #: original/man1/flex.1:1918
3638 msgid ""
3639 "The macro B<yy_set_bol(at_bol)> can be used to control whether the current "
3640 "buffer's scanning context for the next token match is done as though at the "
3641 "beginning of a line. A non-zero macro argument makes rules anchored with"
3642 msgstr ""
3643 "La macro B<yy_set_bol(at_bol)> puede usarse para controlar si el contexto del "
3644 "buffer de análisis actual para el próximo emparejamiento de token se hace "
3645 "como si se encontrara al principio de una línea. Un argumento de la macro "
3646 "distinto de cero hace activas a las reglas sujetas a '^', mientras que un "
3647 "argumento igual a cero hacer inactivas a las reglas con '^'."
3648
3649 #. type: Plain text
3650 #: original/man1/flex.1:1924
3651 msgid ""
3652 "The macro B<YY_AT_BOL()> returns true if the next token scanned from the "
3653 "current buffer will have '^' rules active, false otherwise."
3654 msgstr ""
3655 "La macro B<YY_AT_BOL()> devuelve verdadero si el próximo token analizado a "
3656 "partir del buffer actual tendrá activas las reglas '^', de otra manera falso."
3657
3658 #. type: Plain text
3659 #: original/man1/flex.1:1939
3660 msgid ""
3661 "In the generated scanner, the actions are all gathered in one large switch "
3662 "statement and separated using B<YY_BREAK,> which may be redefined. By "
3663 "default, it is simply a \"break\", to separate each rule's action from the "
3664 "following rule's. Redefining B<YY_BREAK> allows, for example, C++ users to "
3665 "#define YY_BREAK to do nothing (while being very careful that every rule ends "
3666 "with a \"break\" or a \"return\"!) to avoid suffering from unreachable "
3667 "statement warnings where because a rule's action ends with \"return\", the "
3668 "B<YY_BREAK> is inaccessible."
3669 msgstr ""
3670 "En el analizador generado, las acciones están recogidas en una gran sentencia "
3671 "switch y separadas usando B<YY_BREAK,> que puede ser redefinida. Por "
3672 "defecto, este es símplemente un \"break\", para separar la acción de cada "
3673 "regla de las reglas que le siguen. Redefiniendo B<YY_BREAK> permite, por "
3674 "ejemplo, a los usuarios de C++ que #define YY_BREAK no haga nada (¡mientras "
3675 "tengan cuidado para que cada regla finalice con un \"break\" o un \"return"
3676 "\"!) para evitar que sufran los avisos de sentencias inalcanzables cuando "
3677 "debido a que la acción de la regla finaliza con un \"return\", el B<YY_BREAK> "
3678 "es inaccesible."
3679
3680 #. type: SH
3681 #: original/man1/flex.1:1939
3682 #, no-wrap
3683 msgid "VALUES AVAILABLE TO THE USER"
3684 msgstr "VALORES DISPONIBLES AL USUARIO"
3685
3686 #. type: Plain text
3687 #: original/man1/flex.1:1942
3688 msgid ""
3689 "This section summarizes the various values available to the user in the rule "
3690 "actions."
3691 msgstr ""
3692 "Esta sección resume los diferentes valores disponibles al usuario en las "
3693 "acciones de la regla."
3694
3695 #. type: Plain text
3696 #: original/man1/flex.1:1946
3697 msgid ""
3698 "B<char *yytext> holds the text of the current token. It may be modified but "
3699 "not lengthened (you cannot append characters to the end)."
3700 msgstr ""
3701 "B<char *yytext> apunta al texto del token actual. Este puede modificarse "
3702 "pero no alargarse (no puede añadir caracteres al final)."
3703
3704 #. type: Plain text
3705 #: original/man1/flex.1:1971
3706 msgid ""
3707 "If the special directive B<%array> appears in the first section of the "
3708 "scanner description, then B<yytext> is instead declared B<char yytext[YYLMAX],"
3709 "> where B<YYLMAX> is a macro definition that you can redefine in the first "
3710 "section if you don't like the default value (generally 8KB). Using B<%array> "
3711 "results in somewhat slower scanners, but the value of B<yytext> becomes "
3712 "immune to calls to I<input()> and I<unput(),> which potentially destroy its "
3713 "value when B<yytext> is a character pointer. The opposite of B<%array> is B<"
3714 "%pointer,> which is the default."
3715 msgstr ""
3716 "Si aparece la directiva especial B<%array> en la primera sección de la "
3717 "descripción del analizador, entonces B<yytext> se declara en su lugar como "
3718 "B<char yytext[YYLMAX],> donde B<YYLMAX> es la definicion de una macro que "
3719 "puede redefinir en la primera sección si no le gusta el valor por defecto "
3720 "(generalmente 8KB). El uso de B<%array> produce analizadores algo más "
3721 "lentos, pero el valor de B<yytext> se vuelve inmune a las llamadas a "
3722 "I<input()> y I<unput(),> que potencialmente destruyen su valor cuando "
3723 "B<yytext> es un puntero a caracter. El opuesto de B<%array> es B<%pointer,> "
3724 "que se encuentra por defecto."
3725
3726 #. type: Plain text
3727 #: original/man1/flex.1:1978
3728 msgid ""
3729 "You cannot use B<%array> when generating C++ scanner classes (the B<-+> flag)."
3730 msgstr ""
3731 "Usted no puede utilizar B<%array> cuando genera analizadores como clases de C+"
3732 "+ (la bandera B<-+> )."
3733
3734 #. type: Plain text
3735 #: original/man1/flex.1:1981
3736 msgid "B<int yyleng> holds the length of the current token."
3737 msgstr "B<int yyleng> contiene la longitud del token actual."
3738
3739 #. type: Plain text
3740 #: original/man1/flex.1:1996
3741 msgid ""
3742 "B<FILE *yyin> is the file which by default I<flex> reads from. It may be "
3743 "redefined but doing so only makes sense before scanning begins or after an "
3744 "EOF has been encountered. Changing it in the midst of scanning will have "
3745 "unexpected results since I<flex> buffers its input; use B<yyrestart()> "
3746 "instead. Once scanning terminates because an end-of-file has been seen, you "
3747 "can assign I<yyin> at the new input file and then call the scanner again to "
3748 "continue scanning."
3749 msgstr ""
3750 "B<FILE *yyin> es el fichero por el que I<flex> lee por defecto. Este podría "
3751 "redefinirse pero hacerlo solo tiene sentido antes de que el análisis comience "
3752 "o después de que se haya encontrado un EOF. Cambiándolo en medio del "
3753 "análisis tendrá resultados inesperados ya que I<flex> utiliza buffers en su "
3754 "entrada; use B<yyrestart()> en su lugar. Una vez que el análisis termina "
3755 "debido a que se ha visto un fin-de-fichero, puede asignarle a I<yyin> el "
3756 "nuevo fichero de entrada y entonces llamar al analizador de nuevo para "
3757 "continuar analizando."
3758
3759 #. type: Plain text
3760 #: original/man1/flex.1:2007
3761 msgid ""
3762 "B<void yyrestart( FILE *new_file )> may be called to point I<yyin> at the new "
3763 "input file. The switch-over to the new file is immediate (any previously "
3764 "buffered-up input is lost). Note that calling B<yyrestart()> with I<yyin> as "
3765 "an argument thus throws away the current input buffer and continues scanning "
3766 "the same input file."
3767 msgstr ""
3768 "B<void yyrestart( FILE *new_file )> podría ser llamada para que I<yyin> "
3769 "apunte al nuevo fichero de entrada. El cambio al nuevo fichero es inmediato "
3770 "(cualquier entrada contenida en el buffer previamente se pierde). Fíjese que "
3771 "llamando a B<yyrestart()> con I<yyin> como argumento de esta manera elimina "
3772 "el buffer de entradda actual y continúa analizando el mismo fichero de "
3773 "entrada."
3774
3775 #. type: Plain text
3776 #: original/man1/flex.1:2012
3777 msgid ""
3778 "B<FILE *yyout> is the file to which B<ECHO> actions are done. It can be "
3779 "reassigned by the user."
3780 msgstr ""
3781 "B<FILE *yyout> es el fichero sobre el que se hacen las acciones B<ECHO.> Este "
3782 "puede ser reasignado por el usuario."
3783
3784 #. type: Plain text
3785 #: original/man1/flex.1:2017
3786 msgid ""
3787 "B<YY_CURRENT_BUFFER> returns a B<YY_BUFFER_STATE> handle to the current "
3788 "buffer."
3789 msgstr ""
3790 "B<YY_CURRENT_BUFFER> devuelve un handle B<YY_BUFFER_STATE> al buffer actual."
3791
3792 #. type: Plain text
3793 #: original/man1/flex.1:2023
3794 msgid ""
3795 "B<YY_START> returns an integer value corresponding to the current start "
3796 "condition. You can subsequently use this value with B<BEGIN> to return to "
3797 "that start condition."
3798 msgstr ""
3799 "B<YY_START> devuelve un valor entero correspondiente a la condición de "
3800 "arranque actual. Posteriormente puede usar este valor con B<BEGIN> para "
3801 "retornar a la condición de arranque."
3802
3803 #. type: SH
3804 #: original/man1/flex.1:2023
3805 #, no-wrap
3806 msgid "INTERFACING WITH YACC"
3807 msgstr "INTERFAZ CON YACC"
3808
3809 #. type: Plain text
3810 #: original/man1/flex.1:2054
3811 msgid ""
3812 "One of the main uses of I<flex> is as a companion to the I<yacc> parser-"
3813 "generator. I<yacc> parsers expect to call a routine named B<yylex()> to find "
3814 "the next input token. The routine is supposed to return the type of the next "
3815 "token as well as putting any associated value in the global B<yylval.> To use "
3816 "I<flex> with I<yacc,> one specifies the B<-d> option to I<yacc> to instruct "
3817 "it to generate the file B<y.tab.h> containing definitions of all the B<"
3818 "%tokens> appearing in the I<yacc> input. This file is then included in the "
3819 "I<flex> scanner. For example, if one of the tokens is \"TOK_NUMBER\", part "
3820 "of the scanner might look like:"
3821 msgstr ""
3822 "Uno de los usos principales de I<flex> es como compañero del generador de "
3823 "analizadores sintácticos I<yacc.> Los analizadores de I<yacc> esperan invocar "
3824 "a una rutina llamada B<yylex()> para encontrar el próximo token de entrada. "
3825 "La rutina se supone que devuelve el tipo del próximo token además de poner "
3826 "cualquier valor asociado en la variable global B<yylval.> Para usar I<flex> "
3827 "con I<yacc,> uno especifica la opción B<-d> de I<yacc> para intruirle a que "
3828 "genere el fichero B<y.tab.h> que contiene las definiciones de todos los B<"
3829 "%tokens> que aparecen en la entrada de I<yacc.> Entonces este archivo se "
3830 "incluye en el analizador de I<flex> Por ejemplo, si uno de los tokens es "
3831 "\"TOK_NUMERO\", parte del analizador podría parecerse a:"
3832
3833 #. type: Plain text
3834 #: original/man1/flex.1:2059
3835 #, no-wrap
3836 msgid ""
3837 " %{\n"
3838 " #include \"y.tab.h\"\n"
3839 " %}\n"
3840 msgstr ""
3841 " %{\n"
3842 " #include \"y.tab.h\"\n"
3843 " %}\n"
3844
3845 #. type: Plain text
3846 #: original/man1/flex.1:2063
3847 #, no-wrap
3848 msgid " [0-9]+ yylval = atoi( yytext ); return TOK_NUMBER;\n"
3849 msgstr " [0-9]+ yylval = atoi( yytext ); return TOK_NUMBER;\n"
3850
3851 #. type: SH
3852 #: original/man1/flex.1:2065
3853 #, no-wrap
3854 msgid "OPTIONS"
3855 msgstr "OPCIONES"
3856
3857 #. type: Plain text
3858 #: original/man1/flex.1:2068
3859 msgid "I<flex> has the following options:"
3860 msgstr "I<flex> tiene las siguientes opciones:"
3861
3862 #. type: TP
3863 #: original/man1/flex.1:2068
3864 #, no-wrap
3865 msgid "B<-b>"
3866 msgstr "B<-b>"
3867
3868 #. type: Plain text
3869 #: original/man1/flex.1:2085
3870 msgid ""
3871 "Generate backing-up information to I<lex.backup.> This is a list of scanner "
3872 "states which require backing up and the input characters on which they do "
3873 "so. By adding rules one can remove backing-up states. If I<all> backing-up "
3874 "states are eliminated and B<-Cf> or B<-CF> is used, the generated scanner "
3875 "will run faster (see the B<-p> flag). Only users who wish to squeeze every "
3876 "last cycle out of their scanners need worry about this option. (See the "
3877 "section on Performance Considerations below.)"
3878 msgstr ""
3879 "Genera información de retroceso en I<lex.backup.> Esta es una lista de "
3880 "estados del analizador que requieren retroceso y los caracteres de entrada "
3881 "con los que la hace. Añadiendo reglas uno puede eliminar estados de "
3882 "retroceso. Si I<todos> los estados de retroceso se eliminan y se usa B<-Cf> "
3883 "o B<-CF,> el analizador generado funcionará más rápido (ver la bandera B<-p)."
3884 "> Únicamente los usuarios que desean exprimir hasta el último ciclo de sus "
3885 "analizadores necesitan preocuparse de esta opción. (Ver la sección sobre "
3886 "Consideraciones de Rendimiento más abajo.)"
3887
3888 #. type: TP
3889 #: original/man1/flex.1:2085
3890 #, no-wrap
3891 msgid "B<-c>"
3892 msgstr "B<-c>"
3893
3894 #. type: Plain text
3895 #: original/man1/flex.1:2088
3896 msgid "is a do-nothing, deprecated option included for POSIX compliance."
3897 msgstr "es una opción que no hace nada, incluída para cumplir con POSIX."
3898
3899 #. type: TP
3900 #: original/man1/flex.1:2088
3901 #, no-wrap
3902 msgid "B<-d>"
3903 msgstr "B<-d>"
3904
3905 #. type: Plain text
3906 #: original/man1/flex.1:2098
3907 msgid ""
3908 "makes the generated scanner run in I<debug> mode. Whenever a pattern is "
3909 "recognized and the global B<yy_flex_debug> is non-zero (which is the "
3910 "default), the scanner will write to I<stderr> a line of the form:"
3911 msgstr ""
3912 "hace que el analizador generado se ejecute en modo de I<depuración.> Siempre "
3913 "que se reconoce un patrón y la variable global B<yy_flex_debug> no es cero "
3914 "(que por defecto no lo es), el analizador escribirá en I<stderr> una línea de "
3915 "la forma:"
3916
3917 #. type: Plain text
3918 #: original/man1/flex.1:2101
3919 #, no-wrap
3920 msgid " --accepting rule at line 53 (\"the matched text\")\n"
3921 msgstr " --accepting rule at line 53 (\"el texto emparejado\")\n"
3922
3923 #. type: Plain text
3924 #: original/man1/flex.1:2109
3925 msgid ""
3926 "The line number refers to the location of the rule in the file defining the "
3927 "scanner (i.e., the file that was fed to flex). Messages are also generated "
3928 "when the scanner backs up, accepts the default rule, reaches the end of its "
3929 "input buffer (or encounters a NUL; at this point, the two look the same as "
3930 "far as the scanner's concerned), or reaches an end-of-file."
3931 msgstr ""
3932 "El número de línea hace referencia al lugar de la regla en el fichero que "
3933 "define al analizador (es decir, el fichero que se le introdujo a flex). Los "
3934 "mensajes también se generan cuando el analizador retrocede, acepta la regla "
3935 "por defecto, alcanza el final de su buffer de entrada (o encuentra un NUL; en "
3936 "este punto, los dos parecen lo mismo en lo que le concierne al analizador), o "
3937 "alcance el fin-de-fichero."
3938
3939 #. type: TP
3940 #: original/man1/flex.1:2109
3941 #, no-wrap
3942 msgid "B<-f>"
3943 msgstr "B<-f>"
3944
3945 #. type: Plain text
3946 #: original/man1/flex.1:2117
3947 msgid ""
3948 "specifies I<fast scanner.> No table compression is done and stdio is "
3949 "bypassed. The result is large but fast. This option is equivalent to B<-"
3950 "Cfr> (see below)."
3951 msgstr ""
3952 "especifica un I<analizador rápido.> No se realiza una compresión de tablas y "
3953 "se evita el uso de stdio. El resultado es grande pero rápido. Esta opción "
3954 "es equivalente a B<-Cfr> (ver más abajo)."
3955
3956 #. type: TP
3957 #: original/man1/flex.1:2117
3958 #, no-wrap
3959 msgid "B<-h>"
3960 msgstr "B<-h>"
3961
3962 #. type: Plain text
3963 #: original/man1/flex.1:2129
3964 msgid ""
3965 "generates a \"help\" summary of I<flex's> options to I<stdout> and then "
3966 "exits. B<-?> and B<--help> are synonyms for B<-h.>"
3967 msgstr ""
3968 "genera un sumario de \"ayuda\" de las opciones de I<flex> por I<stdout> y "
3969 "entonces finaliza. B<-?> y B<--help> son sinónimos de B<-h.>"
3970
3971 #. type: TP
3972 #: original/man1/flex.1:2129
3973 #, no-wrap
3974 msgid "B<-i>"
3975 msgstr "B<-i>"
3976
3977 #. type: Plain text
3978 #: original/man1/flex.1:2142
3979 msgid ""
3980 "instructs I<flex> to generate a I<case-insensitive> scanner. The case of "
3981 "letters given in the I<flex> input patterns will be ignored, and tokens in "
3982 "the input will be matched regardless of case. The matched text given in "
3983 "I<yytext> will have the preserved case (i.e., it will not be folded)."
3984 msgstr ""
3985 "indica a I<flex> que genere un analizador I<case-insensitive.> Se ignorará si "
3986 "las letras en los patrones de entrada de I<flex> son en mayúsculas o en "
3987 "minúsculas, y los tokens en la entrada serán emparejados sin tenerlo en "
3988 "cuenta. El texto emparejado dado en I<yytext> tendrá las mayúsculas y "
3989 "minúsculas preservadas (es decir, no se convertirán)."
3990
3991 #. type: TP
3992 #: original/man1/flex.1:2142
3993 #, no-wrap
3994 msgid "B<-l>"
3995 msgstr "B<-l>"
3996
3997 #. type: Plain text
3998 #: original/man1/flex.1:2158
3999 msgid ""
4000 "turns on maximum compatibility with the original AT&T I<lex> implementation. "
4001 "Note that this does not mean I<full> compatibility. Use of this option costs "
4002 "a considerable amount of performance, and it cannot be used with the B<-+, -"
4003 "f, -F, -Cf,> or B<-CF> options. For details on the compatibilities it "
4004 "provides, see the section \"Incompatibilities With Lex And POSIX\" below. "
4005 "This option also results in the name B<YY_FLEX_LEX_COMPAT> being #define'd in "
4006 "the generated scanner."
4007 msgstr ""
4008 "activa el modo de máxima compatibilidad con la implementación original de "
4009 "I<lex> de AT&T. Fíjese que esto no significa una compatibilidad I<completa.> "
4010 "El uso de esta opción cuesta una cantidad considerable de rendimiento, y no "
4011 "puede usarse con las opciones B<-+, -f, -F, -Cf,> o B<-CF.> Para los detalles "
4012 "a cerca de la compatibilidad que se ofrece, vea la sección "
4013 "\"Incompatibilidades con Lex y POSIX\" más abajo. Esta opción también hace "
4014 "que se defina el nombre B<YY_FLEX_LEX_COMPAT> en el analizador generado."
4015
4016 #. type: TP
4017 #: original/man1/flex.1:2158
4018 #, no-wrap
4019 msgid "B<-n>"
4020 msgstr "B<-n>"
4021
4022 #. type: Plain text
4023 #: original/man1/flex.1:2162
4024 msgid ""
4025 "is another do-nothing, deprecated option included only for POSIX compliance."
4026 msgstr "es otra opción que no hace nada, incluída para cumplir con POSIX."
4027
4028 #. type: TP
4029 #: original/man1/flex.1:2162
4030 #, no-wrap
4031 msgid "B<-p>"
4032 msgstr "B<-p>"
4033
4034 #. type: Plain text
4035 #: original/man1/flex.1:2170
4036 msgid ""
4037 "generates a performance report to stderr. The report consists of comments "
4038 "regarding features of the I<flex> input file which will cause a serious loss "
4039 "of performance in the resulting scanner. If you give the flag twice, you "
4040 "will also get comments regarding features that lead to minor performance "
4041 "losses."
4042 msgstr ""
4043 "genera un informe de rendimiento en stderr. El informe consta de comentarios "
4044 "que tratan de las propiedades del fichero de entrada de I<flex> que "
4045 "provocarán pérdidas serias de rendimiento en el analizador resultante. Si "
4046 "indica esta bandera dos veces, también obtendrá comentarios que tratan de las "
4047 "propiedades que producen pérdidas menores de rendimiento."
4048
4049 #. type: Plain text
4050 #: original/man1/flex.1:2183
4051 msgid ""
4052 "Note that the use of B<REJECT,> B<%option yylineno,> and variable trailing "
4053 "context (see the Deficiencies / Bugs section below) entails a substantial "
4054 "performance penalty; use of I<yymore(),> the B<^> operator, and the B<-I> "
4055 "flag entail minor performance penalties."
4056 msgstr ""
4057 "Fíjese que el uso de B<REJECT,> B<%option yylineno,> y el contexto posterior "
4058 "variable (vea la sección Deficiencias / Errores más abajo) supone una "
4059 "penalización substancial del rendimiento; el uso de I<yymore(),> el operador "
4060 "B<^,> y la bandera B<-I> supone penalizaciones del rendimiento menores."
4061
4062 #. type: TP
4063 #: original/man1/flex.1:2183
4064 #, no-wrap
4065 msgid "B<-s>"
4066 msgstr "B<-s>"
4067
4068 #. type: Plain text
4069 #: original/man1/flex.1:2192
4070 msgid ""
4071 "causes the I<default rule> (that unmatched scanner input is echoed to "
4072 "I<stdout)> to be suppressed. If the scanner encounters input that does not "
4073 "match any of its rules, it aborts with an error. This option is useful for "
4074 "finding holes in a scanner's rule set."
4075 msgstr ""
4076 "hace que la I<regla por defecto> (que la entrada sin emparejar del analizador "
4077 "se repita por I<stdout)> se suprima. Si el analizador encuentra entrada que "
4078 "no es reconocida por ninguna de sus reglas, este aborta con un error. Esta "
4079 "opción es útil para encontrar agujeros en el conjunto de reglas del "
4080 "analizador."
4081
4082 #. type: TP
4083 #: original/man1/flex.1:2192
4084 #, no-wrap
4085 msgid "B<-t>"
4086 msgstr "B<-t>"
4087
4088 #. type: Plain text
4089 #: original/man1/flex.1:2199
4090 msgid ""
4091 "instructs I<flex> to write the scanner it generates to standard output "
4092 "instead of B<lex.yy.c.>"
4093 msgstr ""
4094 "indica a I<flex> que escriba el analizador que genera a la salida estándar en "
4095 "lugar de en B<lex.yy.c.>"
4096
4097 #. type: TP
4098 #: original/man1/flex.1:2199
4099 #, no-wrap
4100 msgid "B<-v>"
4101 msgstr "B<-v>"
4102
4103 #. type: Plain text
4104 #: original/man1/flex.1:2214
4105 msgid ""
4106 "specifies that I<flex> should write to I<stderr> a summary of statistics "
4107 "regarding the scanner it generates. Most of the statistics are meaningless "
4108 "to the casual I<flex> user, but the first line identifies the version of "
4109 "I<flex> (same as reported by B<-V),> and the next line the flags used when "
4110 "generating the scanner, including those that are on by default."
4111 msgstr ""
4112 "especifica que I<flex> debería escribir en I<stderr> un sumario de "
4113 "estadísticas respecto al analizador que genera. La mayoría de las "
4114 "estadísticas no tienen significado para el usuario casual de I<flex,> pero la "
4115 "primera línea identifica la versión de I<flex> (la misma que se informa con "
4116 "B<-V),> y la próxima línea las banderas utilizadas cuando se genera el "
4117 "analizador, incluyendo aquellas que se encuentran activadas por defecto."
4118
4119 #. type: TP
4120 #: original/man1/flex.1:2214
4121 #, no-wrap
4122 msgid "B<-w>"
4123 msgstr "B<-w>"
4124
4125 #. type: Plain text
4126 #: original/man1/flex.1:2217
4127 msgid "suppresses warning messages."
4128 msgstr "suprime los mensajes de aviso."
4129
4130 #. type: TP
4131 #: original/man1/flex.1:2217
4132 #, no-wrap
4133 msgid "B<-B>"
4134 msgstr "B<-B>"
4135
4136 #. type: Plain text
4137 #: original/man1/flex.1:2243
4138 msgid ""
4139 "instructs I<flex> to generate a I<batch> scanner, the opposite of "
4140 "I<interactive> scanners generated by B<-I> (see below). In general, you use "
4141 "B<-B> when you are I<certain> that your scanner will never be used "
4142 "interactively, and you want to squeeze a I<little> more performance out of "
4143 "it. If your goal is instead to squeeze out a I<lot> more performance, you "
4144 "should be using the B<-Cf> or B<-CF> options (discussed below), which turn on "
4145 "B<-B> automatically anyway."
4146 msgstr ""
4147 "dice a I<flex> que genere un analizador I<batch,> que es lo opuesto al "
4148 "analizador I<interactivo> generador por B<-I> (ver más abajo). En general, "
4149 "use B<-B> cuando esté I<seguro> de que su analizador nunca se usará de forma "
4150 "interactiva, y quiere con esto exprimir un I<poco> más el rendimiento. Si "
4151 "por el contrario su objetivo es exprimirlo I<mucho> más, debería estar "
4152 "utilizando la opción B<-Cf> o B<-CF> (comentadas más abajo), que activa B<-B> "
4153 "automáticamente de todas maneras."
4154
4155 #. type: TP
4156 #: original/man1/flex.1:2243
4157 #, no-wrap
4158 msgid "B<-F>"
4159 msgstr "B<-F>"
4160
4161 #. type: Plain text
4162 #: original/man1/flex.1:2246
4163 msgid "specifies that the"
4164 msgstr "especifica que se debe utilizar la representación de la tabla"
4165
4166 #. type: Plain text
4167 #: original/man1/flex.1:2255
4168 msgid ""
4169 "fast scanner table representation should be used (and stdio bypassed). This "
4170 "representation is about as fast as the full table representation B<(-f),> and "
4171 "for some sets of patterns will be considerably smaller (and for others, "
4172 "larger). In general, if the pattern set contains both \"keywords\" and a "
4173 "catch-all, \"identifier\" rule, such as in the set:"
4174 msgstr ""
4175 "rápida (y elimina referencias a stdio). Esta representación es "
4176 "aproximadamente tan rápida como la representación completa de la tabla B<(-f),"
4177 "> y para algunos conjuntos de patrones será considerablemente más pequeña (y "
4178 "para otros, mayor). En general, si el conjunto de patrones contiene "
4179 "\"palabras clave\" y una regla \"identificador\" atrápalo-todo, como la del "
4180 "conjunto:"
4181
4182 #. type: Plain text
4183 #: original/man1/flex.1:2262
4184 #, no-wrap
4185 msgid ""
4186 " \"case\" return TOK_CASE;\n"
4187 " \"switch\" return TOK_SWITCH;\n"
4188 " ...\n"
4189 " \"default\" return TOK_DEFAULT;\n"
4190 " [a-z]+ return TOK_ID;\n"
4191 msgstr ""
4192 " \"case\" return TOK_CASE;\n"
4193 " \"switch\" return TOK_SWITCH;\n"
4194 " ...\n"
4195 " \"default\" return TOK_DEFAULT;\n"
4196 " [a-z]+ return TOK_ID;\n"
4197
4198 #. type: Plain text
4199 #: original/man1/flex.1:2268
4200 msgid ""
4201 "then you're better off using the full table representation. If only the "
4202 "\"identifier\" rule is present and you then use a hash table or some such to "
4203 "detect the keywords, you're better off using B<-F.>"
4204 msgstr ""
4205 "entonces será mejor que utilice la representación de la tabla completa. Si "
4206 "sólo está presente la regla \"identificador\" y utiliza una tabla hash o algo "
4207 "parecido para detectar palabras clave, mejor utilice B<-F.>"
4208
4209 #. type: Plain text
4210 #: original/man1/flex.1:2273
4211 msgid ""
4212 "This option is equivalent to B<-CFr> (see below). It cannot be used with B<-"
4213 "+.>"
4214 msgstr ""
4215 "Esta opción es equivalente a B<-CFr> (ver más abajo). Esta opción no puede "
4216 "utilizarse con B<-+.>"
4217
4218 #. type: TP
4219 #: original/man1/flex.1:2273
4220 #, no-wrap
4221 msgid "B<-I>"
4222 msgstr "B<-I>"
4223
4224 #. type: Plain text
4225 #: original/man1/flex.1:2288
4226 msgid ""
4227 "instructs I<flex> to generate an I<interactive> scanner. An interactive "
4228 "scanner is one that only looks ahead to decide what token has been matched if "
4229 "it absolutely must. It turns out that always looking one extra character "
4230 "ahead, even if the scanner has already seen enough text to disambiguate the "
4231 "current token, is a bit faster than only looking ahead when necessary. But "
4232 "scanners that always look ahead give dreadful interactive performance; for "
4233 "example, when a user types a newline, it is not recognized as a newline token "
4234 "until they enter I<another> token, which often means typing in another whole "
4235 "line."
4236 msgstr ""
4237 "ordena a I<flex> que genere un analizador I<interactivo> Un analizador "
4238 "interactivo es uno que solo mira hacia delante para decidir que token ha sido "
4239 "reconocido únicamente si debe hacerlo. Resulta que mirando siempre un "
4240 "caracter extra hacia delante, incluso si el analizador ya ha visto suficiente "
4241 "texto para eliminar la ambigüedad del token actual, se es un poco más rápido "
4242 "que mirando solamente cuando es necesario. Pero los analizadores que siempre "
4243 "miran hacia delante producen un comportamiento interactivo malísimo; por "
4244 "ejemplo, cuando un usuario teclea una línea nueva, esta no se reconoce como "
4245 "un token de línea nueva hasta que introduzca I<otro> token, que a menudo "
4246 "significa introducir otra línea completa."
4247
4248 #. type: Plain text
4249 #: original/man1/flex.1:2311
4250 msgid ""
4251 "I<Flex> scanners default to I<interactive> unless you use the B<-Cf> or B<-"
4252 "CF> table-compression options (see below). That's because if you're looking "
4253 "for high-performance you should be using one of these options, so if you "
4254 "didn't, I<flex> assumes you'd rather trade off a bit of run-time performance "
4255 "for intuitive interactive behavior. Note also that you I<cannot> use B<-I> "
4256 "in conjunction with B<-Cf> or B<-CF.> Thus, this option is not really needed; "
4257 "it is on by default for all those cases in which it is allowed."
4258 msgstr ""
4259 "Los analizadores de I<flex> por defecto son I<interactivos> a menos que use "
4260 "la opción B<-Cf> o B<-CF> de compresión de tablas (ver más abajo). Esto es "
4261 "debido a que si está buscando un rendimiento alto tendría que estar "
4262 "utilizando una de estas opciones, así que si no lo ha hecho I<flex> asume que "
4263 "prefiere cambiar un poco de rendimiento en tiempo de ejecución en beneficio "
4264 "de un comportamiento iteractivo intuitivo. Fíjese también que I<no puede> "
4265 "utilizar B<-I> conjuntamente con B<-Cf> o B<-CF.> Así, esta opción no se "
4266 "necesita realmente; está activa por defecto para todos esos casos en los que "
4267 "se permite."
4268
4269 #. type: Plain text
4270 #: original/man1/flex.1:2317
4271 msgid ""
4272 "You can force a scanner to I<not> be interactive by using B<-B> (see above)."
4273 msgstr ""
4274 "Usted puede forzar al analizador que I<no> sea interactivo usando B<-B> (ver "
4275 "más arriba)."
4276
4277 #. type: TP
4278 #: original/man1/flex.1:2317
4279 #, no-wrap
4280 msgid "B<-L>"
4281 msgstr "B<-L>"
4282
4283 #. type: Plain text
4284 #: original/man1/flex.1:2335
4285 msgid ""
4286 "instructs I<flex> not to generate B<#line> directives. Without this option, "
4287 "I<flex> peppers the generated scanner with #line directives so error messages "
4288 "in the actions will be correctly located with respect to either the original "
4289 "I<flex> input file (if the errors are due to code in the input file), or "
4290 "B<lex.yy.c> (if the errors are I<flex's> fault -- you should report these "
4291 "sorts of errors to the email address given below)."
4292 msgstr ""
4293 "ordena a I<flex> que no genere directivas B<#line.> Sin esta opción, I<flex> "
4294 "acribilla al analizador generado con directivas #line para que los mensajes "
4295 "de error en las acciones estén localizadas correctamente respecto al fichero "
4296 "original de I<flex> (si los errores son debidos al código en el fichero de "
4297 "entrada), o a B<lex.yy.c> (si los errores son fallos de I<flex> -- debería "
4298 "informar de este tipo de errores a la dirección de correo dada más abajo)."
4299
4300 #. type: TP
4301 #: original/man1/flex.1:2335
4302 #, no-wrap
4303 msgid "B<-T>"
4304 msgstr "B<-T>"
4305
4306 #. type: Plain text
4307 #: original/man1/flex.1:2347
4308 msgid ""
4309 "makes I<flex> run in I<trace> mode. It will generate a lot of messages to "
4310 "I<stderr> concerning the form of the input and the resultant non-"
4311 "deterministic and deterministic finite automata. This option is mostly for "
4312 "use in maintaining I<flex.>"
4313 msgstr ""
4314 "hace que I<flex> se ejecute en modo de I<traza.> Este generará un montón de "
4315 "mensajes en I<stderr> relativos a la forma de la entrada y el autómata finito "
4316 "no-determinista o determinista resultante. Esta opción generalmente es para "
4317 "usarla en el mantenimiento de I<flex.>"
4318
4319 #. type: TP
4320 #: original/man1/flex.1:2347
4321 #, no-wrap
4322 msgid "B<-V>"
4323 msgstr "B<-V>"
4324
4325 #. type: Plain text
4326 #: original/man1/flex.1:2355
4327 msgid ""
4328 "prints the version number to I<stdout> and exits. B<--version> is a synonym "
4329 "for B<-V.>"
4330 msgstr ""
4331 "imprime el número de la versión en I<stdout> y sale. B<--version> es un "
4332 "sinónimo de B<-V.>"
4333
4334 #. type: TP
4335 #: original/man1/flex.1:2355
4336 #, no-wrap
4337 msgid "B<-7>"
4338 msgstr "B<-7>"
4339
4340 #. type: Plain text
4341 #: original/man1/flex.1:2367
4342 msgid ""
4343 "instructs I<flex> to generate a 7-bit scanner, i.e., one which can only "
4344 "recognized 7-bit characters in its input. The advantage of using B<-7> is "
4345 "that the scanner's tables can be up to half the size of those generated using "
4346 "the B<-8> option (see below). The disadvantage is that such scanners often "
4347 "hang or crash if their input contains an 8-bit character."
4348 msgstr ""
4349 "ordena a I<flex> que genere un analizador de 7-bits, es decir, uno que sólo "
4350 "puede reconocer caracteres de 7-bits en su entrada. La ventaja de usar B<-7> "
4351 "es que las tablas del analizador pueden ser hasta la mitad del tamaño de "
4352 "aquellas generadas usando la opción B<-8> (ver más abajo). La desventaja es "
4353 "que tales analizadores a menudo se cuelgan o revientan si su entrada contiene "
4354 "caracteres de 8-bits."
4355
4356 #. type: Plain text
4357 #: original/man1/flex.1:2389
4358 msgid ""
4359 "Note, however, that unless you generate your scanner using the B<-Cf> or B<-"
4360 "CF> table compression options, use of B<-7> will save only a small amount of "
4361 "table space, and make your scanner considerably less portable. I<Flex's> "
4362 "default behavior is to generate an 8-bit scanner unless you use the B<-Cf> or "
4363 "B<-CF,> in which case I<flex> defaults to generating 7-bit scanners unless "
4364 "your site was always configured to generate 8-bit scanners (as will often be "
4365 "the case with non-USA sites). You can tell whether flex generated a 7-bit or "
4366 "an 8-bit scanner by inspecting the flag summary in the B<-v> output as "
4367 "described above."
4368 msgstr ""
4369 "Fíjese, sin embargo, que a menos que genere su analizador utilizando las "
4370 "opciones de compresión de tablas B<-Cf> o B<-CF,> el uso de B<-7> ahorrará "
4371 "solamente una pequeña cantidad de espacio en la tabla, y hará su analizador "
4372 "considerablemente menos portable. El comportamiento por defecto de I<flex> "
4373 "es generar un analizador de 8-bits a menos que use B<-Cf> o B<-CF,> en cuyo "
4374 "caso I<flex> por defecto genera analizadores de 7-bits a menos que su sistema "
4375 "siempre esté configurado para generar analizadores de 8-bits (a menudo este "
4376 "será el caso de los sistemas fuera de EEUU). Puede decir si flex generó un "
4377 "analizador de 7 u 8 bits inspeccionando el sumario de banderas en la salida "
4378 "de B<-v> como se describió anteriormente."
4379
4380 #. type: Plain text
4381 #: original/man1/flex.1:2398
4382 msgid ""
4383 "Note that if you use B<-Cfe> or B<-CFe> (those table compression options, but "
4384 "also using equivalence classes as discussed see below), flex still defaults "
4385 "to generating an 8-bit scanner, since usually with these compression options "
4386 "full 8-bit tables are not much more expensive than 7-bit tables."
4387 msgstr ""
4388 "Fíjese que si usa B<-Cfe> o B<-CFe> (esas opciones de compresión de tablas, "
4389 "pero también el uso de clases de equivalencia como se comentará más abajo), "
4390 "flex genera aún por defecto un analizador de 8-bits, ya que normalmente con "
4391 "estas opciones de compresión las tablas de 8-bits completas no son mucho más "
4392 "caras que las tablas de 7-bits."
4393
4394 #. type: TP
4395 #: original/man1/flex.1:2398
4396 #, no-wrap
4397 msgid "B<-8>"
4398 msgstr "B<-8>"
4399
4400 #. type: Plain text
4401 #: original/man1/flex.1:2408
4402 msgid ""
4403 "instructs I<flex> to generate an 8-bit scanner, i.e., one which can recognize "
4404 "8-bit characters. This flag is only needed for scanners generated using B<-"
4405 "Cf> or B<-CF,> as otherwise flex defaults to generating an 8-bit scanner "
4406 "anyway."
4407 msgstr ""
4408 "ordena a I<flex> que genere un analizador de 8-bits, es decir, uno que puede "
4409 "reconocer caracteres de 8-bits. Esta bandera sólo es necesaria para "
4410 "analizadores generados usando B<-Cf> o B<-CF,> ya que de otra manera flex por "
4411 "defecto genera un analizador de 8-bits de todas formas."
4412
4413 #. type: Plain text
4414 #: original/man1/flex.1:2413
4415 msgid ""
4416 "See the discussion of B<-7> above for flex's default behavior and the "
4417 "tradeoffs between 7-bit and 8-bit scanners."
4418 msgstr ""
4419 "Vea el comentario sobre B<-7> más arriba a cerca del comportamiento por "
4420 "defecto de flex y la discusión entre los analizadores de 7-bits y 8-bits."
4421
4422 #. type: TP
4423 #: original/man1/flex.1:2413
4424 #, no-wrap
4425 msgid "B<-+>"
4426 msgstr "B<-+>"
4427
4428 #. type: Plain text
4429 #: original/man1/flex.1:2418
4430 msgid ""
4431 "specifies that you want flex to generate a C++ scanner class. See the "
4432 "section on Generating C++ Scanners below for details."
4433 msgstr ""
4434 "especifica que quiere que flex genere un analizador como una clase de C++. "
4435 "Vea la sección Generando Escáners en C++ más abajo para los detalles."
4436
4437 #. type: TP
4438 #: original/man1/flex.1:2418
4439 #, no-wrap
4440 msgid "B<-C[aefFmr]>"
4441 msgstr "B<-C[aefFmr]>"
4442
4443 #. type: Plain text
4444 #: original/man1/flex.1:2422
4445 msgid ""
4446 "controls the degree of table compression and, more generally, trade-offs "
4447 "between small scanners and fast scanners."
4448 msgstr ""
4449 "controla el grado de compresión de la tabla y, más generalmente, el "
4450 "compromiso entre analizadores pequeños y analizadores rápidos."
4451
4452 #. type: Plain text
4453 #: original/man1/flex.1:2430
4454 msgid ""
4455 "B<-Ca> (\"align\") instructs flex to trade off larger tables in the generated "
4456 "scanner for faster performance because the elements of the tables are better "
4457 "aligned for memory access and computation. On some RISC architectures, "
4458 "fetching and manipulating longwords is more efficient than with smaller-sized "
4459 "units such as shortwords. This option can double the size of the tables used "
4460 "by your scanner."
4461 msgstr ""
4462 "B<-Ca> (\"alinea\") ordena a flex que negocie tablas más grandes en el "
4463 "analizador generado para un comportamiento más rápido porque los elementos de "
4464 "las tablas están mejor alineados para el acceso a memoria y computación. En "
4465 "algunas arquitecturas RISC, la búsqueda y manipulación de palabras largas es "
4466 "más eficiente que con unidades más pequeñas tales como palabras cortas. Esta "
4467 "opción puede doblar el tamaño de las tablas usadas en su analizador."
4468
4469 #. type: Plain text
4470 #: original/man1/flex.1:2446
4471 msgid ""
4472 "B<-Ce> directs I<flex> to construct I<equivalence classes,> i.e., sets of "
4473 "characters which have identical lexical properties (for example, if the only "
4474 "appearance of digits in the I<flex> input is in the character class \"[0-9]\" "
4475 "then the digits '0', '1', ..., '9' will all be put in the same equivalence "
4476 "class). Equivalence classes usually give dramatic reductions in the final "
4477 "table/object file sizes (typically a factor of 2-5) and are pretty cheap "
4478 "performance-wise (one array look-up per character scanned)."
4479 msgstr ""
4480 "B<-Ce> ordena a I<flex> que construya I<clases de equivalencia,> es decir, "
4481 "conjunto de caracteres que tienen identicas propiedades léxicas (por ejemplo, "
4482 "si la única aparición de dígitos en la entrada de I<flex> es en la clase de "
4483 "caracteres \"[0-9]\" entonces los dígitos '0', '1', ..., '9' se pondrán todos "
4484 "en la misma clase de equivalencia). Las clases de equivalencia normalmente "
4485 "ofrecen notables reducciones en los tamaños de los ficheros finales de tabla/"
4486 "objeto (típicamente un factor de 2-5) y son juiciosamente bastante baratos en "
4487 "cuanto al rendimiento (una localización en un vector por caracter analizado)."
4488
4489 #. type: Plain text
4490 #: original/man1/flex.1:2455
4491 msgid ""
4492 "B<-Cf> specifies that the I<full> scanner tables should be generated - "
4493 "I<flex> should not compress the tables by taking advantages of similar "
4494 "transition functions for different states."
4495 msgstr ""
4496 "B<-Cf> especifica que se deben generar las tablas del analizador I<completas> "
4497 "- I<flex> no debería comprimir las tablas tomando ventaja de las funciones de "
4498 "transición similares para diferentes estados."
4499
4500 #. type: Plain text
4501 #: original/man1/flex.1:2463
4502 msgid ""
4503 "B<-CF> specifies that the alternate fast scanner representation (described "
4504 "above under the B<-F> flag) should be used. This option cannot be used with "
4505 "B<-+.>"
4506 msgstr ""
4507 "B<-CF> especifica que debería usarse la representación del analizador rápido "
4508 "alternativo (descrito anteriormente en la bandera B<-F> ) Esta opción no "
4509 "puede usarse con B<-+.>"
4510
4511 #. type: Plain text
4512 #: original/man1/flex.1:2474
4513 msgid ""
4514 "B<-Cm> directs I<flex> to construct I<meta-equivalence classes,> which are "
4515 "sets of equivalence classes (or characters, if equivalence classes are not "
4516 "being used) that are commonly used together. Meta-equivalence classes are "
4517 "often a big win when using compressed tables, but they have a moderate "
4518 "performance impact (one or two \"if\" tests and one array look-up per "
4519 "character scanned)."
4520 msgstr ""
4521 "B<-Cm> ordena a I<flex> a que construya I<clases de meta-equivalencias,> que "
4522 "son conjuntos de clases de equivalencia (o caracteres, si las clases de "
4523 "equivalencia no se están usando) que comunmente se usan de forma conjunta. "
4524 "Las clases de meta-equivalencias son a menudo un gran ahorro cuando se usan "
4525 "tablas comprimidas, pero tienen un impacto moderado en el rendimiento (uno o "
4526 "dos tests \"if\" y una localización en un array por caracter analizado)."
4527
4528 #. type: Plain text
4529 #: original/man1/flex.1:2495
4530 msgid ""
4531 "B<-Cr> causes the generated scanner to I<bypass> use of the standard I/O "
4532 "library (stdio) for input. Instead of calling B<fread()> or B<getc(),> the "
4533 "scanner will use the B<read()> system call, resulting in a performance gain "
4534 "which varies from system to system, but in general is probably negligible "
4535 "unless you are also using B<-Cf> or B<-CF.> Using B<-Cr> can cause strange "
4536 "behavior if, for example, you read from I<yyin> using stdio prior to calling "
4537 "the scanner (because the scanner will miss whatever text your previous reads "
4538 "left in the stdio input buffer)."
4539 msgstr ""
4540 "B<-Cr> hace que el analizador generado I<elimine> el uso de la librería de E/"
4541 "S estándar para la entrada. En lugar de llamar a B<fread()> o B<getc(),> el "
4542 "analizador utilizará la llamada al sistema B<read(),> produciendo una "
4543 "ganancia en el rendimiento que varía de sistema en sistema, pero en general "
4544 "probablemente es insignificante a menos que también esté usando B<-Cf> o B<-"
4545 "CF.> El uso de B<-Cr> puede producir un comportamiento extraño si, por "
4546 "ejemplo, lee de I<yyin> usando stdio antes de llamar al analizador (porque el "
4547 "analizador perderá cualquier texto que sus lecturas anteriores dejaron en el "
4548 "buffer de entrada de stdio)."
4549
4550 #. type: Plain text
4551 #: original/man1/flex.1:2500
4552 msgid ""
4553 "B<-Cr> has no effect if you define B<YY_INPUT> (see The Generated Scanner "
4554 "above)."
4555 msgstr ""
4556 "B<-Cr> no tiene efecto si usted define B<YY_INPUT> (ver El Escáner Generado "
4557 "más arriba)."
4558
4559 #. type: Plain text
4560 #: original/man1/flex.1:2505
4561 msgid ""
4562 "A lone B<-C> specifies that the scanner tables should be compressed but "
4563 "neither equivalence classes nor meta-equivalence classes should be used."
4564 msgstr ""
4565 "Con solamente B<-C> se especifica que las tablas del analizador deberían "
4566 "comprimirse pero no debería utilizarse ni las clases de equivalencia ni las "
4567 "clases de meta-equivalencias."
4568
4569 #. type: Plain text
4570 #: original/man1/flex.1:2515
4571 msgid ""
4572 "The options B<-Cf> or B<-CF> and B<-Cm> do not make sense together - there is "
4573 "no opportunity for meta-equivalence classes if the table is not being "
4574 "compressed. Otherwise the options may be freely mixed, and are cumulative."
4575 msgstr ""
4576 "Las opciones B<-Cf> o B<-CF> y B<-Cm> no tienen sentido juntas - no hay "
4577 "oportunidad para las clases de meta-equivalencias si la tabla no está siendo "
4578 "comprimida. De otra forma las opciones podrían mezclarse líbremente, y son "
4579 "acumulativas."
4580
4581 #. type: Plain text
4582 #: original/man1/flex.1:2525
4583 msgid ""
4584 "The default setting is B<-Cem,> which specifies that I<flex> should generate "
4585 "equivalence classes and meta-equivalence classes. This setting provides the "
4586 "highest degree of table compression. You can trade off faster-executing "
4587 "scanners at the cost of larger tables with the following generally being true:"
4588 msgstr ""
4589 "La configuración por defecto es B<-Cem,> que especifica que I<flex> debería "
4590 "generar clases de equivalencia y clases de meta-equivalencias. Esta "
4591 "configuración provee el mayor grado de compresión. Puede llegarse a un "
4592 "compromiso entre analizadores de ejecución más rápida con el coste de tablas "
4593 "mayores siendo generalmente verdadero lo siguiente:"
4594
4595 #. type: Plain text
4596 #: original/man1/flex.1:2536
4597 #, no-wrap
4598 msgid ""
4599 " slowest & smallest\n"
4600 " -Cem\n"
4601 " -Cm\n"
4602 " -Ce\n"
4603 " -C\n"
4604 " -C{f,F}e\n"
4605 " -C{f,F}\n"
4606 " -C{f,F}a\n"
4607 " fastest & largest\n"
4608 msgstr ""
4609 " lo más lento y pequeño\n"
4610 " -Cem\n"
4611 " -Cm\n"
4612 " -Ce\n"
4613 " -C\n"
4614 " -C{f,F}e\n"
4615 " -C{f,F}\n"
4616 " -C{f,F}a\n"
4617 " lo más rápido y grande\n"
4618
4619 #. type: Plain text
4620 #: original/man1/flex.1:2542
4621 msgid ""
4622 "Note that scanners with the smallest tables are usually generated and "
4623 "compiled the quickest, so during development you will usually want to use the "
4624 "default, maximal compression."
4625 msgstr ""
4626 "Fíjese que los analizadores con tablas más pequeñas normalmente se generan y "
4627 "compilan de la forma más rápida posible, así que durante el desarrollo usted "
4628 "normalmente querrá usar como viene por defecto, compresión máxima."
4629
4630 #. type: Plain text
4631 #: original/man1/flex.1:2546
4632 msgid ""
4633 "B<-Cfe> is often a good compromise between speed and size for production "
4634 "scanners."
4635 msgstr ""
4636 "B<-Cfe> a menudo es un buen compromiso entre velocidad y tamaño para la "
4637 "producción de analizadores."
4638
4639 #. type: TP
4640 #: original/man1/flex.1:2546
4641 #, no-wrap
4642 msgid "B<-ooutput>"
4643 msgstr "B<-osalida>"
4644
4645 #. type: Plain text
4646 #: original/man1/flex.1:2564
4647 msgid ""
4648 "directs flex to write the scanner to the file B<output> instead of B<lex.yy.c."
4649 "> If you combine B<-o> with the B<-t> option, then the scanner is written to "
4650 "I<stdout> but its B<#line> directives (see the B<-L> option above) refer to "
4651 "the file B<output.>"
4652 msgstr ""
4653 "ordena a flex que escriba el analizador al fichero B<salida> en lugar de a "
4654 "B<lex.yy.c.> Si combina B<-o> con la opción B<-t,> entonces el analizador se "
4655 "escribe en I<stdout> pero sus directivas B<#line> (vea la opción B<-L> más "
4656 "arriba) hacen referencia al fichero B<salida.>"
4657
4658 #. type: TP
4659 #: original/man1/flex.1:2564
4660 #, no-wrap
4661 msgid "B<-Pprefix>"
4662 msgstr "B<-Pprefijo>"
4663
4664 #. type: Plain text
4665 #: original/man1/flex.1:2583
4666 msgid ""
4667 "changes the default I<yy> prefix used by I<flex> for all globally-visible "
4668 "variable and function names to instead be I<prefix.> For example, B<-Pfoo> "
4669 "changes the name of B<yytext> to B<footext.> It also changes the name of the "
4670 "default output file from B<lex.yy.c> to B<lex.foo.c.> Here are all of the "
4671 "names affected:"
4672 msgstr ""
4673 "cambia el prefijo I<yy> usado por defecto por I<flex> para todas las "
4674 "variables visibles globalmente y nombres de funciones para que sea I<prefijo."
4675 "> Por ejemplo, B<-Pfoo> cambia el nombre de B<yytext> a B<footext.> Este "
4676 "también cambia el nombre por defecto del fichero de salida de B<lex.yy.c> a "
4677 "B<lex.foo.c.> Aquí están todos los nombres afectados:"
4678
4679 #. type: Plain text
4680 #: original/man1/flex.1:2600
4681 #, no-wrap
4682 msgid ""
4683 " yy_create_buffer\n"
4684 " yy_delete_buffer\n"
4685 " yy_flex_debug\n"
4686 " yy_init_buffer\n"
4687 " yy_flush_buffer\n"
4688 " yy_load_buffer_state\n"
4689 " yy_switch_to_buffer\n"
4690 " yyin\n"
4691 " yyleng\n"
4692 " yylex\n"
4693 " yylineno\n"
4694 " yyout\n"
4695 " yyrestart\n"
4696 " yytext\n"
4697 " yywrap\n"
4698 msgstr ""
4699 " yy_create_buffer\n"
4700 " yy_delete_buffer\n"
4701 " yy_flex_debug\n"
4702 " yy_init_buffer\n"
4703 " yy_flush_buffer\n"
4704 " yy_load_buffer_state\n"
4705 " yy_switch_to_buffer\n"
4706 " yyin\n"
4707 " yyleng\n"
4708 " yylex\n"
4709 " yylineno\n"
4710 " yyout\n"
4711 " yyrestart\n"
4712 " yytext\n"
4713 " yywrap\n"
4714
4715 #. type: Plain text
4716 #: original/man1/flex.1:2610
4717 msgid ""
4718 "(If you are using a C++ scanner, then only B<yywrap> and B<yyFlexLexer> are "
4719 "affected.) Within your scanner itself, you can still refer to the global "
4720 "variables and functions using either version of their name; but externally, "
4721 "they have the modified name."
4722 msgstr ""
4723 "(Si usted está utilizando un analizador en C++, entonces únicamente B<yywrap> "
4724 "y B<yyFlexLexer> se ven afectados.) Dentro de su analizador, puede aún hacer "
4725 "referencia a las variables globales y funciones usando cualquier versión de "
4726 "su nombre; pero externamente, estas tienen el nombre modificado."
4727
4728 #. type: Plain text
4729 #: original/man1/flex.1:2625
4730 msgid ""
4731 "This option lets you easily link together multiple I<flex> programs into the "
4732 "same executable. Note, though, that using this option also renames "
4733 "B<yywrap(),> so you now I<must> either provide your own (appropriately-named) "
4734 "version of the routine for your scanner, or use B<%option noyywrap,> as "
4735 "linking with B<-lfl> no longer provides one for you by default."
4736 msgstr ""
4737 "Esta opción le deja enlazar fácilmente múltiples programas I<flex> "
4738 "conjuntamente en el mismo ejecutable. Fíjese, sin embargo, que usando esta "
4739 "opción también se renombra B<yywrap(),> de manera que ahora I<debe> o bien "
4740 "proveer su propia versión de la rutina (con el nombre apropiado) para su "
4741 "analizador, o usar B<%option noyywrap,> ya que enlazar con B<-lfl> no podrá "
4742 "proveerle una por defecto."
4743
4744 #. type: TP
4745 #: original/man1/flex.1:2625
4746 #, no-wrap
4747 msgid "B<-Sskeleton_file>"
4748 msgstr "B<-Sfichero_esqueleto>"
4749
4750 #. type: Plain text
4751 #: original/man1/flex.1:2632
4752 msgid ""
4753 "overrides the default skeleton file from which I<flex> constructs its "
4754 "scanners. You'll never need this option unless you are doing I<flex> "
4755 "maintenance or development."
4756 msgstr ""
4757 "ignora el fichero de esqueleteo por defecto con el que I<flex> construye sus "
4758 "analizadores. Usted probablemente nunca necesitará utilizar esta opción a "
4759 "menos que este haciendo mantenimiento o un desarrollo de I<flex>."
4760
4761 #. type: Plain text
4762 #: original/man1/flex.1:2643
4763 msgid ""
4764 "I<flex> also provides a mechanism for controlling options within the scanner "
4765 "specification itself, rather than from the flex command-line. This is done "
4766 "by including B<%option> directives in the first section of the scanner "
4767 "specification. You can specify multiple options with a single B<%option> "
4768 "directive, and multiple directives in the first section of your flex input "
4769 "file."
4770 msgstr ""
4771 "I<flex> también ofrece un mecanismo para controlar las opciones dentro de la "
4772 "propia especificación del analizador, en vez de a partir de la línea de "
4773 "comando. Esto se hace incluyendo las directivas B<%option> en la primera "
4774 "sección de la especificación del analizador. Usted puede especificar varias "
4775 "opciones con una sola directiva B<%option,> y varias directivas en la primera "
4776 "sección de su fichero de entrada de flex."
4777
4778 #. type: Plain text
4779 #: original/man1/flex.1:2647
4780 msgid ""
4781 "Most options are given simply as names, optionally preceded by the word \"no"
4782 "\" (with no intervening whitespace) to negate their meaning. A number are "
4783 "equivalent to flex flags or their negation:"
4784 msgstr ""
4785 "La mayoría de las opciones vienen dadas simplemente como nombres, "
4786 "opcionalmente precedidos por la palabra \"no\" (sin intervenir un espacio) "
4787 "para negar su significado. Las banderas de flex o su negación son "
4788 "equivalentes a un número:"
4789
4790 #. type: Plain text
4791 #: original/man1/flex.1:2655
4792 #, no-wrap
4793 msgid ""
4794 " 7bit -7 option\n"
4795 " 8bit -8 option\n"
4796 " align -Ca option\n"
4797 " backup -b option\n"
4798 " batch -B option\n"
4799 " c++ -+ option\n"
4800 msgstr ""
4801 " 7bit opción -7\n"
4802 " 8bit opción -8\n"
4803 " align opción -Ca\n"
4804 " backup opción -b\n"
4805 " batch opción -B\n"
4806 " c++ opción -+\n"
4807
4808 #. type: Plain text
4809 #: original/man1/flex.1:2658
4810 #, no-wrap
4811 msgid ""
4812 " caseful or\n"
4813 " case-sensitive opposite of -i (default)\n"
4814 msgstr ""
4815 " caseful o\n"
4816 " case-sensitive opuesto de -i (por defecto)\n"
4817
4818 #. type: Plain text
4819 #: original/man1/flex.1:2661
4820 #, no-wrap
4821 msgid ""
4822 " case-insensitive or\n"
4823 " caseless -i option\n"
4824 msgstr ""
4825 " case-insensitive o\n"
4826 " caseless opción -i\n"
4827
4828 #. type: Plain text
4829 #: original/man1/flex.1:2676
4830 #, no-wrap
4831 msgid ""
4832 " debug -d option\n"
4833 " default opposite of -s option\n"
4834 " ecs -Ce option\n"
4835 " fast -F option\n"
4836 " full -f option\n"
4837 " interactive -I option\n"
4838 " lex-compat -l option\n"
4839 " meta-ecs -Cm option\n"
4840 " perf-report -p option\n"
4841 " read -Cr option\n"
4842 " stdout -t option\n"
4843 " verbose -v option\n"
4844 " warn opposite of -w option\n"
4845 " (use \"%option nowarn\" for -w)\n"
4846 msgstr ""
4847 " debug opción -d\n"
4848 " default opuesto de la opción -s\n"
4849 " ecs opción -Ce\n"
4850 " fast opción -F\n"
4851 " full opción -f\n"
4852 " interactive opción -I\n"
4853 " lex-compat opción -l\n"
4854 " meta-ecs opción -Cm\n"
4855 " perf-report opción -p\n"
4856 " read opción -Cr\n"
4857 " stdout opción -t\n"
4858 " verbose opción -v\n"
4859 " warn opuesto de la opción -w\n"
4860 " (use \"%option nowarn\" para -w)\n"
4861
4862 #. type: Plain text
4863 #: original/man1/flex.1:2679
4864 #, no-wrap
4865 msgid ""
4866 " array equivalent to \"%array\"\n"
4867 " pointer equivalent to \"%pointer\" (default)\n"
4868 msgstr ""
4869 " array equivalente a \"%array\"\n"
4870 " pointer equivalente a \"%pointer\" (por defecto)\n"
4871
4872 #. type: Plain text
4873 #: original/man1/flex.1:2684
4874 msgid "Some B<%option's> provide features otherwise not available:"
4875 msgstr ""
4876 "Algunas directivas B<%option> ofrecen propiedades que de otra manera no están "
4877 "disponibles:"
4878
4879 #. type: TP
4880 #: original/man1/flex.1:2684
4881 #, no-wrap
4882 msgid "B<always-interactive>"
4883 msgstr "B<always-interactive>"
4884
4885 #. type: Plain text
4886 #: original/man1/flex.1:2693
4887 msgid ""
4888 "instructs flex to generate a scanner which always considers its input "
4889 "\"interactive\". Normally, on each new input file the scanner calls "
4890 "B<isatty()> in an attempt to determine whether the scanner's input source is "
4891 "interactive and thus should be read a character at a time. When this option "
4892 "is used, however, then no such call is made."
4893 msgstr ""
4894 "ordena a flex que genere un analizador que siempre considere su entrada como "
4895 "\"interactiva\". Normalmente, sobre cada fichero de entrada nuevo el "
4896 "analizador llama a B<isatty()> como intento para determinar si la entrada del "
4897 "analizador es interactiva y por lo tanto debería leer un caracter a la vez. "
4898 "Cuando esta opción se utilice, sin embargo, entonces no se hace tal llamada."
4899
4900 #. type: TP
4901 #: original/man1/flex.1:2693
4902 #, no-wrap
4903 msgid "B<main>"
4904 msgstr "B<main>"
4905
4906 #. type: Plain text
4907 #: original/man1/flex.1:2702
4908 msgid ""
4909 "directs flex to provide a default B<main()> program for the scanner, which "
4910 "simply calls B<yylex().> This option implies B<noyywrap> (see below)."
4911 msgstr ""
4912 "ordena a flex que facilite un programa B<main()> por defecto para el "
4913 "analizador, que simplemente llame a B<yylex().> Esta opción implica "
4914 "B<noyywrap> (ver más abajo)."
4915
4916 #. type: TP
4917 #: original/man1/flex.1:2702
4918 #, no-wrap
4919 msgid "B<never-interactive>"
4920 msgstr "B<never-interactive>"
4921
4922 #. type: Plain text
4923 #: original/man1/flex.1:2709
4924 msgid ""
4925 "instructs flex to generate a scanner which never considers its input "
4926 "\"interactive\" (again, no call made to B<isatty()).> This is the opposite of "
4927 "B<always-interactive.>"
4928 msgstr ""
4929 "ordena a flex que genere un analizador que nunca considere su entrada como "
4930 "\"interactiva\" (de nuevo, no se hace ninguna llamada a B<isatty()).> Esta es "
4931 "la opuesta a B<always-interactive.>"
4932
4933 #. type: TP
4934 #: original/man1/flex.1:2709
4935 #, no-wrap
4936 msgid "B<stack>"
4937 msgstr "B<stack>"
4938
4939 #. type: Plain text
4940 #: original/man1/flex.1:2712
4941 msgid "enables the use of start condition stacks (see Start Conditions above)."
4942 msgstr ""
4943 "activa el uso de pilas de condiciones de arranque (ver Condiciones de "
4944 "Arranque más arriba)."
4945
4946 #. type: TP
4947 #: original/man1/flex.1:2712
4948 #, no-wrap
4949 msgid "B<stdinit>"
4950 msgstr "B<stdinit>"
4951
4952 #. type: Plain text
4953 #: original/man1/flex.1:2734
4954 msgid ""
4955 "if set (i.e., B<%option stdinit)> initializes I<yyin> and I<yyout> to "
4956 "I<stdin> and I<stdout,> instead of the default of I<nil.> Some existing "
4957 "I<lex> programs depend on this behavior, even though it is not compliant with "
4958 "ANSI C, which does not require I<stdin> and I<stdout> to be compile-time "
4959 "constant."
4960 msgstr ""
4961 "si se establece (es decir, B<%option stdinit)> inicializa I<yyin> e I<yyout> "
4962 "a I<stdin> y I<stdout,> en lugar del que viene por defecto que es I<nil.> "
4963 "Algunos pogramas de I<lex> existentes dependen de este comportamiento, "
4964 "incluso si no sigue el ANSI C, que no requiere que I<stdin> y I<stdout> sean "
4965 "constantes en tiempo de compilación."
4966
4967 #. type: TP
4968 #: original/man1/flex.1:2734
4969 #, no-wrap
4970 msgid "B<yylineno>"
4971 msgstr "B<yylineno>"
4972
4973 #. type: Plain text
4974 #: original/man1/flex.1:2743
4975 msgid ""
4976 "directs I<flex> to generate a scanner that maintains the number of the "
4977 "current line read from its input in the global variable B<yylineno.> This "
4978 "option is implied by B<%option lex-compat.>"
4979 msgstr ""
4980 "ordena a I<flex> a generar un analizador que mantenga el número de la línea "
4981 "actual leída desde su entrada en la variable global B<yylineno.> Esta opción "
4982 "viene implícita con B<%option lex-compat.>"
4983
4984 #. type: TP
4985 #: original/man1/flex.1:2743
4986 #, no-wrap
4987 msgid "B<yywrap>"
4988 msgstr "B<yywrap>"
4989
4990 #. type: Plain text
4991 #: original/man1/flex.1:2755
4992 msgid ""
4993 "if unset (i.e., B<%option noyywrap),> makes the scanner not call B<yywrap()> "
4994 "upon an end-of-file, but simply assume that there are no more files to scan "
4995 "(until the user points I<yyin> at a new file and calls B<yylex()> again)."
4996 msgstr ""
4997 "si no se establece (es decir, B<%option noyywrap),> hace que el analizador no "
4998 "llame a B<yywrap()> hasta el fin-de-fichero, pero simplemente asume que no "
4999 "hay más ficheros que analizar (hasta que el usuario haga apuntar I<yyin> a un "
5000 "nuevo fichero y llame a B<yylex()> otra vez)."
5001
5002 #. type: Plain text
5003 #: original/man1/flex.1:2772
5004 msgid ""
5005 "I<flex> scans your rule actions to determine whether you use the B<REJECT> or "
5006 "B<yymore()> features. The B<reject> and B<yymore> options are available to "
5007 "override its decision as to whether you use the options, either by setting "
5008 "them (e.g., B<%option reject)> to indicate the feature is indeed used, or "
5009 "unsetting them to indicate it actually is not used (e.g., B<%option noyymore)."
5010 ">"
5011 msgstr ""
5012 "I<flex> analiza las acciones de sus reglas para determinar si utiliza las "
5013 "propiedades B<REJECT> o B<yymore()> Las opciones B<reject> e B<yymore> están "
5014 "disponibles para ignorar sus decisiones siempre que use las opciones, o bien "
5015 "estableciendolas (p.ej., B<%option reject)> para indicar que la propiedad se "
5016 "utiliza realmente, o desactivándolas para indicar que no es utilizada (p.ej., "
5017 "B<%option noyymore).>"
5018
5019 #. type: Plain text
5020 #: original/man1/flex.1:2774
5021 msgid "Three options take string-delimited values, offset with '=':"
5022 msgstr "Tres opciones toman valores delimitados por cadenas, separadas por '=':"
5023
5024 #. type: Plain text
5025 #: original/man1/flex.1:2777
5026 #, no-wrap
5027 msgid " %option outfile=\"ABC\"\n"
5028 msgstr " %option outfile=\"ABC\"\n"
5029
5030 #. type: Plain text
5031 #: original/man1/flex.1:2782
5032 msgid "is equivalent to B<-oABC,> and"
5033 msgstr "es equivalente a B<-oABC,> y"
5034
5035 #. type: Plain text
5036 #: original/man1/flex.1:2785
5037 #, no-wrap
5038 msgid " %option prefix=\"XYZ\"\n"
5039 msgstr " %option prefix=\"XYZ\"\n"
5040
5041 #. type: Plain text
5042 #: original/man1/flex.1:2790
5043 msgid "is equivalent to B<-PXYZ.> Finally,"
5044 msgstr "es equivalente a B<-PXYZ.> Finalmente,"
5045
5046 #. type: Plain text
5047 #: original/man1/flex.1:2793
5048 #, no-wrap
5049 msgid " %option yyclass=\"foo\"\n"
5050 msgstr " %option yyclass=\"foo\"\n"
5051
5052 #. type: Plain text
5053 #: original/man1/flex.1:2815
5054 msgid ""
5055 "only applies when generating a C++ scanner ( B<-+> option). It informs "
5056 "I<flex> that you have derived B<foo> as a subclass of B<yyFlexLexer,> so "
5057 "I<flex> will place your actions in the member function B<foo::yylex()> "
5058 "instead of B<yyFlexLexer::yylex().> It also generates a B<yyFlexLexer::"
5059 "yylex()> member function that emits a run-time error (by invoking "
5060 "B<yyFlexLexer::LexerError())> if called. See Generating C++ Scanners, below, "
5061 "for additional information."
5062 msgstr ""
5063 "sólo se aplica cuando se genera un analizador en C++ (opción B<-+).> Este "
5064 "informa a I<flex> que ha derivado a B<foo> como una subclase de B<yyFlexLexer,"
5065 "> así que I<flex> pondrá sus acciones en la función miembro B<foo::yylex()> "
5066 "en lugar de B<yyFlexLexer::yylex().> Este también genera una función miembro "
5067 "B<yyFlexLexer::yylex()> que emite un error en tiempo de ejecución (invocando "
5068 "a B<yyFlexLexer::LexerError())> si es llamada. Ver Generando Escáners en C+"
5069 "+, más abajo, para información adicional."
5070
5071 #. type: Plain text
5072 #: original/man1/flex.1:2823
5073 msgid ""
5074 "A number of options are available for lint purists who want to suppress the "
5075 "appearance of unneeded routines in the generated scanner. Each of the "
5076 "following, if unset (e.g., B<%option nounput> ), results in the corresponding "
5077 "routine not appearing in the generated scanner:"
5078 msgstr ""
5079 "Están disponibles un número de opciones para los puristas de lint que desean "
5080 "suprimir la aparición de rutinas no necesarias en el analizador generado. "
5081 "Cada una de la siguientes, si se desactivan (p.ej., B<%option nounput> ), "
5082 "hace que la rutina correspondiente no aparezca en el analizador generado:"
5083
5084 #. type: Plain text
5085 #: original/man1/flex.1:2828
5086 #, no-wrap
5087 msgid ""
5088 " input, unput\n"
5089 " yy_push_state, yy_pop_state, yy_top_state\n"
5090 " yy_scan_buffer, yy_scan_bytes, yy_scan_string\n"
5091 msgstr ""
5092 " input, unput\n"
5093 " yy_push_state, yy_pop_state, yy_top_state\n"
5094 " yy_scan_buffer, yy_scan_bytes, yy_scan_string\n"
5095
5096 #. type: Plain text
5097 #: original/man1/flex.1:2834
5098 msgid ""
5099 "(though B<yy_push_state()> and friends won't appear anyway unless you use B<"
5100 "%option stack).>"
5101 msgstr ""
5102 "(aunque B<yy_push_state()> y sus amigas no aparecerán de todas manera a menos "
5103 "que use B<%option stack).>"
5104
5105 #. type: SH
5106 #: original/man1/flex.1:2834
5107 #, no-wrap
5108 msgid "PERFORMANCE CONSIDERATIONS"
5109 msgstr "CONSIDERACIONES DE RENDIMIENTO"
5110
5111 #. type: Plain text
5112 #: original/man1/flex.1:2844
5113 msgid ""
5114 "The main design goal of I<flex> is that it generate high-performance "
5115 "scanners. It has been optimized for dealing well with large sets of rules. "
5116 "Aside from the effects on scanner speed of the table compression B<-C> "
5117 "options outlined above, there are a number of options/actions which degrade "
5118 "performance. These are, from most expensive to least:"
5119 msgstr ""
5120 "El principal objetivo de diseño de I<flex> es que genere analizadores de alto "
5121 "rendimiento. Este ha sido optimizado para comportarse bien con conjuntos "
5122 "grandes de reglas. Aparte de los efectos sobre la velocidad del analizador "
5123 "con las opciones de compresión de tablas B<-C> anteriormente introducidas, "
5124 "hay un número de opciones/acciones que degradan el rendimiento. Estas son, "
5125 "desde la más costosa a la menos:"
5126
5127 #. type: Plain text
5128 #: original/man1/flex.1:2849
5129 #, no-wrap
5130 msgid ""
5131 " REJECT\n"
5132 " %option yylineno\n"
5133 " arbitrary trailing context\n"
5134 msgstr ""
5135 " REJECT\n"
5136 " %option yylineno\n"
5137 " contexto posterior arbitrario\n"
5138
5139 #. type: Plain text
5140 #: original/man1/flex.1:2854
5141 #, no-wrap
5142 msgid ""
5143 " pattern sets that require backing up\n"
5144 " %array\n"
5145 " %option interactive\n"
5146 " %option always-interactive\n"
5147 msgstr ""
5148 " conjunto de patrones que requieren retroceso\n"
5149 " %array\n"
5150 " %option interactive\n"
5151 " %option always-interactive\n"
5152
5153 #. type: Plain text
5154 #: original/man1/flex.1:2857
5155 #, no-wrap
5156 msgid ""
5157 " '^' beginning-of-line operator\n"
5158 " yymore()\n"
5159 msgstr ""
5160 " '^' operador de comienzo de línea\n"
5161 " yymore()\n"
5162
5163 #. type: Plain text
5164 #: original/man1/flex.1:2868
5165 msgid ""
5166 "with the first three all being quite expensive and the last two being quite "
5167 "cheap. Note also that B<unput()> is implemented as a routine call that "
5168 "potentially does quite a bit of work, while B<yyless()> is a quite-cheap "
5169 "macro; so if just putting back some excess text you scanned, use B<yyless().>"
5170 msgstr ""
5171 "siendo las tres primeras bastante costosas y las dos últimas bastante "
5172 "económicas. Fíjese también que B<unput()> se implementa como una llamada de "
5173 "rutina que potencialmente hace bastante trabajo, mientras que B<yyless()> es "
5174 "una macro bastante económica; así que si está devolviendo algún texto "
5175 "excedente que ha analizado, use B<yyless().>"
5176
5177 #. type: Plain text
5178 #: original/man1/flex.1:2872
5179 msgid ""
5180 "B<REJECT> should be avoided at all costs when performance is important. It "
5181 "is a particularly expensive option."
5182 msgstr ""
5183 "B<REJECT> debería evitarse a cualquier precio cuando el rendimiento es "
5184 "importante. Esta es una opción particularmente cara."
5185
5186 #. type: Plain text
5187 #: original/man1/flex.1:2880
5188 msgid ""
5189 "Getting rid of backing up is messy and often may be an enormous amount of "
5190 "work for a complicated scanner. In principal, one begins by using the B<-b> "
5191 "flag to generate a I<lex.backup> file. For example, on the input"
5192 msgstr ""
5193 "Es lioso deshacerse del retroceso y a menudo podría ser una cantidad de "
5194 "trabajo enorme para un analizador complicado. En principio, uno comienza "
5195 "utilizando la bandera B<-b> para generar un archivo I<lex.backup.> Por "
5196 "ejemplo, sobre la entrada"
5197
5198 #. type: Plain text
5199 #: original/man1/flex.1:2885
5200 #, no-wrap
5201 msgid ""
5202 " %%\n"
5203 " foo return TOK_KEYWORD;\n"
5204 " foobar return TOK_KEYWORD;\n"
5205 msgstr ""
5206 " %%\n"
5207 " foo return TOK_KEYWORD;\n"
5208 " foobar return TOK_KEYWORD;\n"
5209
5210 #. type: Plain text
5211 #: original/man1/flex.1:2888
5212 msgid "the file looks like:"
5213 msgstr "el fichero tiene el siguiente aspecto:"
5214
5215 #. type: Plain text
5216 #: original/man1/flex.1:2895
5217 #, no-wrap
5218 msgid ""
5219 " State #6 is non-accepting -\n"
5220 " associated rule line numbers:\n"
5221 " 2 3\n"
5222 " out-transitions: [ o ]\n"
5223 " jam-transitions: EOF [ \\e001-n p-\\e177 ]\n"
5224 msgstr ""
5225 " El estado #6 es no-aceptar -\n"
5226 " números de línea asociados a la regla:\n"
5227 " 2 3\n"
5228 " fin de transiciones: [ o ]\n"
5229 " transiciones de bloqueo: fin de archivo (EOF) [ \\e001-n p-\\e177 ]\n"
5230
5231 #. type: Plain text
5232 #: original/man1/flex.1:2901
5233 #, no-wrap
5234 msgid ""
5235 " State #8 is non-accepting -\n"
5236 " associated rule line numbers:\n"
5237 " 3\n"
5238 " out-transitions: [ a ]\n"
5239 " jam-transitions: EOF [ \\e001-` b-\\e177 ]\n"
5240 msgstr ""
5241 " El estado #8 es no-aceptar -\n"
5242 " números de línea asociados a la regla:\n"
5243 " 3\n"
5244 " fin de transiciones: [ a ]\n"
5245 " transiciones de bloqueo: fin de archivo (EOF) [ \\e001-` b-\\e177 ]\n"
5246
5247 #. type: Plain text
5248 #: original/man1/flex.1:2907
5249 #, no-wrap
5250 msgid ""
5251 " State #9 is non-accepting -\n"
5252 " associated rule line numbers:\n"
5253 " 3\n"
5254 " out-transitions: [ r ]\n"
5255 " jam-transitions: EOF [ \\e001-q s-\\e177 ]\n"
5256 msgstr ""
5257 " El estado #9 es no-aceptar -\n"
5258 " números de línea asociados a la regla:\n"
5259 " 3\n"
5260 " fin de transiciones: [ r ]\n"
5261 " transiciones de bloqueo: fin de archivo (EOF) [ \\e001-q s-\\e177 ]\n"
5262
5263 #. type: Plain text
5264 #: original/man1/flex.1:2909
5265 #, no-wrap
5266 msgid " Compressed tables always back up.\n"
5267 msgstr " Las tablas comprimidas siempre implican un retroceso.\n"
5268
5269 #. type: Plain text
5270 #: original/man1/flex.1:2923
5271 msgid ""
5272 "The first few lines tell us that there's a scanner state in which it can make "
5273 "a transition on an 'o' but not on any other character, and that in that state "
5274 "the currently scanned text does not match any rule. The state occurs when "
5275 "trying to match the rules found at lines 2 and 3 in the input file. If the "
5276 "scanner is in that state and then reads something other than an 'o', it will "
5277 "have to back up to find a rule which is matched. With a bit of "
5278 "headscratching one can see that this must be the state it's in when it has "
5279 "seen \"fo\". When this has happened, if anything other than another 'o' is "
5280 "seen, the scanner will have to back up to simply match the 'f' (by the "
5281 "default rule)."
5282 msgstr ""
5283 "Las primeras líneas nos dicen que hay un estado del analizador en el que se "
5284 "puede hacer una transición con una 'o' pero no sobre cualquier otro caracter, "
5285 "y que en ese estado el texto recientemente analizado no empareja con ninguna "
5286 "regla. El estado ocurre cuando se intenta emparejar las reglas encontradas "
5287 "en las líneas 2 y 3 en el fichero de entrada. Si el analizador está en ese "
5288 "estado y entoces lee cualquier cosa que no sea una 'o', tendrá que retroceder "
5289 "para encontrar una regla que empareje. Con un poco de análisis uno puede ver "
5290 "que este debe ser el estado en el que se está cuando se ha visto \"fo\". "
5291 "Cuando haya ocurrido, si se ve cualquier cosa que no sea una 'o', el "
5292 "analizador tendrá que retroceder para simplemente emparejar la 'f' (por la "
5293 "regla por defecto)."
5294
5295 #. type: Plain text
5296 #: original/man1/flex.1:2929
5297 msgid ""
5298 "The comment regarding State #8 indicates there's a problem when \"foob\" has "
5299 "been scanned. Indeed, on any character other than an 'a', the scanner will "
5300 "have to back up to accept \"foo\". Similarly, the comment for State #9 "
5301 "concerns when \"fooba\" has been scanned and an 'r' does not follow."
5302 msgstr ""
5303 "El comentario que tiene que ver con el Estado #8 indica que hay un problema "
5304 "cuando se analiza \"foob\". En efecto, con cualquier caracter que no sea una "
5305 "'a', el analizador tendrá que retroceder para aceptar \"foo\". De forma "
5306 "similar, el comentario para el Estado #9 tiene que ver cuando se ha analizado "
5307 "\"fooba\" y no le sigue una 'r'."
5308
5309 #. type: Plain text
5310 #: original/man1/flex.1:2937
5311 msgid ""
5312 "The final comment reminds us that there's no point going to all the trouble "
5313 "of removing backing up from the rules unless we're using B<-Cf> or B<-CF,> "
5314 "since there's no performance gain doing so with compressed scanners."
5315 msgstr ""
5316 "El comentario final nos recuerda que no mecere la pena todo el trabajo para "
5317 "eliminar el retroceso de las reglas a menos que estemos usando B<-Cf> o B<-CF,"
5318 "> y que no hay ninguna mejora del rendimiento haciéndolo con analizadores "
5319 "comprimidos."
5320
5321 #. type: Plain text
5322 #: original/man1/flex.1:2939
5323 msgid "The way to remove the backing up is to add \"error\" rules:"
5324 msgstr "La manera de quitar los retrocesos es añadiendo reglas de \"error\":"
5325
5326 #. type: Plain text
5327 #: original/man1/flex.1:2944 original/man1/flex.1:2961
5328 #, no-wrap
5329 msgid ""
5330 " %%\n"
5331 " foo return TOK_KEYWORD;\n"
5332 " foobar return TOK_KEYWORD;\n"
5333 msgstr ""
5334 " %%\n"
5335 " foo return TOK_KEYWORD;\n"
5336 " foobar return TOK_KEYWORD;\n"
5337
5338 #. type: Plain text
5339 #: original/man1/flex.1:2951
5340 #, no-wrap
5341 msgid ""
5342 " fooba |\n"
5343 " foob |\n"
5344 " fo {\n"
5345 " /* false alarm, not really a keyword */\n"
5346 " return TOK_ID;\n"
5347 " }\n"
5348 msgstr ""
5349 " fooba |\n"
5350 " foob |\n"
5351 " fo {\n"
5352 " /* falsa alarma, realmente no es una palabra clave */\n"
5353 " return TOK_ID;\n"
5354 " }\n"
5355
5356 #. type: Plain text
5357 #: original/man1/flex.1:2956
5358 msgid ""
5359 "Eliminating backing up among a list of keywords can also be done using a "
5360 "\"catch-all\" rule:"
5361 msgstr ""
5362 "La eliminación de retroceso en una lista de palabras clave también puede "
5363 "hacerse utilizando una regla \"atrápalo-todo\":"
5364
5365 #. type: Plain text
5366 #: original/man1/flex.1:2963
5367 #, no-wrap
5368 msgid " [a-z]+ return TOK_ID;\n"
5369 msgstr " [a-z]+ return TOK_ID;\n"
5370
5371 #. type: Plain text
5372 #: original/man1/flex.1:2966
5373 msgid "This is usually the best solution when appropriate."
5374 msgstr "Normalmente esta es la mejor solución cuando sea adecuada."
5375
5376 #. type: Plain text
5377 #: original/man1/flex.1:2975
5378 msgid ""
5379 "Backing up messages tend to cascade. With a complicated set of rules it's "
5380 "not uncommon to get hundreds of messages. If one can decipher them, though, "
5381 "it often only takes a dozen or so rules to eliminate the backing up (though "
5382 "it's easy to make a mistake and have an error rule accidentally match a valid "
5383 "token. A possible future I<flex> feature will be to automatically add rules "
5384 "to eliminate backing up)."
5385 msgstr ""
5386 "Los mensajes sobre retrocesos tienden a aparecer en cascada. Con un conjunto "
5387 "complicado de reglas no es poco común obtener cientos de mensajes. Si uno "
5388 "puede descifrarlos, sin embargo, a menudo sólo hay que tomar una docena de "
5389 "reglas o algo así para eliminar los retrocesos (ya que es fácil cometer una "
5390 "equivocación y tener una regla de error que reconozca un token válido. Una "
5391 "posible característica futura de I<flex> será añadir reglas automáticamente "
5392 "para eliminar el retroceso)."
5393
5394 #. type: Plain text
5395 #: original/man1/flex.1:2980
5396 msgid ""
5397 "It's important to keep in mind that you gain the benefits of eliminating "
5398 "backing up only if you eliminate I<every> instance of backing up. Leaving "
5399 "just one means you gain nothing."
5400 msgstr ""
5401 "Es importante tener en cuenta que se obtienen los beneficios de eliminar el "
5402 "retroceso sólo si elimina I<cada> instancia del retroceso. Dejar solamente "
5403 "una significa que no ha ganado absolutamente nada."
5404
5405 #. type: Plain text
5406 #: original/man1/flex.1:2986
5407 msgid ""
5408 "I<Variable> trailing context (where both the leading and trailing parts do "
5409 "not have a fixed length) entails almost the same performance loss as "
5410 "B<REJECT> (i.e., substantial). So when possible a rule like:"
5411 msgstr ""
5412 "El contexto posterior I<variable> (donde la parte delantera y posterior no "
5413 "tienen una longitud fija) supone casi la misma pérdida de rendimiento que "
5414 "B<REJECT> (es decir, substanciales). Así que cuando sea posible una regla "
5415 "como esta:"
5416
5417 #. type: Plain text
5418 #: original/man1/flex.1:2990
5419 #, no-wrap
5420 msgid ""
5421 " %%\n"
5422 " mouse|rat/(cat|dog) run();\n"
5423 msgstr ""
5424 " %%\n"
5425 " raton|rata/(gato|perro) correr();\n"
5426
5427 #. type: Plain text
5428 #: original/man1/flex.1:2993
5429 msgid "is better written:"
5430 msgstr "es mejor escribirla así:"
5431
5432 #. type: Plain text
5433 #: original/man1/flex.1:2998
5434 #, no-wrap
5435 msgid ""
5436 " %%\n"
5437 " mouse/cat|dog run();\n"
5438 " rat/cat|dog run();\n"
5439 msgstr ""
5440 " %%\n"
5441 " raton/gato|perro correr();\n"
5442 " rata/gato|perro correr();\n"
5443
5444 #. type: Plain text
5445 #: original/man1/flex.1:3001
5446 msgid "or as"
5447 msgstr "o así"
5448
5449 #. type: Plain text
5450 #: original/man1/flex.1:3006
5451 #, no-wrap
5452 msgid ""
5453 " %%\n"
5454 " mouse|rat/cat run();\n"
5455 " mouse|rat/dog run();\n"
5456 msgstr ""
5457 " %%\n"
5458 " raton|rata/gato correr();\n"
5459 " raton|rata/perro correr();\n"
5460
5461 #. type: Plain text
5462 #: original/man1/flex.1:3012
5463 msgid ""
5464 "Note that here the special '|' action does I<not> provide any savings, and "
5465 "can even make things worse (see Deficiencies / Bugs below)."
5466 msgstr ""
5467 "Fíjese que aquí la acción especial '|' I<no> ofrece ningún ahorro, y puede "
5468 "incluso hacer las cosas peor (ver Deficiencias / Errores más abajo)."
5469
5470 #. type: Plain text
5471 #: original/man1/flex.1:3022
5472 msgid ""
5473 "Another area where the user can increase a scanner's performance (and one "
5474 "that's easier to implement) arises from the fact that the longer the tokens "
5475 "matched, the faster the scanner will run. This is because with long tokens "
5476 "the processing of most input characters takes place in the (short) inner "
5477 "scanning loop, and does not often have to go through the additional work of "
5478 "setting up the scanning environment (e.g., B<yytext)> for the action. Recall "
5479 "the scanner for C comments:"
5480 msgstr ""
5481 "Otro área donde el usuario puede incrementar el rendimiento del analizador (y "
5482 "una que es más fácil de implementar) surge del hecho que cuanto más tarde se "
5483 "empareje un token, más rápido irá el analizador. Esto es debido a que con "
5484 "tokens grandes el procesamiento de la mayoría de los caracteres de entrada "
5485 "tiene lugar en el (corto) bucle de análisis más interno, y no tiene que ir "
5486 "tan a menudo a hacer el trabajo de más para constituir el entorno del "
5487 "analizador (p.ej., B<yytext)> para la acción. Recuerde el analizador para "
5488 "los comentarios en C:"
5489
5490 #. type: Plain text
5491 #: original/man1/flex.1:3034
5492 #, no-wrap
5493 msgid ""
5494 " E<lt>commentE<gt>[^*\\en]*\n"
5495 " E<lt>commentE<gt>\"*\"+[^*/\\en]*\n"
5496 " E<lt>commentE<gt>\\en ++line_num;\n"
5497 " E<lt>commentE<gt>\"*\"+\"/\" BEGIN(INITIAL);\n"
5498 msgstr ""
5499 " E<lt>comentarioE<gt>[^*\\en]*\n"
5500 " E<lt>comentarioE<gt>\"*\"+[^*/\\en]*\n"
5501 " E<lt>comentarioE<gt>\\en ++num_linea;\n"
5502 " E<lt>comentarioE<gt>\"*\"+\"/\" BEGIN(INITIAL);\n"
5503
5504 #. type: Plain text
5505 #: original/man1/flex.1:3037
5506 msgid "This could be sped up by writing it as:"
5507 msgstr "Esto podría acelerarse escribiéndolo como:"
5508
5509 #. type: Plain text
5510 #: original/man1/flex.1:3050
5511 #, no-wrap
5512 msgid ""
5513 " E<lt>commentE<gt>[^*\\en]*\n"
5514 " E<lt>commentE<gt>[^*\\en]*\\en ++line_num;\n"
5515 " E<lt>commentE<gt>\"*\"+[^*/\\en]*\n"
5516 " E<lt>commentE<gt>\"*\"+[^*/\\en]*\\en ++line_num;\n"
5517 " E<lt>commentE<gt>\"*\"+\"/\" BEGIN(INITIAL);\n"
5518 msgstr ""
5519 " E<lt>comentarioE<gt>[^*\\en]*\n"
5520 " E<lt>comentarioE<gt>[^*\\en]*\\en ++num_linea;\n"
5521 " E<lt>comentarioE<gt>\"*\"+[^*/\\en]*\n"
5522 " E<lt>comentarioE<gt>\"*\"+[^*/\\en]*\\en ++num_linea;\n"
5523 " E<lt>comentarioE<gt>\"*\"+\"/\" BEGIN(INITIAL);\n"
5524
5525 #. type: Plain text
5526 #: original/man1/flex.1:3062
5527 msgid ""
5528 "Now instead of each newline requiring the processing of another action, "
5529 "recognizing the newlines is \"distributed\" over the other rules to keep the "
5530 "matched text as long as possible. Note that I<adding> rules does I<not> slow "
5531 "down the scanner! The speed of the scanner is independent of the number of "
5532 "rules or (modulo the considerations given at the beginning of this section) "
5533 "how complicated the rules are with regard to operators such as '*' and '|'."
5534 msgstr ""
5535 "Ahora en lugar de que cada línea nueva requiera el procesamiento de otra "
5536 "regla, el reconocimiento de las líneas nuevas se \"distribuye\" sobre las "
5537 "otras reglas para mantener el texto reconocido tan largo como sea posible. "
5538 "¡Fíjese que el I<añadir> reglas I<no> ralentiza el analizador! La velocidad "
5539 "del analizador es independiente del número de reglas o (dadas las "
5540 "consideraciones dadas al inicio de esta sección) cuán complicadas sean las "
5541 "reglas respecto a operadores tales como '*' y '|'."
5542
5543 #. type: Plain text
5544 #: original/man1/flex.1:3067
5545 msgid ""
5546 "A final example in speeding up a scanner: suppose you want to scan through a "
5547 "file containing identifiers and keywords, one per line and with no other "
5548 "extraneous characters, and recognize all the keywords. A natural first "
5549 "approach is:"
5550 msgstr ""
5551 "Un ejemplo final sobre la aceleración de un analizador: suponga que quiere "
5552 "analizar un fichero que contiene identificadores y palabras clave, una por "
5553 "línea y sin ningún caracter extraño, y reconocer todas las palabras clave. "
5554 "Una primera aproximación natural es:"
5555
5556 #. type: Plain text
5557 #: original/man1/flex.1:3076 original/man1/flex.1:3090
5558 #, no-wrap
5559 msgid ""
5560 " %%\n"
5561 " asm |\n"
5562 " auto |\n"
5563 " break |\n"
5564 " ... etc ...\n"
5565 " volatile |\n"
5566 " while /* it's a keyword */\n"
5567 msgstr ""
5568 " %%\n"
5569 " asm |\n"
5570 " auto |\n"
5571 " break |\n"
5572 " ... etc ...\n"
5573 " volatile |\n"
5574 " while /* es una palabra clave */\n"
5575
5576 #. type: Plain text
5577 #: original/man1/flex.1:3078
5578 #, no-wrap
5579 msgid " .|\\en /* it's not a keyword */\n"
5580 msgstr " .|\\en /* no es una palabra clave */\n"
5581
5582 #. type: Plain text
5583 #: original/man1/flex.1:3081
5584 msgid "To eliminate the back-tracking, introduce a catch-all rule:"
5585 msgstr "Para eliminar el retroceso, introduzca una regla atrápalo-todo:"
5586
5587 #. type: Plain text
5588 #: original/man1/flex.1:3093
5589 #, no-wrap
5590 msgid ""
5591 " [a-z]+ |\n"
5592 " .|\\en /* it's not a keyword */\n"
5593 msgstr ""
5594 " [a-z]+ |\n"
5595 " .|\\en /* no es una palabra clave */\n"
5596
5597 #. type: Plain text
5598 #: original/man1/flex.1:3099
5599 msgid ""
5600 "Now, if it's guaranteed that there's exactly one word per line, then we can "
5601 "reduce the total number of matches by a half by merging in the recognition of "
5602 "newlines with that of the other tokens:"
5603 msgstr ""
5604 "Ahora, si se garantiza que hay exáctamente una palabra por línea, entonces "
5605 "podemos reducir el número total de emparejamientos por la mitad mezclando el "
5606 "reconocimiento de líneas nuevas con las de los otros tokens:"
5607
5608 #. type: Plain text
5609 #: original/man1/flex.1:3108 original/man1/flex.1:3137
5610 #, no-wrap
5611 msgid ""
5612 " %%\n"
5613 " asm\\en |\n"
5614 " auto\\en |\n"
5615 " break\\en |\n"
5616 " ... etc ...\n"
5617 " volatile\\en |\n"
5618 " while\\en /* it's a keyword */\n"
5619 msgstr ""
5620 " %%\n"
5621 " asm\\en |\n"
5622 " auto\\en |\n"
5623 " break\\en |\n"
5624 " ... etc ...\n"
5625 " volatile\\en |\n"
5626 " while\\en /* es una palabra clave */\n"
5627
5628 #. type: Plain text
5629 #: original/man1/flex.1:3111
5630 #, no-wrap
5631 msgid ""
5632 " [a-z]+\\en |\n"
5633 " .|\\en /* it's not a keyword */\n"
5634 msgstr ""
5635 " [a-z]+\\en |\n"
5636 " .|\\en /* no es una palabra clave */\n"
5637
5638 #. type: Plain text
5639 #: original/man1/flex.1:3128
5640 msgid ""
5641 "One has to be careful here, as we have now reintroduced backing up into the "
5642 "scanner. In particular, while I<we> know that there will never be any "
5643 "characters in the input stream other than letters or newlines, I<flex> can't "
5644 "figure this out, and it will plan for possibly needing to back up when it has "
5645 "scanned a token like \"auto\" and then the next character is something other "
5646 "than a newline or a letter. Previously it would then just match the \"auto\" "
5647 "rule and be done, but now it has no \"auto\" rule, only a \"auto\\en\" rule. "
5648 "To eliminate the possibility of backing up, we could either duplicate all "
5649 "rules but without final newlines, or, since we never expect to encounter such "
5650 "an input and therefore don't how it's classified, we can introduce one more "
5651 "catch-all rule, this one which doesn't include a newline:"
5652 msgstr ""
5653 "Uno tiene que ser cuidadoso aquí, ya que hemos reintroducido retroceso en el "
5654 "analizador. En particular, aunque I<nosotros> sepamos que ahí nunca habrán "
5655 "otros caracteres en el flujo de entrada que no sean letras o líneas nuevas, "
5656 "I<flex> no puede figurarse eso, y planeará la posible necesidad de retroceder "
5657 "cuando haya analizado un token como \"auto\" y el próximo caracter sea algo "
5658 "distinto a una línea nueva o una letra. Previamente este podría entonces "
5659 "emparejar la regla \"auto\" y estar todo hecho, pero ahora este no tiene una "
5660 "regla \"auto\", solamente una regla \"auto\\en\". Para eliminar la "
5661 "posibilidad de retroceso, podríamos o bien duplicar todas las reglas pero sin "
5662 "línea nueva al final, o, ya que nunca esperamos encontrar tal entrada y por "
5663 "lo tanto ni cómo es clasificada, podemos introducir una regla atrápalo-todo "
5664 "más, esta que no incluye una línea nueva:"
5665
5666 #. type: Plain text
5667 #: original/man1/flex.1:3141
5668 #, no-wrap
5669 msgid ""
5670 " [a-z]+\\en |\n"
5671 " [a-z]+ |\n"
5672 " .|\\en /* it's not a keyword */\n"
5673 msgstr ""
5674 " [a-z]+\\en |\n"
5675 " [a-z]+ |\n"
5676 " .|\\en /* no es una palabra clave */\n"
5677
5678 #. type: Plain text
5679 #: original/man1/flex.1:3148
5680 msgid ""
5681 "Compiled with B<-Cf,> this is about as fast as one can get a I<flex> scanner "
5682 "to go for this particular problem."
5683 msgstr ""
5684 "Compilado con B<-Cf,> esto es casi tan rápido como lo que uno puede obtener "
5685 "de un analizador de I<flex> para este problema en particular."
5686
5687 #. type: Plain text
5688 #: original/man1/flex.1:3156
5689 msgid ""
5690 "A final note: I<flex> is slow when matching NUL's, particularly when a token "
5691 "contains multiple NUL's. It's best to write rules which match I<short> "
5692 "amounts of text if it's anticipated that the text will often include NUL's."
5693 msgstr ""
5694 "Una nota final: I<flex> es lento cuando empareja NUL's, particularmente "
5695 "cuando un token contiene múltiples NUL's. Es mejor escribir reglas que "
5696 "emparejen I<cortas> cantidades de texto si se anticipa que el texto incluirá "
5697 "NUL's a menudo."
5698
5699 #. type: Plain text
5700 #: original/man1/flex.1:3165
5701 msgid ""
5702 "Another final note regarding performance: as mentioned above in the section "
5703 "How the Input is Matched, dynamically resizing B<yytext> to accommodate huge "
5704 "tokens is a slow process because it presently requires that the (huge) token "
5705 "be rescanned from the beginning. Thus if performance is vital, you should "
5706 "attempt to match \"large\" quantities of text but not \"huge\" quantities, "
5707 "where the cutoff between the two is at about 8K characters/token."
5708 msgstr ""
5709 "Otra nota final en relación con el rendimiento: tal y como se mencionó en la "
5710 "sección Cómo se Reconoce la Entrada, el reajuste dinámico de B<yytext> para "
5711 "acomodar tokens enormes es un proceso lento porque ahora requiere que el "
5712 "token (inmenso) sea reanalizado desde el principio. De esta manera si el "
5713 "rendimiento es vital, debería intentar emparejar \"grandes\" cantidades de "
5714 "texto pero no \"inmensas\" cantidades, donde el punto medio está en torno a "
5715 "los 8K caracteres/token."
5716
5717 #. type: SH
5718 #: original/man1/flex.1:3165
5719 #, no-wrap
5720 msgid "GENERATING C++ SCANNERS"
5721 msgstr "GENERANDO ESCÁNERES EN C++"
5722
5723 #. type: Plain text
5724 #: original/man1/flex.1:3182
5725 msgid ""
5726 "I<flex> provides two different ways to generate scanners for use with C++. "
5727 "The first way is to simply compile a scanner generated by I<flex> using a C++ "
5728 "compiler instead of a C compiler. You should not encounter any compilations "
5729 "errors (please report any you find to the email address given in the Author "
5730 "section below). You can then use C++ code in your rule actions instead of C "
5731 "code. Note that the default input source for your scanner remains I<yyin,> "
5732 "and default echoing is still done to I<yyout.> Both of these remain I<FILE *> "
5733 "variables and not C++ I<streams.>"
5734 msgstr ""
5735 "I<flex> ofrece dos maneras distintas de generar analizadores para usar con C+"
5736 "+. La primera manera es simplemente compilar un analizador generado por "
5737 "I<flex> usando un compilador de C++ en lugar de un compilador de C. No "
5738 "debería encontrarse ante ningún error de compilación (por favor informe de "
5739 "cualquier error que encuentre a la dirección de correo electrónico dada en la "
5740 "sección Autores más abajo). Puede entonces usar código C++ en sus acciones "
5741 "de las reglas en lugar de código C. Fíjese que la fuente de entrada por "
5742 "defecto para su analizador permanece como I<yyin,> y la repetición por "
5743 "defecto se hace aún a I<yyout.> Ambos permanecen como variables I<FILE *> y "
5744 "no como I<flujos> de C++."
5745
5746 #. type: Plain text
5747 #: original/man1/flex.1:3199
5748 msgid ""
5749 "You can also use I<flex> to generate a C++ scanner class, using the B<-+> "
5750 "option (or, equivalently, B<%option c++),> which is automatically specified "
5751 "if the name of the flex executable ends in a '+', such as I<flex++.> When "
5752 "using this option, flex defaults to generating the scanner to the file B<lex."
5753 "yy.cc> instead of B<lex.yy.c.> The generated scanner includes the header file "
5754 "I<FlexLexer.h,> which defines the interface to two C++ classes."
5755 msgstr ""
5756 "También puede utilizar I<flex> para generar un analizador como una clase de C+"
5757 "+, utilizando la opción B<-+> (o, equivalentemente, B<%option c++),> que se "
5758 "especifica automáticamente si el nombre del ejecutable de flex finaliza con "
5759 "un '+', tal como I<flex++.> Cuando se usa esta opcióx, flex establece por "
5760 "defecto la generación del analizador al fichero B<lex.yy.cc> en vez de B<lex."
5761 "yy.c.> El analizador generado incluye el fichero de cabecera I<FlexLexer.h,> "
5762 "que define el interfaz con las dos clases de C++."
5763
5764 #. type: Plain text
5765 #: original/man1/flex.1:3204
5766 msgid ""
5767 "The first class, B<FlexLexer,> provides an abstract base class defining the "
5768 "general scanner class interface. It provides the following member functions:"
5769 msgstr ""
5770 "La primera clase, B<FlexLexer,> ofrece una clase base abstracta definiendo la "
5771 "interfaz a la clase del analizador general. Este provee las siguientes "
5772 "funciones miembro:"
5773
5774 #. type: TP
5775 #: original/man1/flex.1:3204
5776 #, no-wrap
5777 msgid "B<const char* YYText()>"
5778 msgstr "B<const char* YYText()>"
5779
5780 #. type: Plain text
5781 #: original/man1/flex.1:3208
5782 msgid ""
5783 "returns the text of the most recently matched token, the equivalent of "
5784 "B<yytext.>"
5785 msgstr ""
5786 "retorna el texto del token reconocido más recientemente, el equivalente a "
5787 "B<yytext.>"
5788
5789 #. type: TP
5790 #: original/man1/flex.1:3208
5791 #, no-wrap
5792 msgid "B<int YYLeng()>"
5793 msgstr "B<int YYLeng()>"
5794
5795 #. type: Plain text
5796 #: original/man1/flex.1:3212
5797 msgid ""
5798 "returns the length of the most recently matched token, the equivalent of "
5799 "B<yyleng.>"
5800 msgstr ""
5801 "retorna la longitud del token reconocido más recientemente, el equivalente a "
5802 "B<yyleng.>"
5803
5804 #. type: TP
5805 #: original/man1/flex.1:3212
5806 #, no-wrap
5807 msgid "B<int lineno() const>"
5808 msgstr "B<int lineno() const>"
5809
5810 #. type: Plain text
5811 #: original/man1/flex.1:3222
5812 msgid ""
5813 "returns the current input line number (see B<%option yylineno),> or B<1> if B<"
5814 "%option yylineno> was not used."
5815 msgstr ""
5816 "retorna el número de línea de entrada actual (ver B<%option yylineno),> o "
5817 "B<1> si no se usó B<%option yylineno>."
5818
5819 #. type: TP
5820 #: original/man1/flex.1:3222
5821 #, no-wrap
5822 msgid "B<void set_debug( int flag )>"
5823 msgstr "B<void set_debug( int flag )>"
5824
5825 #. type: Plain text
5826 #: original/man1/flex.1:3230
5827 msgid ""
5828 "sets the debugging flag for the scanner, equivalent to assigning to "
5829 "B<yy_flex_debug> (see the Options section above). Note that you must build "
5830 "the scanner using B<%option debug> to include debugging information in it."
5831 msgstr ""
5832 "activa la bandera de depuración para el analizador, equivalente a la "
5833 "asignación de B<yy_flex_debug> (ver la sección Opciones más arriba). Fíjese "
5834 "que debe construir el analizador utilizando B<%option debug> para incluir "
5835 "información de depuración en este."
5836
5837 #. type: TP
5838 #: original/man1/flex.1:3230
5839 #, no-wrap
5840 msgid "B<int debug() const>"
5841 msgstr "B<int debug() const>"
5842
5843 #. type: Plain text
5844 #: original/man1/flex.1:3233
5845 msgid "returns the current setting of the debugging flag."
5846 msgstr "retorna el estado actual de la bandera de depuración."
5847
5848 #. type: Plain text
5849 #: original/man1/flex.1:3248
5850 msgid ""
5851 "Also provided are member functions equivalent to B<yy_switch_to_buffer(),> "
5852 "B<yy_create_buffer()> (though the first argument is an B<istream*> object "
5853 "pointer and not a B<FILE*),> B<yy_flush_buffer(),> B<yy_delete_buffer(),> and "
5854 "B<yyrestart()> (again, the first argument is a B<istream*> object pointer)."
5855 msgstr ""
5856 "También se proveen funciones miembro equivalentes a B<yy_switch_to_buffer(),> "
5857 "B<yy_create_buffer()> (aunque el primer argumento es un puntero a objeto "
5858 "B<istream*> y no un B<FILE*),> B<yy_flush_buffer(),> B<yy_delete_buffer(),> y "
5859 "B<yyrestart()> (de nuevo, el primer argumento es un puntero a objeto "
5860 "B<istream*>)."
5861
5862 #. type: Plain text
5863 #: original/man1/flex.1:3256
5864 msgid ""
5865 "The second class defined in I<FlexLexer.h> is B<yyFlexLexer,> which is "
5866 "derived from B<FlexLexer.> It defines the following additional member "
5867 "functions:"
5868 msgstr ""
5869 "La segunda clase definida en I<FlexLexer.h> es B<yyFlexLexer,> que se deriva "
5870 "de B<FlexLexer.> Esta define las siguientes funciones miembro adicionales:"
5871
5872 #. type: TP
5873 #: original/man1/flex.1:3256
5874 #, no-wrap
5875 msgid "B<yyFlexLexer( istream* arg_yyin = 0, ostream* arg_yyout = 0 )>"
5876 msgstr "B<yyFlexLexer( istream* arg_yyin = 0, ostream* arg_yyout = 0 )>"
5877
5878 #. type: Plain text
5879 #: original/man1/flex.1:3267
5880 msgid ""
5881 "constructs a B<yyFlexLexer> object using the given streams for input and "
5882 "output. If not specified, the streams default to B<cin> and B<cout,> "
5883 "respectively."
5884 msgstr ""
5885 "construye un objeto B<yyFlexLexer> usando los flujos dados para la entrada y "
5886 "salida. Si no se especifica, los flujos se establecen por defecto a B<cin> y "
5887 "B<cout,> respectivamente."
5888
5889 #. type: TP
5890 #: original/man1/flex.1:3267
5891 #, no-wrap
5892 msgid "B<virtual int yylex()>"
5893 msgstr "B<virtual int yylex()>"
5894
5895 #. type: Plain text
5896 #: original/man1/flex.1:3296
5897 msgid ""
5898 "performs the same role is B<yylex()> does for ordinary flex scanners: it "
5899 "scans the input stream, consuming tokens, until a rule's action returns a "
5900 "value. If you derive a subclass B<S> from B<yyFlexLexer> and want to access "
5901 "the member functions and variables of B<S> inside B<yylex(),> then you need "
5902 "to use B<%option yyclass=\"S\"> to inform I<flex> that you will be using that "
5903 "subclass instead of B<yyFlexLexer.> In this case, rather than generating "
5904 "B<yyFlexLexer::yylex(),> I<flex> generates B<S::yylex()> (and also generates "
5905 "a dummy B<yyFlexLexer::yylex()> that calls B<yyFlexLexer::LexerError()> if "
5906 "called)."
5907 msgstr ""
5908 "hace el mismo papel que B<yylex()> en los analizadores de flex ordinarios: "
5909 "analiza el flujo de entrada, consumiendo tokens, hasta que la acción de una "
5910 "regla retorne un valor. Si usted deriva una subclase B<S> a partir de "
5911 "B<yyFlexLexer> y quiere acceder a las funciones y variables miembro de B<S> "
5912 "dentro de B<yylex(),> entonces necesita utilizar B<%option yyclass=\"S\"> "
5913 "para informar a I<flex> que estará utilizando esa subclase en lugar de "
5914 "B<yyFlexLexer.> Es este caso, en vez de generar B<yyFlexLexer::yylex(),> "
5915 "I<flex> genera B<S::yylex()> (y también genera un substituto B<yyFlexLexer::"
5916 "yylex()> que llama a B<yyFlexLexer::LexerError()> si se invoca)."
5917
5918 #. type: TP
5919 #: original/man1/flex.1:3296
5920 #, no-wrap
5921 msgid "B<virtual void switch_streams(istream* new_in = 0,>"
5922 msgstr "B<virtual void switch_streams(istream* new_in = 0,>"
5923
5924 #. type: Plain text
5925 #: original/man1/flex.1:3313
5926 msgid ""
5927 "B<ostream* new_out = 0)> reassigns B<yyin> to B<new_in> (if non-nil) and "
5928 "B<yyout> to B<new_out> (ditto), deleting the previous input buffer if B<yyin> "
5929 "is reassigned."
5930 msgstr ""
5931 "B<ostream* new_out = 0)> reasigna B<yyin> a B<new_in> (si no es nulo) e "
5932 "B<yyout> a B<new_out> (idem), borrando el buffer de entrada anterior si se "
5933 "reasigna B<yyin>."
5934
5935 #. type: TP
5936 #: original/man1/flex.1:3313
5937 #, no-wrap
5938 msgid "B<int yylex( istream* new_in, ostream* new_out = 0 )>"
5939 msgstr "B<int yylex( istream* new_in, ostream* new_out = 0 )>"
5940
5941 #. type: Plain text
5942 #: original/man1/flex.1:3320
5943 msgid ""
5944 "first switches the input streams via B<switch_streams( new_in, new_out )> and "
5945 "then returns the value of B<yylex().>"
5946 msgstr ""
5947 "primero conmuta el flujo de entrada via B<switch_streams( new_in, new_out )> "
5948 "y entonces retorna el valor de B<yylex().>"
5949
5950 #. type: Plain text
5951 #: original/man1/flex.1:3325
5952 msgid ""
5953 "In addition, B<yyFlexLexer> defines the following protected virtual functions "
5954 "which you can redefine in derived classes to tailor the scanner:"
5955 msgstr ""
5956 "Además, B<yyFlexLexer> define las siguientes funciones virtuales protegidas "
5957 "que puede redefinir en clases derivadas para adaptar el analizador:"
5958
5959 #. type: TP
5960 #: original/man1/flex.1:3325
5961 #, no-wrap
5962 msgid "B<virtual int LexerInput( char* buf, int max_size )>"
5963 msgstr "B<virtual int LexerInput( char* buf, int max_size )>"
5964
5965 #. type: Plain text
5966 #: original/man1/flex.1:3345
5967 msgid ""
5968 "reads up to B<max_size> characters into B<buf> and returns the number of "
5969 "characters read. To indicate end-of-input, return 0 characters. Note that "
5970 "\"interactive\" scanners (see the B<-B> and B<-I> flags) define the macro "
5971 "B<YY_INTERACTIVE.> If you redefine B<LexerInput()> and need to take different "
5972 "actions depending on whether or not the scanner might be scanning an "
5973 "interactive input source, you can test for the presence of this name via "
5974 "B<#ifdef.>"
5975 msgstr ""
5976 "lee hasta B<max_size> caracteres en B<buf> y devuelve el número de caracteres "
5977 "leídos. Para indicar el fin-de-la-entrada, devuelve 0 caracteres. Fíjese "
5978 "que los analizadores \"interactivos\" (ver las banderas B<-B> y B<-I> ) "
5979 "definen la macro B<YY_INTERACTIVE.> Si usted redefine B<LexerInput()> y "
5980 "necesita tomar acciones distintas dependiendo de si el analizador está "
5981 "analizando una fuente de entrada interactivo o no, puede comprobar la "
5982 "presencia de este nombre mediante B<#ifdef.>"
5983
5984 #. type: TP
5985 #: original/man1/flex.1:3345
5986 #, no-wrap
5987 msgid "B<virtual void LexerOutput( const char* buf, int size )>"
5988 msgstr "B<virtual void LexerOutput( const char* buf, int size )>"
5989
5990 #. type: Plain text
5991 #: original/man1/flex.1:3354
5992 msgid ""
5993 "writes out B<size> characters from the buffer B<buf,> which, while NUL-"
5994 "terminated, may also contain \"internal\" NUL's if the scanner's rules can "
5995 "match text with NUL's in them."
5996 msgstr ""
5997 "escribe a la salida B<size> caracteres desde el buffer B<buf,> que, mientras "
5998 "termine en NUL, puede contener también NUL's \"internos\" si las reglas del "
5999 "analizador pueden emparejar texto con NUL's dentro de este."
6000
6001 #. type: TP
6002 #: original/man1/flex.1:3354
6003 #, no-wrap
6004 msgid "B<virtual void LexerError( const char* msg )>"
6005 msgstr "B<virtual void LexerError( const char* msg )>"
6006
6007 #. type: Plain text
6008 #: original/man1/flex.1:3361
6009 msgid ""
6010 "reports a fatal error message. The default version of this function writes "
6011 "the message to the stream B<cerr> and exits."
6012 msgstr ""
6013 "informa con un mensaje de error fatal. La versión por defecto de esta "
6014 "función escribe el mensaje al flujo B<cerr> y finaliza."
6015
6016 #. type: Plain text
6017 #: original/man1/flex.1:3373
6018 msgid ""
6019 "Note that a B<yyFlexLexer> object contains its I<entire> scanning state. "
6020 "Thus you can use such objects to create reentrant scanners. You can "
6021 "instantiate multiple instances of the same B<yyFlexLexer> class, and you can "
6022 "also combine multiple C++ scanner classes together in the same program using "
6023 "the B<-P> option discussed above."
6024 msgstr ""
6025 "Fíjese que un objeto B<yyFlexLexer> contiene su estado de análisis I<completo."
6026 "> Así puede utilizar tales objetos para crear analizadore reentrantes. Puede "
6027 "hacer varias instancias de la misma clase B<yyFlexLexer,> y puede combinar "
6028 "varias clases de analizadores en C++ conjuntamente en el mismo programa "
6029 "usando la opción B<-P> comentada anteriormente."
6030
6031 #. type: Plain text
6032 #: original/man1/flex.1:3379
6033 msgid ""
6034 "Finally, note that the B<%array> feature is not available to C++ scanner "
6035 "classes; you must use B<%pointer> (the default)."
6036 msgstr ""
6037 "Finalmente, note que la característica B<%array> no está disponible en clases "
6038 "de analizadores en C++; debe utilizar B<%pointer> (por defecto)."
6039
6040 #. type: Plain text
6041 #: original/man1/flex.1:3381
6042 msgid "Here is an example of a simple C++ scanner:"
6043 msgstr "Aquí hay un ejemplo de un analizador en C++ simple:"
6044
6045 #. type: Plain text
6046 #: original/man1/flex.1:3384
6047 #, no-wrap
6048 msgid " // An example of using the flex C++ scanner class.\n"
6049 msgstr " // Un ejemplo del uso de la clase analizador en C++ de flex.\n"
6050
6051 #. type: Plain text
6052 #: original/man1/flex.1:3388
6053 #, no-wrap
6054 msgid ""
6055 " %{\n"
6056 " int mylineno = 0;\n"
6057 " %}\n"
6058 msgstr ""
6059 " %{\n"
6060 " int mylineno = 0;\n"
6061 " %}\n"
6062
6063 #. type: Plain text
6064 #: original/man1/flex.1:3390
6065 #, no-wrap
6066 msgid " string \\e\"[^\\en\"]+\\e\"\n"
6067 msgstr " string \\e\"[^\\en\"]+\\e\"\n"
6068
6069 #. type: Plain text
6070 #: original/man1/flex.1:3392
6071 #, no-wrap
6072 msgid " ws [ \\et]+\n"
6073 msgstr " ws [ \\et]+\n"
6074
6075 #. type: Plain text
6076 #: original/man1/flex.1:3399
6077 #, no-wrap
6078 msgid ""
6079 " alpha [A-Za-z]\n"
6080 " dig [0-9]\n"
6081 " name ({alpha}|{dig}|\\e$)({alpha}|{dig}|[_.\\e-/$])*\n"
6082 " num1 [-+]?{dig}+\\e.?([eE][-+]?{dig}+)?\n"
6083 " num2 [-+]?{dig}*\\e.{dig}+([eE][-+]?{dig}+)?\n"
6084 " number {num1}|{num2}\n"
6085 msgstr ""
6086 " alpha [A-Za-z]\n"
6087 " dig [0-9]\n"
6088 " name ({alpha}|{dig}|\\e$)({alpha}|{dig}|[_.\\e-/$])*\n"
6089 " num1 [-+]?{dig}+\\e.?([eE][-+]?{dig}+)?\n"
6090 " num2 [-+]?{dig}*\\e.{dig}+([eE][-+]?{dig}+)?\n"
6091 " number {num1}|{num2}\n"
6092
6093 #. type: Plain text
6094 #: original/man1/flex.1:3403
6095 #, no-wrap
6096 msgid " {ws} /* skip blanks and tabs */\n"
6097 msgstr " {ws} /* evita los espacios en blanco y tabuladores */\n"
6098
6099 #. type: Plain text
6100 #: original/man1/flex.1:3406
6101 #, no-wrap
6102 msgid ""
6103 " \"/*\" {\n"
6104 " int c;\n"
6105 msgstr ""
6106 " \"/*\" {\n"
6107 " int c;\n"
6108
6109 #. type: Plain text
6110 #: original/man1/flex.1:3411
6111 #, no-wrap
6112 msgid ""
6113 " while((c = yyinput()) != 0)\n"
6114 " {\n"
6115 " if(c == '\\en')\n"
6116 " ++mylineno;\n"
6117 msgstr ""
6118 " while((c = yyinput()) != 0)\n"
6119 " {\n"
6120 " if(c == '\\en')\n"
6121 " ++mylineno;\n"
6122
6123 #. type: Plain text
6124 #: original/man1/flex.1:3421
6125 #, no-wrap
6126 msgid ""
6127 " else if(c == '*')\n"
6128 " {\n"
6129 " if((c = yyinput()) == '/')\n"
6130 " break;\n"
6131 " else\n"
6132 " unput(c);\n"
6133 " }\n"
6134 " }\n"
6135 " }\n"
6136 msgstr ""
6137 " else if(c == '*')\n"
6138 " {\n"
6139 " if((c = yyinput()) == '/')\n"
6140 " break;\n"
6141 " else\n"
6142 " unput(c);\n"
6143 " }\n"
6144 " }\n"
6145 " }\n"
6146
6147 #. type: Plain text
6148 #: original/man1/flex.1:3423
6149 #, no-wrap
6150 msgid " {number} cout E<lt>E<lt> \"number \" E<lt>E<lt> YYText() E<lt>E<lt> '\\en';\n"
6151 msgstr " {number} cout E<lt>E<lt> \"número \" E<lt>E<lt> YYText() E<lt>E<lt> '\\en';\n"
6152
6153 #. type: Plain text
6154 #: original/man1/flex.1:3425
6155 #, no-wrap
6156 msgid " \\en mylineno++;\n"
6157 msgstr " \\en mylineno++;\n"
6158
6159 #. type: Plain text
6160 #: original/man1/flex.1:3427
6161 #, no-wrap
6162 msgid " {name} cout E<lt>E<lt> \"name \" E<lt>E<lt> YYText() E<lt>E<lt> '\\en';\n"
6163 msgstr " {name} cout E<lt>E<lt> \"nombre \" E<lt>E<lt> YYText() E<lt>E<lt> '\\en';\n"
6164
6165 #. type: Plain text
6166 #: original/man1/flex.1:3429
6167 #, no-wrap
6168 msgid " {string} cout E<lt>E<lt> \"string \" E<lt>E<lt> YYText() E<lt>E<lt> '\\en';\n"
6169 msgstr " {string} cout E<lt>E<lt> \"cadena \" E<lt>E<lt> YYText() E<lt>E<lt> '\\en';\n"
6170
6171 #. type: Plain text
6172 #: original/man1/flex.1:3439
6173 #, no-wrap
6174 msgid ""
6175 " int main( int /* argc */, char** /* argv */ )\n"
6176 " {\n"
6177 " FlexLexer* lexer = new yyFlexLexer;\n"
6178 " while(lexer-E<gt>yylex() != 0)\n"
6179 " ;\n"
6180 " return 0;\n"
6181 " }\n"
6182 msgstr ""
6183 " int main( int /* argc */, char** /* argv */ )\n"
6184 " {\n"
6185 " FlexLexer* lexer = new yyFlexLexer;\n"
6186 " while(lexer-E<gt>yylex() != 0)\n"
6187 " ;\n"
6188 " return 0;\n"
6189 " }\n"
6190
6191 #. type: Plain text
6192 #: original/man1/flex.1:3453
6193 msgid ""
6194 "If you want to create multiple (different) lexer classes, you use the B<-P> "
6195 "flag (or the B<prefix=> option) to rename each B<yyFlexLexer> to some other "
6196 "B<xxFlexLexer.> You then can include B<E<lt>FlexLexer.hE<gt>> in your other "
6197 "sources once per lexer class, first renaming B<yyFlexLexer> as follows:"
6198 msgstr ""
6199 "Si desea crear varias (diferentes) clases analizadoras, use la bandera B<-P> "
6200 "(o la opción B<prefix=> ) para renombrar cada B<yyFlexLexer> a algún otro "
6201 "B<xxFlexLexer.> Entonces puede incluir B<E<lt>FlexLexer.hE<gt>> en los otros "
6202 "ficheros fuente una vez por clase analizadora, primero renombrando "
6203 "B<yyFlexLexer> como se presenta a continuación:"
6204
6205 #. type: Plain text
6206 #: original/man1/flex.1:3458
6207 #, no-wrap
6208 msgid ""
6209 " #undef yyFlexLexer\n"
6210 " #define yyFlexLexer xxFlexLexer\n"
6211 " #include E<lt>FlexLexer.hE<gt>\n"
6212 msgstr ""
6213 " #undef yyFlexLexer\n"
6214 " #define yyFlexLexer xxFlexLexer\n"
6215 " #include E<lt>FlexLexer.hE<gt>\n"
6216
6217 #. type: Plain text
6218 #: original/man1/flex.1:3462
6219 #, no-wrap
6220 msgid ""
6221 " #undef yyFlexLexer\n"
6222 " #define yyFlexLexer zzFlexLexer\n"
6223 " #include E<lt>FlexLexer.hE<gt>\n"
6224 msgstr ""
6225 " #undef yyFlexLexer\n"
6226 " #define yyFlexLexer zzFlexLexer\n"
6227 " #include E<lt>FlexLexer.hE<gt>\n"
6228
6229 #. type: Plain text
6230 #: original/man1/flex.1:3469
6231 msgid ""
6232 "if, for example, you used B<%option prefix=\"xx\"> for one of your scanners "
6233 "and B<%option prefix=\"zz\"> for the other."
6234 msgstr ""
6235 "si, por ejemplo, usted utilizó B<%option prefix=\"xx\"> para uno de sus "
6236 "analizadores y B<%option prefix=\"zz\"> para el otro."
6237
6238 #. type: Plain text
6239 #: original/man1/flex.1:3473
6240 msgid ""
6241 "IMPORTANT: the present form of the scanning class is I<experimental> and may "
6242 "change considerably between major releases."
6243 msgstr ""
6244 "IMPORTANTE: la forma actual de la clase analizadora es I<experimental> y "
6245 "podría cambiar considerablemente entre versiones principales."
6246
6247 #. type: SH
6248 #: original/man1/flex.1:3473
6249 #, no-wrap
6250 msgid "INCOMPATIBILITIES WITH LEX AND POSIX"
6251 msgstr "INCOMPATIBILIDADES CON LEX Y POSIX"
6252
6253 #. type: Plain text
6254 #: original/man1/flex.1:3489
6255 msgid ""
6256 "I<flex> is a rewrite of the AT&T Unix I<lex> tool (the two implementations do "
6257 "not share any code, though), with some extensions and incompatibilities, both "
6258 "of which are of concern to those who wish to write scanners acceptable to "
6259 "either implementation. Flex is fully compliant with the POSIX I<lex> "
6260 "specification, except that when using B<%pointer> (the default), a call to "
6261 "B<unput()> destroys the contents of B<yytext,> which is counter to the POSIX "
6262 "specification."
6263 msgstr ""
6264 "I<flex> es una reescritura de la herramienta I<lex> del Unix de AT&T (aunque "
6265 "las dos implementaciones no comparten ningún código), con algunas extensiones "
6266 "e incompatibilidades, de las que ambas conciernen a aquellos que desean "
6267 "escribir analizadores aceptables por cualquier implementación. Flex sigue "
6268 "completamente la especificación POSIX de I<lex,> excepto que cuando se "
6269 "utiliza B<%pointer> (por defecto), una llamada a B<unput()> destruye el "
6270 "contenido de B<yytext,> que va en contra de la especificación POSIX."
6271
6272 #. type: Plain text
6273 #: original/man1/flex.1:3492
6274 msgid ""
6275 "In this section we discuss all of the known areas of incompatibility between "
6276 "flex, AT&T lex, and the POSIX specification."
6277 msgstr ""
6278 "En esta sección comentaremos todas las áreas conocidas de incompatibilidades "
6279 "entre flex, lex de AT&T, y la especificación POSIX."
6280
6281 #. type: Plain text
6282 #: original/man1/flex.1:3502
6283 msgid ""
6284 "I<flex's> B<-l> option turns on maximum compatibility with the original AT&T "
6285 "I<lex> implementation, at the cost of a major loss in the generated scanner's "
6286 "performance. We note below which incompatibilities can be overcome using the "
6287 "B<-l> option."
6288 msgstr ""
6289 "La opción B<-l> de I<flex> activa la máxima compatibilidad con la "
6290 "implementación original de I<lex> de AT&T, con el coste de una mayor pérdida "
6291 "de rendimiento en el analizador generado. Indicamos más abajo qué "
6292 "incompatibilidades pueden superarse usando la opción B<-l>."
6293
6294 #. type: Plain text
6295 #: original/man1/flex.1:3507
6296 msgid "I<flex> is fully compatible with I<lex> with the following exceptions:"
6297 msgstr ""
6298 "I<flex> es totalmente compatible con I<lex> con las siguientes excepciones:"
6299
6300 #. type: Plain text
6301 #: original/man1/flex.1:3517
6302 msgid ""
6303 "The undocumented I<lex> scanner internal variable B<yylineno> is not "
6304 "supported unless B<-l> or B<%option yylineno> is used."
6305 msgstr ""
6306 "La variable interna del analizador de I<lex> sin documentar B<yylineno> no se "
6307 "ofrece a menos que se use B<-l> o B<%option yylineno>."
6308
6309 #. type: Plain text
6310 #: original/man1/flex.1:3521
6311 msgid ""
6312 "B<yylineno> should be maintained on a per-buffer basis, rather than a per-"
6313 "scanner (single global variable) basis."
6314 msgstr ""
6315 "B<yylineno> debería gestionarse por buffer, en lugar de por analizador "
6316 "(simple variable global)."
6317
6318 #. type: Plain text
6319 #: original/man1/flex.1:3524
6320 msgid "B<yylineno> is not part of the POSIX specification."
6321 msgstr "B<yylineno> no es parte de la especificación POSIX."
6322
6323 #. type: Plain text
6324 #: original/man1/flex.1:3536
6325 msgid ""
6326 "The B<input()> routine is not redefinable, though it may be called to read "
6327 "characters following whatever has been matched by a rule. If B<input()> "
6328 "encounters an end-of-file the normal B<yywrap()> processing is done. A "
6329 "``real'' end-of-file is returned by B<input()> as I<EOF.>"
6330 msgstr ""
6331 "La rutina B<input()> no es redefinible, aunque podría invocarse para leer los "
6332 "caracteres que siguen a continuación de lo que haya sido reconocido por una "
6333 "regla. Si B<input()> se encuentra con un fin-de-fichero se realiza el "
6334 "procesamiento de B<yywrap()> normal. B<input()> retorna un fin-de-fichero "
6335 "``real'' como I<EOF.>"
6336
6337 #. type: Plain text
6338 #: original/man1/flex.1:3540
6339 msgid "Input is instead controlled by defining the B<YY_INPUT> macro."
6340 msgstr "La entrada en su lugar se controla definiendo la macro B<YY_INPUT>."
6341
6342 #. type: Plain text
6343 #: original/man1/flex.1:3549
6344 msgid ""
6345 "The I<flex> restriction that B<input()> cannot be redefined is in accordance "
6346 "with the POSIX specification, which simply does not specify any way of "
6347 "controlling the scanner's input other than by making an initial assignment to "
6348 "I<yyin.>"
6349 msgstr ""
6350 "La restricción de I<flex> de que B<input()> no puede redefinirse va de "
6351 "acuerdo a la especificación POSIX, que simplemente no especifica ninguna "
6352 "manera de controlar la entrada del analizador que no sea haciendo una "
6353 "asignación inicial a I<yyin.>"
6354
6355 #. type: Plain text
6356 #: original/man1/flex.1:3553
6357 msgid ""
6358 "The B<unput()> routine is not redefinable. This restriction is in accordance "
6359 "with POSIX."
6360 msgstr ""
6361 "La rutina B<unput()> no es redefinible. Esta restricción va de acuerdo a "
6362 "POSIX."
6363
6364 #. type: Plain text
6365 #: original/man1/flex.1:3561
6366 msgid ""
6367 "I<flex> scanners are not as reentrant as I<lex> scanners. In particular, if "
6368 "you have an interactive scanner and an interrupt handler which long-jumps out "
6369 "of the scanner, and the scanner is subsequently called again, you may get the "
6370 "following message:"
6371 msgstr ""
6372 "Los analizadores de I<flex> no son tan reentrantes como los analizadores de "
6373 "I<lex.> En particular, si tiene un analizador interactivo y un gestor de "
6374 "interrupción con long-jumps fuera del analizador, y el analizador a "
6375 "continuación se invoca de nuevo, podría obtener el siguiente mensaje:"
6376
6377 #. type: Plain text
6378 #: original/man1/flex.1:3564
6379 #, no-wrap
6380 msgid " fatal flex scanner internal error--end of buffer missed\n"
6381 msgstr " fatal flex scanner internal error--end of buffer missed\n"
6382
6383 #. type: Plain text
6384 #: original/man1/flex.1:3567
6385 msgid "To reenter the scanner, first use"
6386 msgstr "Para volver al analizador, primero utilice"
6387
6388 #. type: Plain text
6389 #: original/man1/flex.1:3570 original/man1/flex.1:3871
6390 #, no-wrap
6391 msgid " yyrestart( yyin );\n"
6392 msgstr " yyrestart( yyin );\n"
6393
6394 #. type: Plain text
6395 #: original/man1/flex.1:3574
6396 msgid ""
6397 "Note that this call will throw away any buffered input; usually this isn't a "
6398 "problem with an interactive scanner."
6399 msgstr ""
6400 "Vea que esta llamada eliminará cualquier entrada en el buffer; normalmente "
6401 "esto no es un problema con un analizador interactivo."
6402
6403 #. type: Plain text
6404 #: original/man1/flex.1:3579
6405 msgid ""
6406 "Also note that flex C++ scanner classes I<are> reentrant, so if using C++ is "
6407 "an option for you, you should use them instead. See \"Generating C++ Scanners"
6408 "\" above for details."
6409 msgstr ""
6410 "Dese cuenta también de que las clases analizadoras en C++ I<son> reentrantes, "
6411 "así que si usar C++ es una opción para usted, debería utilizarla. Vea "
6412 "\"Generando Escáners en C++\" más arriba para los detalles."
6413
6414 #. type: Plain text
6415 #: original/man1/flex.1:3588
6416 msgid ""
6417 "B<output()> is not supported. Output from the B<ECHO> macro is done to the "
6418 "file-pointer I<yyout> (default I<stdout).>"
6419 msgstr ""
6420 "B<output()> no se provee. La salida desde la macro B<ECHO> se hace al "
6421 "puntero de fichero I<yyout> (por defecto a I<stdout).>"
6422
6423 #. type: Plain text
6424 #: original/man1/flex.1:3591
6425 msgid "B<output()> is not part of the POSIX specification."
6426 msgstr "B<output()> no es parte de la especificación POSIX."
6427
6428 #. type: Plain text
6429 #: original/man1/flex.1:3595
6430 msgid ""
6431 "I<lex> does not support exclusive start conditions (%x), though they are in "
6432 "the POSIX specification."
6433 msgstr ""
6434 "I<lex> no acepta condiciones de arranque exclusivas (%x), aunque están en la "
6435 "especificación POSIX."
6436
6437 #. type: Plain text
6438 #: original/man1/flex.1:3600
6439 msgid ""
6440 "When definitions are expanded, I<flex> encloses them in parentheses. With "
6441 "lex, the following:"
6442 msgstr ""
6443 "Cuando se expanden las definiciones, I<flex> las encierra entre paréntesis. "
6444 "Con lex, lo siguiente:"
6445
6446 #. type: Plain text
6447 #: original/man1/flex.1:3606
6448 #, no-wrap
6449 msgid ""
6450 " NAME [A-Z][A-Z0-9]*\n"
6451 " %%\n"
6452 " foo{NAME}? printf( \"Found it\\en\" );\n"
6453 " %%\n"
6454 msgstr ""
6455 " NOMBRE [A-Z][A-Z0-9]*\n"
6456 " %%\n"
6457 " foo{NOMBRE}? printf( \"Lo encontró\\en\" );\n"
6458 " %%\n"
6459
6460 #. type: Plain text
6461 #: original/man1/flex.1:3615
6462 msgid ""
6463 "will not match the string \"foo\" because when the macro is expanded the rule "
6464 "is equivalent to \"foo[A-Z][A-Z0-9]*?\" and the precedence is such that the "
6465 "'?' is associated with \"[A-Z0-9]*\". With I<flex,> the rule will be "
6466 "expanded to \"foo([A-Z][A-Z0-9]*)?\" and so the string \"foo\" will match."
6467 msgstr ""
6468 "no reconocerá la cadena \"foo\" porque cuando la macro se expanda la regla es "
6469 "equivalente a \"foo[A-Z][A-Z0-9]*?\" y la precedencia es tal que el '?' se "
6470 "asocia con \"[A-Z0-9]*\". Con I<flex,> la regla se expandirá a \"foo([A-Z][A-"
6471 "Z0-9]*)?\" y así la cadena \"foo\" se reconocerá."
6472
6473 #. type: Plain text
6474 #: original/man1/flex.1:3630
6475 msgid ""
6476 "Note that if the definition begins with B<^> or ends with B<$> then it is "
6477 "I<not> expanded with parentheses, to allow these operators to appear in "
6478 "definitions without losing their special meanings. But the B<E<lt>sE<gt>, /,"
6479 "> and B<E<lt>E<lt>EOFE<gt>E<gt>> operators cannot be used in a I<flex> "
6480 "definition."
6481 msgstr ""
6482 "Fíjese que si la definición comienza con B<^> o finaliza con B<$> entonces "
6483 "I<no> se expande con paréntesis, para permitir que estos operadores aparezcan "
6484 "en las definiciones sin perder su significado especial. Pero los operadores "
6485 "B<E<lt>sE<gt>, /,> y B<E<lt>E<lt>EOFE<gt>E<gt>> no pueden utilizarse en una "
6486 "definición de I<flex>."
6487
6488 #. type: Plain text
6489 #: original/man1/flex.1:3636
6490 msgid ""
6491 "Using B<-l> results in the I<lex> behavior of no parentheses around the "
6492 "definition."
6493 msgstr ""
6494 "El uso de B<-l> produce en el comportamiendo de I<lex> el no poner paréntesis "
6495 "alrededor de la definición."
6496
6497 #. type: Plain text
6498 #: original/man1/flex.1:3638
6499 msgid ""
6500 "The POSIX specification is that the definition be enclosed in parentheses."
6501 msgstr ""
6502 "La especificación de POSIX dice que la definición debe ser encerrada entre "
6503 "paréntesis."
6504
6505 #. type: Plain text
6506 #: original/man1/flex.1:3643
6507 msgid ""
6508 "Some implementations of I<lex> allow a rule's action to begin on a separate "
6509 "line, if the rule's pattern has trailing whitespace:"
6510 msgstr ""
6511 "Algunas implementaciones de I<lex> permiten que la acción de una regla "
6512 "comience en una línea separada, si el patrón de la regla tiene espacios en "
6513 "blanco al final:"
6514
6515 #. type: Plain text
6516 #: original/man1/flex.1:3648
6517 #, no-wrap
6518 msgid ""
6519 " %%\n"
6520 " foo|barE<lt>space hereE<gt>\n"
6521 " { foobar_action(); }\n"
6522 msgstr ""
6523 " %%\n"
6524 " foo|barE<lt>espacio aquíE<gt>\n"
6525 " { foobar_action(); }\n"
6526
6527 #. type: Plain text
6528 #: original/man1/flex.1:3652
6529 msgid "I<flex> does not support this feature."
6530 msgstr "I<flex> no dispone de esta propiedad."
6531
6532 #. type: Plain text
6533 #: original/man1/flex.1:3658
6534 msgid ""
6535 "The I<lex> B<%r> (generate a Ratfor scanner) option is not supported. It is "
6536 "not part of the POSIX specification."
6537 msgstr ""
6538 "La opción B<%r> de I<lex> (generar un analizador Ratfor) no se ofrece. No es "
6539 "parte de la especificación de POSIX."
6540
6541 #. type: Plain text
6542 #: original/man1/flex.1:3670
6543 msgid ""
6544 "After a call to B<unput(),> I<yytext> is undefined until the next token is "
6545 "matched, unless the scanner was built using B<%array.> This is not the case "
6546 "with I<lex> or the POSIX specification. The B<-l> option does away with this "
6547 "incompatibility."
6548 msgstr ""
6549 "Después de una llamada a B<unput(),> el contenido de I<yytext> está "
6550 "indefinido hasta que se reconozca el próximo token, a menos que el analizador "
6551 "se haya construido usando B<%array.> Este no es el caso de I<lex> o la "
6552 "especificación de POSIX. La opción B<-l> elimina esta incompatibilidad."
6553
6554 #. type: Plain text
6555 #: original/man1/flex.1:3681
6556 msgid ""
6557 "The precedence of the B<{}> (numeric range) operator is different. I<lex> "
6558 "interprets \"abc{1,3}\" as \"match one, two, or three occurrences of 'abc'\", "
6559 "whereas I<flex> interprets it as \"match 'ab' followed by one, two, or three "
6560 "occurrences of 'c'\". The latter is in agreement with the POSIX "
6561 "specification."
6562 msgstr ""
6563 "La precedencia del operador B<{}> (rango numérico) es diferente. I<lex> "
6564 "interpreta \"abc{1,3}\" como \"empareja uno, dos, o tres apariciones de "
6565 "'abc'\", mientras que I<flex> lo interpreta como \"empareja 'ab' seguida de "
6566 "una, dos o tres apariciones de 'c'\". Lo último va de acuerdo con la "
6567 "especificación de POSIX."
6568
6569 #. type: Plain text
6570 #: original/man1/flex.1:3691
6571 msgid ""
6572 "The precedence of the B<^> operator is different. I<lex> interprets \"^foo|"
6573 "bar\" as \"match either 'foo' at the beginning of a line, or 'bar' anywhere"
6574 "\", whereas I<flex> interprets it as \"match either 'foo' or 'bar' if they "
6575 "come at the beginning of a line\". The latter is in agreement with the POSIX "
6576 "specification."
6577 msgstr ""
6578 "La precedencia del operador B<^> es diferente. I<lex> interpreta \"^foo|bar"
6579 "\" como \"empareja bien 'foo' al principio de una línea, o 'bar' en cualquier "
6580 "lugar\", mientras que I<flex> lo interpreta como \"empareja 'foo' o 'bar' si "
6581 "vienen al principio de una línea\". Lo último va de acuerdo con la "
6582 "especificación de POSIX."
6583
6584 #. type: Plain text
6585 #: original/man1/flex.1:3701
6586 msgid ""
6587 "The special table-size declarations such as B<%a> supported by I<lex> are not "
6588 "required by I<flex> scanners; I<flex> ignores them."
6589 msgstr ""
6590 "Las declaraciones especiales del tamaño de las tablas tal como B<%a> que "
6591 "reconoce I<lex> no se requieren en los analizadores de I<flex;> I<flex> los "
6592 "ignora."
6593
6594 #. type: Plain text
6595 #: original/man1/flex.1:3703
6596 msgid "The name"
6597 msgstr "El identificador"
6598
6599 #. type: Plain text
6600 #: original/man1/flex.1:3718
6601 msgid ""
6602 "FLEX_SCANNER is #define'd so scanners may be written for use with either "
6603 "I<flex> or I<lex.> Scanners also include B<YY_FLEX_MAJOR_VERSION> and "
6604 "B<YY_FLEX_MINOR_VERSION> indicating which version of I<flex> generated the "
6605 "scanner (for example, for the 2.5 release, these defines would be 2 and 5 "
6606 "respectively)."
6607 msgstr ""
6608 "FLEX_SCANNER se #define de manera que los analizadores podrían escribirse "
6609 "para ser procesados con I<flex> o con I<lex.> Los analizadores también "
6610 "incluyen B<YY_FLEX_MAJOR_VERSION> y B<YY_FLEX_MINOR_VERSION> indicando qué "
6611 "versión de I<flex> generó el analizador (por ejemplo, para la versión 2.5, "
6612 "estas definiciones serán 2 y 5 respectivamente)."
6613
6614 #. type: Plain text
6615 #: original/man1/flex.1:3724
6616 msgid ""
6617 "The following I<flex> features are not included in I<lex> or the POSIX "
6618 "specification:"
6619 msgstr ""
6620 "Las siguientes propiedades de I<flex> no se incluyen en I<lex> o la "
6621 "especificación POSIX:"
6622
6623 #. type: Plain text
6624 #: original/man1/flex.1:3745
6625 #, no-wrap
6626 msgid ""
6627 " C++ scanners\n"
6628 " %option\n"
6629 " start condition scopes\n"
6630 " start condition stacks\n"
6631 " interactive/non-interactive scanners\n"
6632 " yy_scan_string() and friends\n"
6633 " yyterminate()\n"
6634 " yy_set_interactive()\n"
6635 " yy_set_bol()\n"
6636 " YY_AT_BOL()\n"
6637 " E<lt>E<lt>EOFE<gt>E<gt>\n"
6638 " E<lt>*E<gt>\n"
6639 " YY_DECL\n"
6640 " YY_START\n"
6641 " YY_USER_ACTION\n"
6642 " YY_USER_INIT\n"
6643 " #line directives\n"
6644 " %{}'s around actions\n"
6645 " multiple actions on a line\n"
6646 msgstr ""
6647 " analizadores en C++\n"
6648 " %option\n"
6649 " ámbitos de condiciones de arranque\n"
6650 " pilas de condiciones de arranque\n"
6651 " analizadores interactivos/no-interactivos\n"
6652 " yy_scan_string() y sus amigas\n"
6653 " yyterminate()\n"
6654 " yy_set_interactive()\n"
6655 " yy_set_bol()\n"
6656 " YY_AT_BOL()\n"
6657 " E<lt>E<lt>EOFE<gt>E<gt>\n"
6658 " E<lt>*E<gt>\n"
6659 " YY_DECL\n"
6660 " YY_START\n"
6661 " YY_USER_ACTION\n"
6662 " YY_USER_INIT\n"
6663 " directivas #line\n"
6664 " %{}'s alrededor de acciones\n"
6665 " varias acciones en una línea\n"
6666
6667 #. type: Plain text
6668 #: original/man1/flex.1:3754
6669 msgid ""
6670 "plus almost all of the flex flags. The last feature in the list refers to "
6671 "the fact that with I<flex> you can put multiple actions on the same line, "
6672 "separated with semi-colons, while with I<lex,> the following"
6673 msgstr ""
6674 "más casi todas las banderas de flex. La última propiedad en la lista se "
6675 "refiere al hecho de que con I<flex> puede poner varias acciones en la misma "
6676 "línea, sepradas con punto y coma, mientras que con I<lex,> lo siguiente"
6677
6678 #. type: Plain text
6679 #: original/man1/flex.1:3757
6680 #, no-wrap
6681 msgid " foo handle_foo(); ++num_foos_seen;\n"
6682 msgstr " foo handle_foo(); ++num_foos_seen;\n"
6683
6684 #. type: Plain text
6685 #: original/man1/flex.1:3760
6686 msgid "is (rather surprisingly) truncated to"
6687 msgstr "se trunca (sorprendentemente) a"
6688
6689 #. type: Plain text
6690 #: original/man1/flex.1:3763
6691 #, no-wrap
6692 msgid " foo handle_foo();\n"
6693 msgstr " foo handle_foo();\n"
6694
6695 #. type: Plain text
6696 #: original/man1/flex.1:3768
6697 msgid ""
6698 "I<flex> does not truncate the action. Actions that are not enclosed in "
6699 "braces are simply terminated at the end of the line."
6700 msgstr ""
6701 "I<flex> no trunca la acción. Las acciones que no se encierran en llaves "
6702 "simplemente se terminan al final de la línea."
6703
6704 #. type: SH
6705 #: original/man1/flex.1:3768
6706 #, no-wrap
6707 msgid "DIAGNOSTICS"
6708 msgstr "DIAGNÓSTICOS"
6709
6710 #. type: Plain text
6711 #: original/man1/flex.1:3776
6712 msgid ""
6713 "I<warning, rule cannot be matched> indicates that the given rule cannot be "
6714 "matched because it follows other rules that will always match the same text "
6715 "as it. For example, in the following \"foo\" cannot be matched because it "
6716 "comes after an identifier \"catch-all\" rule:"
6717 msgstr ""
6718 "I<aviso, la regla no se puede aplicar> indica que la regla dada no puede "
6719 "emparejarse porque sigue a otras reglas que siempre emparejarán el mismo "
6720 "texto que el de esta. Por ejemplo, en el siguiente ejemplo \"foo\" no puede "
6721 "emparejarse porque viene después de una regla \"atrápalo-todo\" para "
6722 "identificadores:"
6723
6724 #. type: Plain text
6725 #: original/man1/flex.1:3780
6726 #, no-wrap
6727 msgid ""
6728 " [a-z]+ got_identifier();\n"
6729 " foo got_foo();\n"
6730 msgstr ""
6731 " [a-z]+ obtuvo_identificador();\n"
6732 " foo obtuvo_foo();\n"
6733
6734 #. type: Plain text
6735 #: original/man1/flex.1:3785
6736 msgid "Using B<REJECT> in a scanner suppresses this warning."
6737 msgstr "El uso de B<REJECT> en un analizador suprime este aviso."
6738
6739 #. type: Plain text
6740 #: original/man1/flex.1:3795
6741 msgid ""
6742 "I<warning,> B<-s> I<option given but default rule can be matched> means that "
6743 "it is possible (perhaps only in a particular start condition) that the "
6744 "default rule (match any single character) is the only one that will match a "
6745 "particular input. Since B<-s> was given, presumably this is not intended."
6746 msgstr ""
6747 "I<aviso,> I<se ha especificado la opción> B<-s> I<pero se puede aplicar la "
6748 "regla por defecto> significa que es posible (tal vez únicamente en una "
6749 "condición de arranque en particular) que la regla por defecto (emparejar "
6750 "cualquier caracter simple) sea la única que emparejará una entrada "
6751 "particular. Ya que se indicó B<-s,> presumiblemente esto no es lo que se "
6752 "pretendía."
6753
6754 #. type: Plain text
6755 #: original/man1/flex.1:3815
6756 msgid ""
6757 "I<reject_used_but_not_detected undefined> or I<yymore_used_but_not_detected "
6758 "undefined -> These errors can occur at compile time. They indicate that the "
6759 "scanner uses B<REJECT> or B<yymore()> but that I<flex> failed to notice the "
6760 "fact, meaning that I<flex> scanned the first two sections looking for "
6761 "occurrences of these actions and failed to find any, but somehow you snuck "
6762 "some in (via a #include file, for example). Use B<%option reject> or B<"
6763 "%option yymore> to indicate to flex that you really do use these features."
6764 msgstr ""
6765 "I<definición no definida {reject_used_but_not_detected}> o I<definición no "
6766 "definida {yymore_used_but_not_detected} -> Estos errores pueden suceder en "
6767 "tiempo de compilación. Indican que el analizador usa B<REJECT> o B<yymore()> "
6768 "pero que I<flex> falló en darse cuenta del hecho, queriendo decir que I<flex> "
6769 "analizó las dos primeras secciones buscando apariciones de estas acciones y "
6770 "falló en encontrar alguna, pero que de algún modo se le han colado (por medio "
6771 "de un archivo #include, por ejemplo). Use B<%option reject> o B<%option "
6772 "yymore> para indicar a flex que realmente usa esta funcionalidad."
6773
6774 #. type: Plain text
6775 #: original/man1/flex.1:3821
6776 msgid ""
6777 "I<flex scanner jammed -> a scanner compiled with B<-s> has encountered an "
6778 "input string which wasn't matched by any of its rules. This error can also "
6779 "occur due to internal problems."
6780 msgstr ""
6781 "I<flex scanner jammed -> un analizador compilado con B<-s> ha encontrado una "
6782 "cadena de entrada que no fue reconocida por niguna de sus reglas. Este error "
6783 "puede suceder también debido a problemas internos."
6784
6785 #. type: Plain text
6786 #: original/man1/flex.1:3833
6787 msgid ""
6788 "I<token too large, exceeds YYLMAX -> your scanner uses B<%array> and one of "
6789 "its rules matched a string longer than the B<YYLMAX> constant (8K bytes by "
6790 "default). You can increase the value by #define'ing B<YYLMAX> in the "
6791 "definitions section of your I<flex> input."
6792 msgstr ""
6793 "I<token too large, exceeds YYLMAX -> su analizador usa B<%array> y una de sus "
6794 "reglas reconoció una cadena más grande que la constante B<YYLMAX> (8K bytes "
6795 "por defecto). Usted puede incrementar el valor haciendo un #define B<YYLMAX> "
6796 "en la sección de definiciones de su entrada de I<flex.>"
6797
6798 #. type: Plain text
6799 #: original/man1/flex.1:3846
6800 msgid ""
6801 "I<scanner requires -8 flag to> I<use the character 'x' -> Your scanner "
6802 "specification includes recognizing the 8-bit character I<'x'> and you did not "
6803 "specify the -8 flag, and your scanner defaulted to 7-bit because you used the "
6804 "B<-Cf> or B<-CF> table compression options. See the discussion of the B<-7> "
6805 "flag for details."
6806 msgstr ""
6807 "I<el analizador requiere la opción -8 para> I<poder usar el carácter 'x' -> "
6808 "La especificación de su analizador incluye el reconocimiento del caracter de "
6809 "8-bits I<'x'> y no ha especificado la bandera -8, y su analizador por defecto "
6810 "está a 7-bits porque ha usado las opciones B<-Cf> o B<-CF> de compresión de "
6811 "tablas. Vea el comentario de la bandera B<-7> para los detalles."
6812
6813 #. type: Plain text
6814 #: original/man1/flex.1:3855
6815 msgid ""
6816 "I<flex scanner push-back overflow -> you used B<unput()> to push back so much "
6817 "text that the scanner's buffer could not hold both the pushed-back text and "
6818 "the current token in B<yytext.> Ideally the scanner should dynamically resize "
6819 "the buffer in this case, but at present it does not."
6820 msgstr ""
6821 "I<flex scanner push-back overflow -> usted utilizó B<unput()> para devolver "
6822 "tanto texto que el buffer del analizador no pudo mantener el texto devuelto y "
6823 "el token actual en B<yytext.> Idealmente el analizador debería ajustar "
6824 "dinámicamente el buffer en este caso, pero actualmente no lo hace."
6825
6826 #. type: Plain text
6827 #: original/man1/flex.1:3862
6828 msgid ""
6829 "I<input buffer overflow, can't enlarge buffer because scanner uses REJECT -> "
6830 "the scanner was working on matching an extremely large token and needed to "
6831 "expand the input buffer. This doesn't work with scanners that use B<REJECT.>"
6832 msgstr ""
6833 "I<input buffer overflow, can't enlarge buffer because scanner uses REJECT -> "
6834 "el analizador estaba intentando reconocer un token extremadamente largo y "
6835 "necesitó expandir el buffer de entrada. Esto no funciona con analizadores "
6836 "que usan B<REJECT.>"
6837
6838 #. type: Plain text
6839 #: original/man1/flex.1:3868
6840 msgid ""
6841 "I<fatal flex scanner internal error--end of buffer missed -> This can occur "
6842 "in an scanner which is reentered after a long-jump has jumped out (or over) "
6843 "the scanner's activation frame. Before reentering the scanner, use:"
6844 msgstr ""
6845 "I<fatal flex scanner internal error--end of buffer missed -> Esto puede "
6846 "suceder en un analizador que se reintroduce después de que un long-jump haya "
6847 "saltado fuera (o sobre) el registro de activación del analizador. Antes de "
6848 "reintroducir el analizador, use:"
6849
6850 #. type: Plain text
6851 #: original/man1/flex.1:3874
6852 msgid "or, as noted above, switch to using the C++ scanner class."
6853 msgstr ""
6854 "o, como se comentó más arriba, cambie y use el analizador como clase de C++."
6855
6856 #. type: Plain text
6857 #: original/man1/flex.1:3878
6858 msgid ""
6859 "I<too many start conditions in E<lt>E<gt> construct! -> you listed more start "
6860 "conditions in a E<lt>E<gt> construct than exist (so you must have listed at "
6861 "least one of them twice)."
6862 msgstr ""
6863 "I<too many start conditions in E<lt>E<gt> construct! -> ha listado más "
6864 "condiciones de arranque en una construcción E<lt>E<gt> que las que existen "
6865 "(así que tuvo que haber listado al menos una de ellas dos veces)."
6866
6867 #. type: SH
6868 #: original/man1/flex.1:3878
6869 #, no-wrap
6870 msgid "FILES"
6871 msgstr "FICHEROS"
6872
6873 #. type: TP
6874 #: original/man1/flex.1:3879
6875 #, no-wrap
6876 msgid "B<-lfl>"
6877 msgstr "B<-lfl>"
6878
6879 #. type: Plain text
6880 #: original/man1/flex.1:3882
6881 msgid "library with which scanners must be linked."
6882 msgstr "librería con la que los analizadores deben enlazarse."
6883
6884 #. type: TP
6885 #: original/man1/flex.1:3882
6886 #, no-wrap
6887 msgid "I<lex.yy.c>"
6888 msgstr "I<lex.yy.c>"
6889
6890 #. type: Plain text
6891 #: original/man1/flex.1:3887
6892 msgid "generated scanner (called I<lexyy.c> on some systems)."
6893 msgstr "analizador generado (llamado I<lexyy.c> en algunos sistemas)."
6894
6895 #. type: TP
6896 #: original/man1/flex.1:3887
6897 #, no-wrap
6898 msgid "I<lex.yy.cc>"
6899 msgstr "I<lex.yy.cc>"
6900
6901 #. type: Plain text
6902 #: original/man1/flex.1:3891
6903 msgid "generated C++ scanner class, when using B<-+.>"
6904 msgstr "clase generada en C++ con el analizador, cuando se utiliza B<-+.>"
6905
6906 #. type: TP
6907 #: original/man1/flex.1:3891
6908 #, no-wrap
6909 msgid "I<E<lt>FlexLexer.hE<gt>>"
6910 msgstr "I<E<lt>FlexLexer.hE<gt>>"
6911
6912 #. type: Plain text
6913 #: original/man1/flex.1:3897
6914 msgid ""
6915 "header file defining the C++ scanner base class, B<FlexLexer,> and its "
6916 "derived class, B<yyFlexLexer.>"
6917 msgstr ""
6918 "fichero de cabecera definiendo la clase base del analizador en C++, "
6919 "B<FlexLexer,> y su clase derivada, B<yyFlexLexer.>"
6920
6921 #. type: TP
6922 #: original/man1/flex.1:3897
6923 #, no-wrap
6924 msgid "I<flex.skl>"
6925 msgstr "I<flex.skl>"
6926
6927 #. type: Plain text
6928 #: original/man1/flex.1:3901
6929 msgid ""
6930 "skeleton scanner. This file is only used when building flex, not when flex "
6931 "executes."
6932 msgstr ""
6933 "esqueleto del analizador. Este fichero se utiliza únicamente cuando se "
6934 "construye flex, no cuando flex se ejecuta."
6935
6936 #. type: TP
6937 #: original/man1/flex.1:3901
6938 #, no-wrap
6939 msgid "I<lex.backup>"
6940 msgstr "I<lex.backup>"
6941
6942 #. type: Plain text
6943 #: original/man1/flex.1:3908
6944 msgid ""
6945 "backing-up information for B<-b> flag (called I<lex.bck> on some systems)."
6946 msgstr ""
6947 "información de los retrocesos para la bandera B<-b> (llamada I<lex.bck> en "
6948 "algunos sistemas)."
6949
6950 #. type: SH
6951 #: original/man1/flex.1:3908
6952 #, no-wrap
6953 msgid "DEFICIENCIES / BUGS"
6954 msgstr "DEFICIENCIAS / ERRORES"
6955
6956 #. type: Plain text
6957 #: original/man1/flex.1:3918
6958 msgid ""
6959 "Some trailing context patterns cannot be properly matched and generate "
6960 "warning messages (\"dangerous trailing context\"). These are patterns where "
6961 "the ending of the first part of the rule matches the beginning of the second "
6962 "part, such as \"zx*/xy*\", where the 'x*' matches the 'x' at the beginning of "
6963 "the trailing context. (Note that the POSIX draft states that the text "
6964 "matched by such patterns is undefined.)"
6965 msgstr ""
6966 "Algunos patrones de contexto posterior no pueden reconocerse correctamente y "
6967 "generan mensajes de aviso (\"contexto posterior peligroso\"). Estos son "
6968 "patrones donde el final de la primera parte de la regla reconoce el comienzo "
6969 "de la segunda parte, tal como \"zx*/xy*\", donde el 'x*' reconoce la 'x' al "
6970 "comienzo del contexto posterior. (Fíjese que el borrador de POSIX establece "
6971 "que el texto reconocido por tales patrones no está definido.)"
6972
6973 #. type: Plain text
6974 #: original/man1/flex.1:3923
6975 msgid ""
6976 "For some trailing context rules, parts which are actually fixed-length are "
6977 "not recognized as such, leading to the abovementioned performance loss. In "
6978 "particular, parts using '|' or {n} (such as \"foo{3}\") are always considered "
6979 "variable-length."
6980 msgstr ""
6981 "Para algunas reglas de contexto posterior, partes que son de hecho de "
6982 "longitud fija no se reconocen como tales, resultando en la pérdida de "
6983 "rendimiento mencionada anteriormente. En particular, las partes que usan '|' "
6984 "o {n} (tales como \"foo{3}\") siempre se consideran de longitud variable."
6985
6986 #. type: Plain text
6987 #: original/man1/flex.1:3929
6988 msgid ""
6989 "Combining trailing context with the special '|' action can result in I<fixed> "
6990 "trailing context being turned into the more expensive I<variable> trailing "
6991 "context. For example, in the following:"
6992 msgstr ""
6993 "La combinación de contexto posterior con la acción especial '|' puede "
6994 "producir que el contexto posterior I<fijo> se convierta en contexto posterior "
6995 "I<variable> que es más caro. Por ejemplo, en lo que viene a continuación:"
6996
6997 #. type: Plain text
6998 #: original/man1/flex.1:3934
6999 #, no-wrap
7000 msgid ""
7001 " %%\n"
7002 " abc |\n"
7003 " xyz/def\n"
7004 msgstr ""
7005 " %%\n"
7006 " abc |\n"
7007 " xyz/def\n"
7008
7009 #. type: Plain text
7010 #: original/man1/flex.1:3945
7011 msgid ""
7012 "Use of B<unput()> invalidates yytext and yyleng, unless the B<%array> "
7013 "directive or the B<-l> option has been used."
7014 msgstr ""
7015 "El uso de B<unput()> invalida yytext e yyleng, a menos que se use la "
7016 "directiva B<%array> o la opción B<-l>."
7017
7018 #. type: Plain text
7019 #: original/man1/flex.1:3948
7020 msgid ""
7021 "Pattern-matching of NUL's is substantially slower than matching other "
7022 "characters."
7023 msgstr ""
7024 "La concordancia de patrones de NUL's es substancialmente más lento que el "
7025 "reconocimiento de otros caracteres."
7026
7027 #. type: Plain text
7028 #: original/man1/flex.1:3951
7029 msgid ""
7030 "Dynamic resizing of the input buffer is slow, as it entails rescanning all "
7031 "the text matched so far by the current (generally huge) token."
7032 msgstr ""
7033 "El ajuste dinámico del buffer de entrada es lento, ya que conlleva el "
7034 "reanálisis de todo el texto reconocido hasta entonces por el (generalmente "
7035 "enorme) token actual."
7036
7037 #. type: Plain text
7038 #: original/man1/flex.1:3960
7039 msgid ""
7040 "Due to both buffering of input and read-ahead, you cannot intermix calls to "
7041 "E<lt>stdio.hE<gt> routines, such as, for example, B<getchar(),> with I<flex> "
7042 "rules and expect it to work. Call B<input()> instead."
7043 msgstr ""
7044 "Debido al uso simultáneo de buffers de entrada y lecturas por adelantado, no "
7045 "puede entremezclar llamadas a rutinas de E<lt>stdio.hE<gt>, tales como, por "
7046 "ejemplo, B<getchar(),> con reglas de I<flex> y esperar que funcione. Llame a "
7047 "B<input()> en su lugar."
7048
7049 #. type: Plain text
7050 #: original/man1/flex.1:3968
7051 msgid ""
7052 "The total table entries listed by the B<-v> flag excludes the number of table "
7053 "entries needed to determine what rule has been matched. The number of "
7054 "entries is equal to the number of DFA states if the scanner does not use "
7055 "B<REJECT,> and somewhat greater than the number of states if it does."
7056 msgstr ""
7057 "La totalidad de las entradas de la tabla listada por la bandera B<-v> excluye "
7058 "el número de entradas en la tabla necesarias para determinar qué regla ha "
7059 "sido emparejada. El número de entradas es igual al número de estados del DFA "
7060 "si el analizador no usa B<REJECT,> y algo mayor que el número de estados si "
7061 "se usa."
7062
7063 #. type: Plain text
7064 #: original/man1/flex.1:3975
7065 msgid "B<REJECT> cannot be used with the B<-f> or B<-F> options."
7066 msgstr "B<REJECT> no puede usarse con las opciones B<-f> o B<-F.>"
7067
7068 #. type: Plain text
7069 #: original/man1/flex.1:3979
7070 msgid "The I<flex> internal algorithms need documentation."
7071 msgstr "El algoritmo interno de I<flex> necesita documentación."
7072
7073 #. type: SH
7074 #: original/man1/flex.1:3979
7075 #, no-wrap
7076 msgid "SEE ALSO"
7077 msgstr "VÉASE TAMBIÉN"
7078
7079 #. type: Plain text
7080 #: original/man1/flex.1:3982
7081 msgid "lex(1), yacc(1), sed(1), awk(1)."
7082 msgstr "lex(1), yacc(1), sed(1), awk(1)."
7083
7084 #. type: Plain text
7085 #: original/man1/flex.1:3986
7086 msgid ""
7087 "John Levine, Tony Mason, and Doug Brown, I<Lex & Yacc,> O'Reilly and "
7088 "Associates. Be sure to get the 2nd edition."
7089 msgstr ""
7090 "John Levine, Tony Mason, and Doug Brown, I<Lex & Yacc,> O'Reilly and "
7091 "Associates. Esté seguro de obtener la 2ª edición."
7092
7093 #. type: Plain text
7094 #: original/man1/flex.1:3989
7095 msgid "M. E. Lesk and E. Schmidt, I<LEX - Lexical Analyzer Generator>"
7096 msgstr "M. E. Lesk y E. Schmidt, I<LEX - Lexical Analyzer Generator>"
7097
7098 #. type: Plain text
7099 #: original/man1/flex.1:3995
7100 msgid ""
7101 "Alfred Aho, Ravi Sethi and Jeffrey Ullman, I<Compilers: Principles, "
7102 "Techniques and Tools,> Addison-Wesley (1986). Describes the pattern-matching "
7103 "techniques used by I<flex> (deterministic finite automata)."
7104 msgstr ""
7105 "Alfred Aho, Ravi Sethi and Jeffrey Ullman, I<Compilers: Principles, "
7106 "Techniques and Tools,> Addison-Wesley (1986) (Edición en castellano: "
7107 "I<Compiladores: Principios, Técnicas y Herramientas,> Addison-Wesley "
7108 "Iberoamericana, S.A. (1990)) Describe las técnicas de concordancia de "
7109 "patrones usadas por I<flex> (autómata finito determinista)."
7110
7111 #. type: SH
7112 #: original/man1/flex.1:3995
7113 #, no-wrap
7114 msgid "AUTHOR"
7115 msgstr "AUTOR"
7116
7117 #. type: Plain text
7118 #: original/man1/flex.1:4000
7119 msgid ""
7120 "Vern Paxson, with the help of many ideas and much inspiration from Van "
7121 "Jacobson. Original version by Jef Poskanzer. The fast table representation "
7122 "is a partial implementation of a design done by Van Jacobson. The "
7123 "implementation was done by Kevin Gong and Vern Paxson."
7124 msgstr ""
7125 "Vern Paxson, con la ayuda de muchas ideas e inspiración de Van Jacobson. "
7126 "Versión original por Jef Poskanzer. La representación de tablas rápidas es "
7127 "una implementación parcial de un diseño hecho por Van Jacobson. La "
7128 "implementación fue hecha por Kevin Gong y Vern Paxson."
7129
7130 #. type: Plain text
7131 #: original/man1/flex.1:4045
7132 msgid ""
7133 "Thanks to the many I<flex> beta-testers, feedbackers, and contributors, "
7134 "especially Francois Pinard, Casey Leedom, Robert Abramovitz, Stan Adermann, "
7135 "Terry Allen, David Barker-Plummer, John Basrai, Neal Becker, Nelson H.F. "
7136 "Beebe, [email protected], Karl Berry, Peter A. Bigot, Simon Blanchard, Keith "
7137 "Bostic, Frederic Brehm, Ian Brockbank, Kin Cho, Nick Christopher, Brian "
7138 "Clapper, J.T. Conklin, Jason Coughlin, Bill Cox, Nick Cropper, Dave Curtis, "
7139 "Scott David Daniels, Chris G. Demetriou, Theo Deraadt, Mike Donahue, Chuck "
7140 "Doucette, Tom Epperly, Leo Eskin, Chris Faylor, Chris Flatters, Jon Forrest, "
7141 "Jeffrey Friedl, Joe Gayda, Kaveh R. Ghazi, Wolfgang Glunz, Eric Goldman, "
7142 "Christopher M. Gould, Ulrich Grepel, Peer Griebel, Jan Hajic, Charles "
7143 "Hemphill, NORO Hideo, Jarkko Hietaniemi, Scott Hofmann, Jeff Honig, Dana "
7144 "Hudes, Eric Hughes, John Interrante, Ceriel Jacobs, Michal Jaegermann, Sakari "
7145 "Jalovaara, Jeffrey R. Jones, Henry Juengst, Klaus Kaempf, Jonathan I. Kamens, "
7146 "Terrence O Kane, Amir Katz, [email protected], Kevin B. Kenny, Steve Kirsch, "
7147 "Winfried Koenig, Marq Kole, Ronald Lamprecht, Greg Lee, Rohan Lenard, Craig "
7148 "Leres, John Levine, Steve Liddle, David Loffredo, Mike Long, Mohamed el Lozy, "
7149 "Brian Madsen, Malte, Joe Marshall, Bengt Martensson, Chris Metcalf, Luke "
7150 "Mewburn, Jim Meyering, R. Alexander Milowski, Erik Naggum, G.T. Nicol, Landon "
7151 "Noll, James Nordby, Marc Nozell, Richard Ohnemus, Karsten Pahnke, Sven Panne, "
7152 "Roland Pesch, Walter Pelissero, Gaumond Pierre, Esmond Pitt, Jef Poskanzer, "
7153 "Joe Rahmeh, Jarmo Raiha, Frederic Raimbault, Pat Rankin, Rick Richardson, "
7154 "Kevin Rodgers, Kai Uwe Rommel, Jim Roskind, Alberto Santini, Andreas Scherer, "
7155 "Darrell Schiebel, Raf Schietekat, Doug Schmidt, Philippe Schnoebelen, Andreas "
7156 "Schwab, Larry Schwimmer, Alex Siegel, Eckehard Stolz, Jan-Erik Strvmquist, "
7157 "Mike Stump, Paul Stuart, Dave Tallman, Ian Lance Taylor, Chris Thewalt, "
7158 "Richard M. Timoney, Jodi Tsai, Paul Tuinenga, Gary Weik, Frank Whaley, "
7159 "Gerhard Wilhelms, Kent Williams, Ken Yap, Ron Zellar, Nathan Zelle, David "
7160 "Zuhn, and those whose names have slipped my marginal mail-archiving skills "
7161 "but whose contributions are appreciated all the same."
7162 msgstr ""
7163 "Agradecimientos a los muchos I<flex> beta-testers, feedbackers, y "
7164 "contribuidores, especialmente a Francois Pinard, Casey Leedom, Robert "
7165 "Abramovitz, Stan Adermann, Terry Allen, David Barker-Plummer, John Basrai, "
7166 "Neal Becker, Nelson H.F. Beebe, [email protected], Karl Berry, Peter A. Bigot, "
7167 "Simon Blanchard, Keith Bostic, Frederic Brehm, Ian Brockbank, Kin Cho, Nick "
7168 "Christopher, Brian Clapper, J.T. Conklin, Jason Coughlin, Bill Cox, Nick "
7169 "Cropper, Dave Curtis, Scott David Daniels, Chris G. Demetriou, Theo Deraadt, "
7170 "Mike Donahue, Chuck Doucette, Tom Epperly, Leo Eskin, Chris Faylor, Chris "
7171 "Flatters, Jon Forrest, Jeffrey Friedl, Joe Gayda, Kaveh R. Ghazi, Wolfgang "
7172 "Glunz, Eric Goldman, Christopher M. Gould, Ulrich Grepel, Peer Griebel, Jan "
7173 "Hajic, Charles Hemphill, NORO Hideo, Jarkko Hietaniemi, Scott Hofmann, Jeff "
7174 "Honig, Dana Hudes, Eric Hughes, John Interrante, Ceriel Jacobs, Michal "
7175 "Jaegermann, Sakari Jalovaara, Jeffrey R. Jones, Henry Juengst, Klaus Kaempf, "
7176 "Jonathan I. Kamens, Terrence O Kane, Amir Katz, [email protected], Kevin B. "
7177 "Kenny, Steve Kirsch, Winfried Koenig, Marq Kole, Ronald Lamprecht, Greg Lee, "
7178 "Rohan Lenard, Craig Leres, John Levine, Steve Liddle, David Loffredo, Mike "
7179 "Long, Mohamed el Lozy, Brian Madsen, Malte, Joe Marshall, Bengt Martensson, "
7180 "Chris Metcalf, Luke Mewburn, Jim Meyering, R. Alexander Milowski, Erik "
7181 "Naggum, G.T. Nicol, Landon Noll, James Nordby, Marc Nozell, Richard Ohnemus, "
7182 "Karsten Pahnke, Sven Panne, Roland Pesch, Walter Pelissero, Gaumond Pierre, "
7183 "Esmond Pitt, Jef Poskanzer, Joe Rahmeh, Jarmo Raiha, Frederic Raimbault, Pat "
7184 "Rankin, Rick Richardson, Kevin Rodgers, Kai Uwe Rommel, Jim Roskind, Alberto "
7185 "Santini, Andreas Scherer, Darrell Schiebel, Raf Schietekat, Doug Schmidt, "
7186 "Philippe Schnoebelen, Andreas Schwab, Larry Schwimmer, Alex Siegel, Eckehard "
7187 "Stolz, Jan-Erik Strvmquist, Mike Stump, Paul Stuart, Dave Tallman, Ian Lance "
7188 "Taylor, Chris Thewalt, Richard M. Timoney, Jodi Tsai, Paul Tuinenga, Gary "
7189 "Weik, Frank Whaley, Gerhard Wilhelms, Kent Williams, Ken Yap, Ron Zellar, "
7190 "Nathan Zelle, David Zuhn, y aquellos cuyos nombres han caído bajo mis escasas "
7191 "dotes de archivador de correo pero cuyas contribuciones son apreciadas todas "
7192 "por igual."
7193
7194 #. type: Plain text
7195 #: original/man1/flex.1:4050
7196 msgid ""
7197 "Thanks to Keith Bostic, Jon Forrest, Noah Friedman, John Gilmore, Craig "
7198 "Leres, John Levine, Bob Mulcahy, G.T. Nicol, Francois Pinard, Rich Salz, and "
7199 "Richard Stallman for help with various distribution headaches."
7200 msgstr ""
7201 "Agradecimientos a Keith Bostic, Jon Forrest, Noah Friedman, John Gilmore, "
7202 "Craig Leres, John Levine, Bob Mulcahy, G.T. Nicol, Francois Pinard, Rich "
7203 "Salz, y a Richard Stallman por la ayuda con diversos quebraderos de cabeza "
7204 "con la distribución."
7205
7206 #. type: Plain text
7207 #: original/man1/flex.1:4055
7208 msgid ""
7209 "Thanks to Esmond Pitt and Earle Horton for 8-bit character support; to Benson "
7210 "Margulies and Fred Burke for C++ support; to Kent Williams and Tom Epperly "
7211 "for C++ class support; to Ove Ewerlid for support of NUL's; and to Eric "
7212 "Hughes for support of multiple buffers."
7213 msgstr ""
7214 "Agradecimientos a Esmond Pitt y Earle Horton por el soporte de caracteres de "
7215 "8-bits; a Benson Margulies y a Fred Burke por el soporte de C++; a Kent "
7216 "Williams y a Tom Epperly por el soporte de la clase de C++; a Ove Ewerlid por "
7217 "el soporte de NUL's; y a Eric Hughes por el soporte de múltiples buffers."
7218
7219 #. type: Plain text
7220 #: original/man1/flex.1:4059
7221 msgid ""
7222 "This work was primarily done when I was with the Real Time Systems Group at "
7223 "the Lawrence Berkeley Laboratory in Berkeley, CA. Many thanks to all there "
7224 "for the support I received."
7225 msgstr ""
7226 "Este trabajo fue hecho principalmente cuando yo estaba con el Grupo de "
7227 "Sistemas de Tiempo Real en el Lawrence Berkeley Laboratory en Berkeley, CA. "
7228 "Muchas gracias a todos allí por el apoyo que recibí."
7229
7230 #. type: Plain text
7231 #: original/man1/flex.1:4060
7232 msgid "Send comments to [email protected]."
7233 msgstr "Enviar comentarios a [email protected]."