First set of tests: use the `calc' example from the documentation.

* src/bison.s1 (yyparse): Condition the code using `yytname' which
is defined only when YYDEBUG is.
* m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
* src/files.c (tryopen, tryclose): Formatting changes.
Move to the top and be static.
* src/reader.c (read_signed_integer): Likewise.
* tests/calc.m4: New file.
* Makefile.am, suite.m4: Adjust.
* m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
This commit is contained in:
Akim Demaille
2000-09-18 13:18:26 +00:00
parent e79137accc
commit 0d533154e4
17 changed files with 615 additions and 393 deletions

View File

@@ -30,7 +30,7 @@
msgid ""
msgstr ""
"Project-Id-Version: GNU bison 1.25\n"
"POT-Creation-Date: 2000-09-18 14:58+0200\n"
"POT-Creation-Date: 2000-09-18 15:25+0200\n"
"PO-Revision-Date: 1998-09-21 10:19+0200\n"
"Last-Translator: Nicolás García-Pedrajas <ngarcia-pedrajas@acm.org>\n"
"Language-Team: Spanish <es@li.org>\n"
@@ -271,7 +271,7 @@ msgstr ""
msgid "unexpected `/' found and ignored"
msgstr "se ha encontrado `/' cuando no se esperaba, no se tendrán en cuenta"
#: src/lex.c:145 src/reader.c:257
#: src/lex.c:145 src/reader.c:290
msgid "unterminated comment"
msgstr "comentario sin terminar"
@@ -435,57 +435,57 @@ msgstr " en la izquierda:"
msgid " on right:"
msgstr " en la derecha:"
#: src/reader.c:155
#: src/reader.c:158
msgid " Skipping to next \\n"
msgstr " Saltando al siguiente \\n"
#: src/reader.c:157
#: src/reader.c:160
#, c-format
msgid " Skipping to next %c"
msgstr " Saltando al siguiente %c"
#: src/reader.c:181 src/reader.c:196
#: src/reader.c:214 src/reader.c:229
msgid "unterminated string at end of file"
msgstr "cadena sin terminar al final del fichero"
#: src/reader.c:184
#: src/reader.c:217
msgid "unterminated string"
msgstr "cadena sin terminar"
#: src/reader.c:452
#: src/reader.c:485
#, c-format
msgid "unrecognized: %s"
msgstr "no reconocido: %s"
#: src/reader.c:457
#: src/reader.c:490
msgid "no input grammar"
msgstr "no hay gramática de entrada"
#: src/reader.c:460
#: src/reader.c:493
#, c-format
msgid "unknown character: %s"
msgstr "carácter desconocido: %s"
#: src/reader.c:512
#: src/reader.c:545
msgid "unterminated `%{' definition"
msgstr "definición `%{' sin terminar"
#: src/reader.c:553 src/reader.c:741 src/reader.c:790
#: src/reader.c:586 src/reader.c:774 src/reader.c:823
#, c-format
msgid "Premature EOF after %s"
msgstr ""
#: src/reader.c:590 src/reader.c:812
#: src/reader.c:623 src/reader.c:845
#, c-format
msgid "symbol %s redefined"
msgstr "redefinido el símbolo %s"
#: src/reader.c:600 src/reader.c:756 src/reader.c:819 src/reader.c:1681
#: src/reader.c:633 src/reader.c:789 src/reader.c:852 src/reader.c:1714
#, c-format
msgid "type redeclaration for %s"
msgstr "redeclaración del tipo de %s"
#: src/reader.c:610
#: src/reader.c:643
#, c-format
msgid "`%s' is invalid in %s"
msgstr "`%s' no es válido en %s"
@@ -496,36 +496,36 @@ msgstr "`%s' no es v
# - cll
# ok - ngp
#
#: src/reader.c:658
#: src/reader.c:691
#, c-format
msgid "unrecognized item %s, expected an identifier"
msgstr "no se reconoce el ítem %s, se esperaba un identificador"
#: src/reader.c:680
#: src/reader.c:713
#, c-format
msgid "expected string constant instead of %s"
msgstr "se esperaba una cadena constante en lugar de %s"
#: src/reader.c:702 src/reader.c:863
#: src/reader.c:735 src/reader.c:896
#, fuzzy, c-format
msgid "multiple %s declarations"
msgstr "múltiples declaraciones de %start"
#: src/reader.c:704 src/reader.c:1657
#: src/reader.c:737 src/reader.c:1690
#, fuzzy, c-format
msgid "invalid %s declaration"
msgstr "declaración de %start no válida"
#: src/reader.c:724
#: src/reader.c:757
msgid "%type declaration has no <typename>"
msgstr "la declaración %type no tiene <nombre-tipo>"
#: src/reader.c:761
#: src/reader.c:794
#, fuzzy
msgid "invalid %%type declaration due to item: %s"
msgstr "declaración de %%type no válida debido al ítem: `%s'"
#: src/reader.c:808
#: src/reader.c:841
#, c-format
msgid "redefining precedence of %s"
msgstr "redefinición de la precedencia de %s"
@@ -534,7 +534,7 @@ msgstr "redefinici
# de "to must" y aquí se emplea en su forma condicional. Por eso, he
# cambiado `debe' por `debería' - cll
# ahí me has pillado en un olvido del inglés - ngp
#: src/reader.c:831
#: src/reader.c:864
#, c-format
msgid "invalid text (%s) - number should be after identifier"
msgstr ""
@@ -544,42 +544,42 @@ msgstr ""
# otras, como `inesperado'. Cualquiera es correcta, por supuesto y, en
# este caso, la segunda me parece más apropiada - cll
# ok - ngp
#: src/reader.c:841
#: src/reader.c:874
#, c-format
msgid "unexpected item: %s"
msgstr "ítem inesperado: %s"
# Cambio el orden y el sexo. Ahora está "en español". sv
#: src/reader.c:904 src/reader.c:1067 src/reader.c:1284
#: src/reader.c:937 src/reader.c:1100 src/reader.c:1317
#, fuzzy, c-format
msgid "unmatched %s"
msgstr "`{' desemparejada"
#: src/reader.c:949
#: src/reader.c:982
#, c-format
msgid "argument of %expect is not an integer"
msgstr "el argumento de %expect no es un entero"
#: src/reader.c:981
#: src/reader.c:1014
#, c-format
msgid "@%s is invalid"
msgstr "@%s no es válido"
#: src/reader.c:996 src/reader.c:1008
#: src/reader.c:1029 src/reader.c:1041
msgid "invalid $ value"
msgstr "valor $ no válido"
#: src/reader.c:1114 src/reader.c:1254
#: src/reader.c:1147 src/reader.c:1287
#, c-format
msgid "$$ of `%s' has no declared type"
msgstr "$$ de `%s' no tiene tipo declarado"
#: src/reader.c:1130 src/reader.c:1270
#: src/reader.c:1163 src/reader.c:1303
#, fuzzy, c-format
msgid "$%d of `%s' has no declared type"
msgstr "$%s de `%s' no tiene tipo declarado"
#: src/reader.c:1135 src/reader.c:1275
#: src/reader.c:1168 src/reader.c:1308
#, c-format
msgid "$%s is invalid"
msgstr "$%s no es válida"
@@ -588,93 +588,93 @@ msgstr "$%s no es v
# mejor que `sin terminar' que me parece más "computerizado" - cll
# quizás un poco cacofónico lo de claúsula inconclusa - ngp
#
#: src/reader.c:1144
#: src/reader.c:1177
#, fuzzy, c-format
msgid "unterminated %guard clause"
msgstr "cláusula %%guard sin terminar"
#: src/reader.c:1370
#: src/reader.c:1403
msgid "ill-formed rule: initial symbol not followed by colon"
msgstr "regla mal formada: el símbolo inicial no está seguido por :"
#: src/reader.c:1377
#: src/reader.c:1410
msgid "grammar starts with vertical bar"
msgstr "la gramática comienza con una barra vertical"
#: src/reader.c:1408
#: src/reader.c:1441
#, c-format
msgid "rule given for %s, which is a token"
msgstr "se ha dado una regla para %s, que es un terminal"
#: src/reader.c:1506
#: src/reader.c:1539
msgid "two @prec's in a row"
msgstr "dos @prec en una línea"
# Insisto, el empleo de participios a secas me parece como hablar en
# indio. Por favor, permíteme que añada un "está" :) - cll
# ok - ngp
#: src/reader.c:1515
#: src/reader.c:1548
#, fuzzy, c-format
msgid "%guard present but %semantic_parser not specified"
msgstr "%%guard presente pero %%semantic_parser está sin especificar"
#: src/reader.c:1524
#: src/reader.c:1557
msgid "two actions at end of one rule"
msgstr "dos acciones al final de una regla"
#: src/reader.c:1539
#: src/reader.c:1572
#, c-format
msgid "type clash (`%s' `%s') on default action"
msgstr "los tipos (`%s' `%s') no concuerdan en la acción por defecto"
#: src/reader.c:1545
#: src/reader.c:1578
msgid "empty rule for typed nonterminal, and no action"
msgstr "regla vacía para un no terminal con tipo y no hay ninguna acción"
#: src/reader.c:1589
#: src/reader.c:1622
#, c-format
msgid "invalid input: %s"
msgstr "entrada no válida: %s"
#: src/reader.c:1597
#: src/reader.c:1630
#, fuzzy, c-format
msgid "too many symbols (tokens plus nonterminals); maximum %d"
msgstr "demasiados símbolos (terminales y no terminales); máximo %s"
#: src/reader.c:1600
#: src/reader.c:1633
msgid "no rules in the input grammar"
msgstr "no hay reglas en la gramática de entrada"
# `token' se debe traducir como `literal' - cll
# en terminología de compiladores token es más un terminal - ngp
#
#: src/reader.c:1618
#: src/reader.c:1651
#, c-format
msgid "symbol %s is used, but is not defined as a token and has no rules"
msgstr ""
"se usa el símbolo %s, pero no está definido como terminal y no tiene reglas"
#: src/reader.c:1737
#: src/reader.c:1770
#, c-format
msgid "conflicting precedences for %s and %s"
msgstr "precedencias en conflicto entre %s y %s"
#: src/reader.c:1749
#: src/reader.c:1782
#, c-format
msgid "conflicting assoc values for %s and %s"
msgstr "conflicto de valores assoc para %s y %s"
#: src/reader.c:1800
#: src/reader.c:1833
#, fuzzy, c-format
msgid "tokens %s and %s both assigned number %d"
msgstr "los terminales %s y %s tienen asignados ambos el número %s"
#: src/reader.c:1814
#: src/reader.c:1847
#, c-format
msgid "the start symbol %s is undefined"
msgstr "el símbolo de inicio (axioma) %s no está definido"
#: src/reader.c:1816
#: src/reader.c:1849
#, c-format
msgid "the start symbol %s is a token"
msgstr "el símbolo de inicio (axioma) %s es un terminal"