mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-08-15 13:45:15 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0760f18e0 | ||
|
|
c884affb0b | ||
|
|
f7e7f57941 | ||
|
|
d1210d1d6e | ||
|
|
d5c2eff246 | ||
|
|
b59b91bb6e | ||
|
|
63e75f2e38 | ||
|
|
69dc1147ba | ||
|
|
3d9d5d34ff | ||
|
|
701d80ffa0 | ||
|
|
88f06d2beb | ||
|
|
daa938e7f0 | ||
|
|
ed45e93ed8 | ||
|
|
74d757ab92 | ||
|
|
4be25f1591 | ||
|
|
b7008317cf | ||
|
|
3f66ed1c8b | ||
|
|
58dce15432 | ||
|
|
e6970f2ed0 | ||
|
|
b9866ce4da | ||
|
|
b32ba448c8 | ||
|
|
5844cd0cfa | ||
|
|
0fc1a97d9f | ||
|
|
84b6f48351 | ||
|
|
b6a70d99a6 | ||
|
|
66d35de779 | ||
|
|
5e5b240715 | ||
|
|
aaf7be2c4b | ||
|
|
0ea80316a9 | ||
|
|
09b2117db7 | ||
|
|
78fc5ce865 | ||
|
|
766ffc1523 | ||
|
|
06a2f464b1 | ||
|
|
15ab9127f5 | ||
|
|
32f18df511 | ||
|
|
19f8d30b9c | ||
|
|
7b106ce5f0 | ||
|
|
b5c15946a1 | ||
|
|
980929ba0b | ||
|
|
4c3791f08d | ||
|
|
a8355549a5 | ||
|
|
2883204382 | ||
|
|
825b9e4ef4 | ||
|
|
57339f0421 | ||
|
|
963c0cf62f | ||
|
|
6a1e01f060 | ||
|
|
4cecb5a248 | ||
|
|
76c97f6a39 | ||
|
|
e4ef7aa1c9 | ||
|
|
3557477440 | ||
|
|
4b412c9eca | ||
|
|
fa7f94f217 | ||
|
|
d854cc9e5a | ||
|
|
2dfb4daf9b | ||
|
|
cc904af579 | ||
|
|
716c50b877 | ||
|
|
9f41bcaae8 | ||
|
|
1ccbf4bb8b | ||
|
|
a69f6fa569 | ||
|
|
3757d84e90 | ||
|
|
cac4f75e15 | ||
|
|
fc7ddd2818 | ||
|
|
0ffdf37212 | ||
|
|
9e55edfc29 | ||
|
|
d39a6b7ca9 | ||
|
|
d287d66a69 | ||
|
|
ea451a17d7 | ||
|
|
24b1e65f04 | ||
|
|
7ad28769d6 | ||
|
|
57d4ee2b82 | ||
|
|
d8a9ec00b8 | ||
|
|
872e1b86c4 | ||
|
|
ad4c2c7a57 | ||
|
|
0785dec2c8 | ||
|
|
e1828f4f07 | ||
|
|
a816bf3eac | ||
|
|
2ce6476804 | ||
|
|
457b6d1e72 | ||
|
|
79ebbdb36a | ||
|
|
0aa2ac9063 | ||
|
|
e7d79012ae | ||
|
|
eb4a4d73bc | ||
|
|
dee96b5a07 | ||
|
|
4bfeeafb00 | ||
|
|
c18cf8cb26 | ||
|
|
54b982ae70 |
@@ -1,3 +1,480 @@
|
|||||||
|
2001-12-13 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Version 1.30g.
|
||||||
|
|
||||||
|
2001-12-13 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
The computation of nullable is broken: it doesn't handle empty
|
||||||
|
RHS's properly.
|
||||||
|
|
||||||
|
* tests/torture.at (GNU AWK Grammar): New.
|
||||||
|
* tests/sets.at (Nullable): New.
|
||||||
|
* src/nullable.c (set_nullable): Instead of blindly looping over
|
||||||
|
`ritems', loop over the rules, and then over their rhs's.
|
||||||
|
|
||||||
|
Work around Autotest bugs.
|
||||||
|
|
||||||
|
* src/warshall.c (bitmatrix_print): Don't use `+--+' as table
|
||||||
|
frame, because Autotest understand lines starting with a `+' as
|
||||||
|
traces from the shell. Then, they are not processed properly.
|
||||||
|
Admittedly an Autotest bug, but we don't have time to wait for
|
||||||
|
Autotest to catch up.
|
||||||
|
* tests/regression.at (Broken Closure): Adjust to the new table
|
||||||
|
frames.
|
||||||
|
Move to...
|
||||||
|
* tests/sets.at: here.
|
||||||
|
|
||||||
|
2001-12-12 Paul Eggert <[email protected]>
|
||||||
|
|
||||||
|
* src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
|
||||||
|
Do not infringe on the global user namespace when using C++.
|
||||||
|
(YYFPRINTF, YYSTDERR): New macros, needed for the above.
|
||||||
|
All uses of `fprintf' and `stderr' changed.
|
||||||
|
|
||||||
|
* src/output.c (output): Do not output "#include <stdio.h>"; that
|
||||||
|
is bison.simple's job. stdio.h should be included only if
|
||||||
|
necessary, to avoid infringing on the user name space when
|
||||||
|
possible.
|
||||||
|
|
||||||
|
2001-12-12 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/complain.h, src/complain.c: Remove error_one_per_line, rely
|
||||||
|
on that of lib/error.c.
|
||||||
|
|
||||||
|
2001-12-12 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Some hosts don't like `/' in includes.
|
||||||
|
|
||||||
|
* src/system.h: Include libgettext.h without qualifying the path.
|
||||||
|
* src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
|
||||||
|
$(top_srcdir).
|
||||||
|
|
||||||
|
2001-12-10 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Bison dumps core on bash.y.
|
||||||
|
Reported by Pascal Bart.
|
||||||
|
|
||||||
|
* src/warshall.c (bitmatrix_print): New.
|
||||||
|
(TC): Use it.
|
||||||
|
When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
|
||||||
|
j must be the outer loop.
|
||||||
|
* tests/regression.at (Broken Closure): New.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Version 1.30f.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
|
||||||
|
its argument.
|
||||||
|
Reported by Peter Hámorský.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (err_table): Remove.
|
||||||
|
(resolve_sr_conflict): Adjust.
|
||||||
|
* src/lalr.h (state_t.reduction_table, state_t.shift_table):
|
||||||
|
Rename as...
|
||||||
|
(state_t.reductions, state_t.shifts): this.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/reduce.c (reduce_grammar_tables): No longer disable the
|
||||||
|
removal of useless rules via CPP but via `if (0)', so that the
|
||||||
|
compiler still check the code is valid.
|
||||||
|
For instance, it should have noticed `rline' no longer exists: use
|
||||||
|
the `line' member of rule_t.
|
||||||
|
* src/gram.c (dummy, rline): Remove, unused.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/output.c (pack_vector): Use assert, not berror.
|
||||||
|
* src/main.c (berror): Remove, unused.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
New experimental feature: if --verbose --trace output all the
|
||||||
|
items of a state, not only its kernel.
|
||||||
|
|
||||||
|
* src/print.c (print_core): If `trace_flag', then invoke closure
|
||||||
|
before outputting the items of the state (print_core is no longer
|
||||||
|
a correct name them).
|
||||||
|
(print_results): Invoke new_closure/free_closure if needed.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
|
||||||
|
* src/closure.c, src/closure.h (itemsetsize): Rename as...
|
||||||
|
(nitemset): for consistency with the rest of the project.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (print_closure): Improve.
|
||||||
|
(closure): Use it for printing input and output.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
|
||||||
|
indexed by nonterminals.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
|
||||||
|
what it was!).
|
||||||
|
* src/warshall.h: Remove accidental duplication of the content.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (set_fderives): De-obfuscate.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (print_firsts, print_fderives): De-obfuscate.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (set_firsts): De-obfuscate.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/output.c (action_row): De-obfuscate
|
||||||
|
using the good o' techniques: arrays not pointers, variable
|
||||||
|
locality, BITISSET, RESETBIT etc.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Pessimize the code to simplify it: from now on, all the states
|
||||||
|
have a valid SHIFTS, which NSHIFTS is possibly 0.
|
||||||
|
|
||||||
|
* src/LR0.c (shifts_new): Be global and move to..
|
||||||
|
* src/state.c, src/state.h: here.
|
||||||
|
* src/conflicts, src/lalr.c, src/output.c, src/print.c,
|
||||||
|
* src/print_graph: Adjust.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
|
||||||
|
* src/conflicts.c: Use it.
|
||||||
|
Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
|
||||||
|
incorrectly ``simplified''.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
|
||||||
|
using the good o' techniques: arrays not pointers, variable
|
||||||
|
locality, BITISSET, RESETBIT etc.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/state.h (SHIFT_SYMBOL): New.
|
||||||
|
* src/conflicts.c: Use it to deobfuscate.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
|
||||||
|
(print_reductions): De-obfuscate using the good o' techniques:
|
||||||
|
arrays not pointers, variable locality, BITISSET.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (print_reductions): Arrays, not pointers.
|
||||||
|
Use BITISSET.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (print_reductions): Pessimize, but clarify.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (print_reductions): Improve variable locality.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (print_reductions): Pessimize, but clarify.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/conflicts.c (print_reductions): Improve variable locality.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
|
||||||
|
* src/lalr.c: Use them.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/LR0.c (augment_automaton): Formatting changes.
|
||||||
|
Better variable locality.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/lalr.c (matrix_print): New.
|
||||||
|
(transpose): Use it.
|
||||||
|
Use arrays instead of pointers.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/lalr.c (maxrhs): Move to...
|
||||||
|
* src/gram.c, src/gram.h (ritem_longest_rhs): here.
|
||||||
|
* src/lalr.c (build_relations): Adjust.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/lalr.c (transpose): Free the memory allocated to the
|
||||||
|
argument, as it is replaced by the results by the unique caller.
|
||||||
|
(build_relations): Merely invoke transpose: it handles the memory
|
||||||
|
deallocation.
|
||||||
|
Improve variable locality.
|
||||||
|
Avoid variables used as mere abbreviations.
|
||||||
|
(compute_lookaheads): Use arrays instead of pointers.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/lalr.c (initialize_F): Improve variable locality.
|
||||||
|
Avoid variables used as mere abbreviations.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/derives.c (print_derives): Display the ruleno.
|
||||||
|
* src/lalr.c (initialize_F, transpose): Better variable locality
|
||||||
|
to improve readability.
|
||||||
|
Avoid variables used as mere abbreviations.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/lalr.c (traverse): Use arrays instead of pointers.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/nullable.c (set_nullable): Use a for loop to de-obfuscate
|
||||||
|
the handling of squeue.
|
||||||
|
`symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Because useless nonterminals are now kept alive (instead of being
|
||||||
|
`destroyed'), we now sometimes examine them, and store information
|
||||||
|
related to them. Hence we need to know their number, and adjust
|
||||||
|
memory allocations.
|
||||||
|
|
||||||
|
* src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
|
||||||
|
static.
|
||||||
|
* src/LR0.c (allocate_itemsets): The memory allocated to
|
||||||
|
`symbol_count' was used for two different purpose: once to count
|
||||||
|
the number of occurrences of each symbol, and later reassigned to
|
||||||
|
`shift_symbol', containing the symbol that can be shifted from a
|
||||||
|
given state.
|
||||||
|
Deobfuscate, i.e., allocate, use and free `symbol_count' here
|
||||||
|
only, and...
|
||||||
|
(new_itemsets): Allocate `shift_symbol' here.
|
||||||
|
(allocate_itemsets): symbol_count includes useless nonterminals.
|
||||||
|
Make room for them.
|
||||||
|
(free_storage): Use `free', not `XFREE', for pointers that cannot
|
||||||
|
be null.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/nullable.c (set_nullable): Deobfuscate the handling of
|
||||||
|
ritem.
|
||||||
|
`symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
|
||||||
|
|
||||||
|
2001-12-05 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/gram.c, src/gram.h (ritem_print): New.
|
||||||
|
* src/gram.c (dummy): Remove, now there is actual code in gram.c.
|
||||||
|
(This useless function was defined only to work around VMS linkers
|
||||||
|
that can't handle compilation units with variables only).
|
||||||
|
* src/reduce.c (dump_grammar): Use it to trace the construction of
|
||||||
|
ritem.
|
||||||
|
|
||||||
|
2001-12-04 Paul Eggert <[email protected]>
|
||||||
|
|
||||||
|
* src/bison.simple (union yyalloc): Change member names
|
||||||
|
to be the same as the stack names.
|
||||||
|
(yyparse): yyptr is now union yyalloc *, not char *.
|
||||||
|
(YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
|
||||||
|
and may generate better code on some machines.
|
||||||
|
(yystpcpy): Use prototype if __STDC__ is defined, not just
|
||||||
|
if __cplusplus is defined.
|
||||||
|
|
||||||
|
2001-11-30 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* configure.in (WARNING_CFLAGS): Add -Werror when possible.
|
||||||
|
(CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
|
||||||
|
Gettext doesn't compile cleanly, and dies with -Werror.
|
||||||
|
* src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
|
||||||
|
Include WARNING_CFLAGS here.
|
||||||
|
* lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
|
||||||
|
before being defined.
|
||||||
|
|
||||||
|
2001-11-30 Paul Eggert <[email protected]>
|
||||||
|
|
||||||
|
* lib/quotearg.h (quotearg_n, quotearg_n_style):
|
||||||
|
First arg is int, not unsigned.
|
||||||
|
* lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
|
||||||
|
(SIZE_MAX, UINT_MAX): New macros.
|
||||||
|
(quotearg_n_options): Abort if N is negative.
|
||||||
|
Avoid overflow check on hosts where size_t is 64 bits and int
|
||||||
|
is 32 bits, as overflow is impossible there.
|
||||||
|
Fix off-by-one typo that caused unnecessary reallocation.
|
||||||
|
|
||||||
|
2001-11-30 Paul Eggert <[email protected]>
|
||||||
|
|
||||||
|
Name space cleanup in generated parser.
|
||||||
|
|
||||||
|
* doc/bison.texinfo (Bison Parser): Discuss system headers
|
||||||
|
and their effect on the user name space.
|
||||||
|
|
||||||
|
* src/bison.simple:
|
||||||
|
(YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
|
||||||
|
YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
|
||||||
|
i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
|
||||||
|
|
||||||
|
(YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
|
||||||
|
on user names when possible.
|
||||||
|
|
||||||
|
(YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
|
||||||
|
Simplify test for whather <alloca.h> exists.
|
||||||
|
|
||||||
|
(<stdlib.h>): Include if we will use malloc, and if standard C or C++.
|
||||||
|
|
||||||
|
(<stdio.h>): Include if YYDEBUG.
|
||||||
|
|
||||||
|
(yymemcpy): Renamed from __yy_memcpy. Do not define unless
|
||||||
|
! defined (yyoverflow) && ! defined (yymemcpy).
|
||||||
|
|
||||||
|
(yymemcpy, yyparse): Rename local variables as needed so that
|
||||||
|
they all begin with 'yy'.
|
||||||
|
|
||||||
|
(yystrlen, yystpcpy): New functions.
|
||||||
|
|
||||||
|
(YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
|
||||||
|
All uses changed.
|
||||||
|
|
||||||
|
(yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
|
||||||
|
instead of relying on string.h functions. Use YYSTACK_ALLOC
|
||||||
|
and YYSTACK_FREE instead of malloc and free.
|
||||||
|
|
||||||
|
2001-11-30 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
|
||||||
|
if body instead of `;' to pacify GCC's warnings.
|
||||||
|
|
||||||
|
2001-11-30 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
Instead of mapping the LHS of unused rules to -1, keep the LHS
|
||||||
|
valid, but flag the rules as invalid.
|
||||||
|
|
||||||
|
* src/gram.h (rule_t): `useful' is a new member.
|
||||||
|
* src/print.c (print_grammar): Adjust.
|
||||||
|
* src/derives.c (set_derives): Likewise.
|
||||||
|
* src/reader.c (packgram, reduce_output): Likewise.
|
||||||
|
* src/reduce.c (reduce_grammar_tables): Likewise.
|
||||||
|
* tests/reduce.at (Underivable Rules, Useless Rules): New.
|
||||||
|
|
||||||
|
2001-11-30 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/reduce.c (reduce_output): Formatting changes.
|
||||||
|
* src/print.c (print_results, print_grammar): Likewise.
|
||||||
|
* tests/regression.at (Rule Line Numbers)
|
||||||
|
(Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
|
||||||
|
|
||||||
|
2001-11-30 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/reduce.c (nonterminals_reduce): Instead of throwing away
|
||||||
|
useless nonterminals, move them at the end of the symbol arrays.
|
||||||
|
(reduce_output): Adjust.
|
||||||
|
* tests/reduce.at (Useless Nonterminals): Adjust.
|
||||||
|
|
||||||
|
2001-11-30 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/reduce.c: Various comment/formatting changes.
|
||||||
|
(nonterminals_reduce): New, extracted from...
|
||||||
|
(reduce_grammar_tables): here.
|
||||||
|
(reduce_grammar): Call nonterminals_reduce.
|
||||||
|
|
||||||
|
2001-11-29 Paul Eggert <[email protected]>
|
||||||
|
|
||||||
|
* src/bison.simple (YYSTACK_REALLOC): Remove.
|
||||||
|
(YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
|
||||||
|
(YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
|
||||||
|
New macros.
|
||||||
|
(union yyalloc): New type.
|
||||||
|
(__yy_memcpy): Last arg is size_t, not unsigned int, to remove
|
||||||
|
an arbitrary restriction on hosts where size_t is wider than int.
|
||||||
|
|
||||||
|
(yyparse): Don't dump core if alloca or malloc fails; instead, report
|
||||||
|
a parser stack overflow. Allocate just one block of memory for all
|
||||||
|
three stacks, instead of allocating three blocks; this typically is
|
||||||
|
faster and reduces fragmentation.
|
||||||
|
|
||||||
|
Do not limit the number of items in the stack to a value that fits
|
||||||
|
in 'int', as this is an arbitrary limit on hosts with 64-bit
|
||||||
|
size_t and 32-bit int.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/LR0.c (shifts_new): New.
|
||||||
|
(save_shifts, insert_start_shift, augment_automaton): Use it.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (closure): `b' and `ruleno' denote the same value:
|
||||||
|
keep ruleno only.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (closure): Instead of looping over word in array
|
||||||
|
then bits in words, loop over bits in array.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (closure): No longer optimize the special case
|
||||||
|
where all the bits of `ruleset[r]' are set to 0, to make the code
|
||||||
|
clearer.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/closure.c (closure): `r' and `c' are new variables, used to
|
||||||
|
de-obfuscate accesses to RULESET and CORE.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/reduce.c (reduce_print): Use ngettext.
|
||||||
|
(dump_grammar): Improve the trace accuracy.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/reduce.c (dump_grammar): Don't translate trace messages.
|
||||||
|
|
||||||
|
2001-11-28 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
|
||||||
|
* src/reduce.c (reduce_grammar_tables): Do not free useless tags,
|
||||||
|
as all tags are free'ed afterwards.
|
||||||
|
From Enrico Scholz.
|
||||||
|
|
||||||
|
2001-11-27 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/system.h: Use intl/libgettext.h.
|
||||||
|
* src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
|
||||||
|
|
||||||
|
2001-11-27 Paul Eggert <[email protected]>
|
||||||
|
|
||||||
|
* src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
|
||||||
|
use alloca when we didn't want to, and vice versa.
|
||||||
|
|
||||||
|
2001-11-27 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* tests/torture.at (Exploding the Stack Size with Malloc):
|
||||||
|
s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
|
||||||
|
|
||||||
|
2001-11-27 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
|
* src/files.c: Include error.h.
|
||||||
|
From Hans Aberg.
|
||||||
|
|
||||||
2001-11-26 Akim Demaille <[email protected]>
|
2001-11-26 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
Version 1.30e.
|
Version 1.30e.
|
||||||
@@ -39,11 +516,6 @@
|
|||||||
conflicts as expected.
|
conflicts as expected.
|
||||||
* tests/regression.at (%expect right): Adjust.
|
* tests/regression.at (%expect right): Adjust.
|
||||||
|
|
||||||
2001-11-25 Marc Autret <[email protected]>
|
|
||||||
|
|
||||||
* doc/bison.texinfo (Mystery Conflicts): Hint '-v' use.
|
|
||||||
From Golubev I. N.
|
|
||||||
|
|
||||||
2001-11-23 Akim Demaille <[email protected]>
|
2001-11-23 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
* lib/alloca.c: Update, from fileutils.
|
* lib/alloca.c: Update, from fileutils.
|
||||||
|
|||||||
+15
@@ -1,3 +1,18 @@
|
|||||||
|
## This program is free software; you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
|
||||||
|
## This program is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU General Public License for more details.
|
||||||
|
|
||||||
|
## You should have received a copy of the GNU General Public License
|
||||||
|
## along with this program; if not, write to the Free Software
|
||||||
|
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
## 02111-1307 USA
|
||||||
|
|
||||||
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
||||||
AUTOMAKE_OPTIONS = 1.5 check-news readme-alpha dist-bzip2
|
AUTOMAKE_OPTIONS = 1.5 check-news readme-alpha dist-bzip2
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,21 @@
|
|||||||
Bison News
|
Bison News
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
Changes in version 1.30g:
|
||||||
|
|
||||||
|
* Bug fixes
|
||||||
|
|
||||||
|
* Better C++ compliance
|
||||||
|
The output parsers try to respect C++ namespaces.
|
||||||
|
|
||||||
|
Changes in version 1.30f:
|
||||||
|
|
||||||
|
* Reduced Grammars
|
||||||
|
Fixed bugs when reporting useless nonterminals.
|
||||||
|
|
||||||
|
* 64 bit hosts
|
||||||
|
The parsers work properly on 64 bit hosts.
|
||||||
|
|
||||||
Changes in version 1.30e:
|
Changes in version 1.30e:
|
||||||
|
|
||||||
* Error messages
|
* Error messages
|
||||||
|
|||||||
Vendored
+46
-44
@@ -3,7 +3,7 @@
|
|||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-11-26'
|
timestamp='2001-12-12'
|
||||||
|
|
||||||
# This file is free software; you can redistribute it and/or modify it
|
# This file is free software; you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
@@ -135,23 +135,21 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|||||||
# object file format. This provides both forward
|
# object file format. This provides both forward
|
||||||
# compatibility and a consistent mechanism for selecting the
|
# compatibility and a consistent mechanism for selecting the
|
||||||
# object file format.
|
# object file format.
|
||||||
# Determine the machine/vendor (is the vendor relevant).
|
#
|
||||||
case "${UNAME_MACHINE}" in
|
# Note: NetBSD doesn't particularly care about the vendor
|
||||||
amiga) machine=m68k-unknown ;;
|
# portion of the name. We always set it to "unknown".
|
||||||
arm32) machine=arm-unknown ;;
|
UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \
|
||||||
atari*) machine=m68k-atari ;;
|
UNAME_MACHINE_ARCH=unknown
|
||||||
sun3*) machine=m68k-sun ;;
|
case "${UNAME_MACHINE_ARCH}" in
|
||||||
mac68k) machine=m68k-apple ;;
|
arm*) machine=arm-unknown ;;
|
||||||
macppc) machine=powerpc-apple ;;
|
sh3el) machine=shl-unknown ;;
|
||||||
hp3[0-9][05]) machine=m68k-hp ;;
|
sh3eb) machine=sh-unknown ;;
|
||||||
ibmrt|romp-ibm) machine=romp-ibm ;;
|
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
||||||
sparc*) machine=`uname -p`-unknown ;;
|
|
||||||
*) machine=${UNAME_MACHINE}-unknown ;;
|
|
||||||
esac
|
esac
|
||||||
# The Operating System including object format, if it has switched
|
# The Operating System including object format, if it has switched
|
||||||
# to ELF recently, or will in the future.
|
# to ELF recently, or will in the future.
|
||||||
case "${UNAME_MACHINE}" in
|
case "${UNAME_MACHINE_ARCH}" in
|
||||||
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
|
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||||
| grep __ELF__ >/dev/null
|
| grep __ELF__ >/dev/null
|
||||||
@@ -767,10 +765,21 @@ EOF
|
|||||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
mips:Linux:*:*)
|
mips:Linux:*:*)
|
||||||
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
|
eval $set_cc_for_build
|
||||||
big) echo mips-unknown-linux-gnu && exit 0 ;;
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
|
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||||
esac
|
CPU=mipsel
|
||||||
|
#else
|
||||||
|
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||||
|
CPU=mips
|
||||||
|
#else
|
||||||
|
CPU=
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
EOF
|
||||||
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
||||||
|
rm -f $dummy.c
|
||||||
|
test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
|
||||||
;;
|
;;
|
||||||
ppc:Linux:*:*)
|
ppc:Linux:*:*)
|
||||||
echo powerpc-unknown-linux-gnu
|
echo powerpc-unknown-linux-gnu
|
||||||
@@ -843,32 +852,25 @@ EOF
|
|||||||
esac
|
esac
|
||||||
# Determine whether the default compiler is a.out or elf
|
# Determine whether the default compiler is a.out or elf
|
||||||
eval $set_cc_for_build
|
eval $set_cc_for_build
|
||||||
cat >$dummy.c <<EOF
|
sed 's/^ //' << EOF >$dummy.c
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#ifdef __cplusplus
|
#ifdef __ELF__
|
||||||
#include <stdio.h> /* for printf() prototype */
|
# ifdef __GLIBC__
|
||||||
int main (int argc, char *argv[]) {
|
# if __GLIBC__ >= 2
|
||||||
#else
|
LIBC=gnu
|
||||||
int main (argc, argv) int argc; char *argv[]; {
|
# else
|
||||||
#endif
|
LIBC=gnulibc1
|
||||||
#ifdef __ELF__
|
# endif
|
||||||
# ifdef __GLIBC__
|
# else
|
||||||
# if __GLIBC__ >= 2
|
LIBC=gnulibc1
|
||||||
printf ("%s-pc-linux-gnu\n", argv[1]);
|
# endif
|
||||||
# else
|
#else
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
LIBC=gnuaout
|
||||||
# endif
|
#endif
|
||||||
# else
|
|
||||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
printf ("%s-pc-linux-gnuaout\n", argv[1]);
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EOF
|
EOF
|
||||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
||||||
rm -f $dummy.c $dummy
|
rm -f $dummy.c
|
||||||
|
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
|
||||||
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
||||||
;;
|
;;
|
||||||
i*86:DYNIX/ptx:4*:*)
|
i*86:DYNIX/ptx:4*:*)
|
||||||
|
|||||||
Vendored
+19
-5
@@ -3,7 +3,7 @@
|
|||||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||||
# Free Software Foundation, Inc.
|
# Free Software Foundation, Inc.
|
||||||
|
|
||||||
timestamp='2001-11-21'
|
timestamp='2001-12-10'
|
||||||
|
|
||||||
# This file is (in principle) common to ALL GNU software.
|
# This file is (in principle) common to ALL GNU software.
|
||||||
# The presence of a machine in this file suggests that SOME GNU software
|
# The presence of a machine in this file suggests that SOME GNU software
|
||||||
@@ -249,9 +249,9 @@ case $basic_machine in
|
|||||||
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
|
| sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
|
||||||
| strongarm \
|
| strongarm \
|
||||||
| tahoe | thumb | tic80 | tron \
|
| tahoe | thumb | tic80 | tron \
|
||||||
| v850 \
|
| v850 | v850e \
|
||||||
| we32k \
|
| we32k \
|
||||||
| x86 | xscale | xstormy16 \
|
| x86 | xscale | xstormy16 | xtensa \
|
||||||
| z8k)
|
| z8k)
|
||||||
basic_machine=$basic_machine-unknown
|
basic_machine=$basic_machine-unknown
|
||||||
;;
|
;;
|
||||||
@@ -307,9 +307,10 @@ case $basic_machine in
|
|||||||
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \
|
| sparc-* | sparc64-* | sparc86x-* | sparclite-* \
|
||||||
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
|
| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
|
||||||
| t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
|
| t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
|
||||||
| v850-* | vax-* \
|
| v850-* | v850e-* | vax-* \
|
||||||
| we32k-* \
|
| we32k-* \
|
||||||
| x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
|
| x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
|
||||||
|
| xtensa-* \
|
||||||
| ymp-* \
|
| ymp-* \
|
||||||
| z8k-*)
|
| z8k-*)
|
||||||
;;
|
;;
|
||||||
@@ -418,6 +419,14 @@ case $basic_machine in
|
|||||||
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
||||||
basic_machine=mips-dec
|
basic_machine=mips-dec
|
||||||
;;
|
;;
|
||||||
|
decsystem10* | dec10*)
|
||||||
|
basic_machine=pdp10-dec
|
||||||
|
os=-tops10
|
||||||
|
;;
|
||||||
|
decsystem20* | dec20*)
|
||||||
|
basic_machine=pdp10-dec
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
delta | 3300 | motorola-3300 | motorola-delta \
|
delta | 3300 | motorola-3300 | motorola-delta \
|
||||||
| 3300-motorola | delta-motorola)
|
| 3300-motorola | delta-motorola)
|
||||||
basic_machine=m68k-motorola
|
basic_machine=m68k-motorola
|
||||||
@@ -881,6 +890,10 @@ case $basic_machine in
|
|||||||
tx39el)
|
tx39el)
|
||||||
basic_machine=mipstx39el-unknown
|
basic_machine=mipstx39el-unknown
|
||||||
;;
|
;;
|
||||||
|
toad1)
|
||||||
|
basic_machine=pdp10-xkl
|
||||||
|
os=-tops20
|
||||||
|
;;
|
||||||
tower | tower-32)
|
tower | tower-32)
|
||||||
basic_machine=m68k-ncr
|
basic_machine=m68k-ncr
|
||||||
;;
|
;;
|
||||||
@@ -1074,7 +1087,7 @@ case $os in
|
|||||||
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
||||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||||
| -os2* | -vos* | -palmos* | -uclinux*)
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus*)
|
||||||
# Remember, each alternative MUST END IN *, to match a version number.
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
;;
|
;;
|
||||||
-qnx*)
|
-qnx*)
|
||||||
@@ -1209,6 +1222,7 @@ case $basic_machine in
|
|||||||
arm*-semi)
|
arm*-semi)
|
||||||
os=-aout
|
os=-aout
|
||||||
;;
|
;;
|
||||||
|
# This must come before the *-dec entry.
|
||||||
pdp10-*)
|
pdp10-*)
|
||||||
os=-tops20
|
os=-tops20
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.30d
|
1.30f
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.52g for GNU Bison 1.30e.
|
# Generated by GNU Autoconf 2.52g for GNU Bison 1.30g.
|
||||||
#
|
#
|
||||||
# Report bugs to <[email protected]>.
|
# Report bugs to <[email protected]>.
|
||||||
#
|
#
|
||||||
@@ -332,8 +332,8 @@ mandir='${prefix}/man'
|
|||||||
# Identity of this package.
|
# Identity of this package.
|
||||||
PACKAGE_NAME='GNU Bison'
|
PACKAGE_NAME='GNU Bison'
|
||||||
PACKAGE_TARNAME='bison'
|
PACKAGE_TARNAME='bison'
|
||||||
PACKAGE_VERSION='1.30e'
|
PACKAGE_VERSION='1.30g'
|
||||||
PACKAGE_STRING='GNU Bison 1.30e'
|
PACKAGE_STRING='GNU Bison 1.30g'
|
||||||
PACKAGE_BUGREPORT='[email protected]'
|
PACKAGE_BUGREPORT='[email protected]'
|
||||||
|
|
||||||
ac_prev=
|
ac_prev=
|
||||||
@@ -760,7 +760,7 @@ if test "$ac_init_help" = "long"; then
|
|||||||
# Omit some internal or obsolete options to make the list less imposing.
|
# Omit some internal or obsolete options to make the list less imposing.
|
||||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||||
cat <<_ACEOF
|
cat <<_ACEOF
|
||||||
\`configure' configures GNU Bison 1.30e to adapt to many kinds of systems.
|
\`configure' configures GNU Bison 1.30g to adapt to many kinds of systems.
|
||||||
|
|
||||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||||
|
|
||||||
@@ -826,7 +826,7 @@ fi
|
|||||||
|
|
||||||
if test -n "$ac_init_help"; then
|
if test -n "$ac_init_help"; then
|
||||||
case $ac_init_help in
|
case $ac_init_help in
|
||||||
short | recursive ) echo "Configuration of GNU Bison 1.30e:";;
|
short | recursive ) echo "Configuration of GNU Bison 1.30g:";;
|
||||||
esac
|
esac
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
|
|
||||||
@@ -921,7 +921,7 @@ fi
|
|||||||
test -n "$ac_init_help" && exit 0
|
test -n "$ac_init_help" && exit 0
|
||||||
if $ac_init_version; then
|
if $ac_init_version; then
|
||||||
cat <<\_ACEOF
|
cat <<\_ACEOF
|
||||||
GNU Bison configure 1.30e
|
GNU Bison configure 1.30g
|
||||||
generated by GNU Autoconf 2.52g
|
generated by GNU Autoconf 2.52g
|
||||||
|
|
||||||
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
||||||
@@ -936,7 +936,7 @@ cat >&5 <<_ACEOF
|
|||||||
This file contains any messages produced by compilers while
|
This file contains any messages produced by compilers while
|
||||||
running configure, to aid debugging if configure makes a mistake.
|
running configure, to aid debugging if configure makes a mistake.
|
||||||
|
|
||||||
It was created by GNU Bison $as_me 1.30e, which was
|
It was created by GNU Bison $as_me 1.30g, which was
|
||||||
generated by GNU Autoconf 2.52g. Invocation command line was
|
generated by GNU Autoconf 2.52g. Invocation command line was
|
||||||
|
|
||||||
$ $0 $@
|
$ $0 $@
|
||||||
@@ -1470,7 +1470,7 @@ fi
|
|||||||
|
|
||||||
# Define the identity of the package.
|
# Define the identity of the package.
|
||||||
PACKAGE=bison
|
PACKAGE=bison
|
||||||
VERSION=1.30e
|
VERSION=1.30g
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define PACKAGE "$PACKAGE"
|
#define PACKAGE "$PACKAGE"
|
||||||
@@ -3734,7 +3734,52 @@ echo "${ECHO_T}no" >&6
|
|||||||
fi
|
fi
|
||||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||||
CFLAGS="$ac_save_CFLAGS"
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
CFLAGS="$CFLAGS $WARNING_CFLAGS"
|
echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
|
||||||
|
echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
|
||||||
|
|
||||||
|
ac_save_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS="$CFLAGS -Werror"
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
#line $LINENO "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
|
||||||
|
#ifdef F77_DUMMY_MAIN
|
||||||
|
# ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
# endif
|
||||||
|
int F77_DUMMY_MAIN() { return 1; }
|
||||||
|
#endif
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
int x;
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
|
(eval $ac_compile) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -s conftest.$ac_objext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
WARNING_CFLAGS="$WARNING_CFLAGS -Werror"
|
||||||
|
echo "$as_me:$LINENO: result: yes" >&5
|
||||||
|
echo "${ECHO_T}yes" >&6
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
cat conftest.$ac_ext >&5
|
||||||
|
echo "$as_me:$LINENO: result: no" >&5
|
||||||
|
echo "${ECHO_T}no" >&6
|
||||||
|
fi
|
||||||
|
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||||
|
CFLAGS="$ac_save_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
@@ -9104,7 +9149,7 @@ _ASBOX
|
|||||||
} >&5
|
} >&5
|
||||||
cat >&5 <<_CSEOF
|
cat >&5 <<_CSEOF
|
||||||
|
|
||||||
This file was extended by GNU Bison $as_me 1.30e, which was
|
This file was extended by GNU Bison $as_me 1.30g, which was
|
||||||
generated by GNU Autoconf 2.52g. Invocation command line was
|
generated by GNU Autoconf 2.52g. Invocation command line was
|
||||||
|
|
||||||
CONFIG_FILES = $CONFIG_FILES
|
CONFIG_FILES = $CONFIG_FILES
|
||||||
@@ -9166,7 +9211,7 @@ _ACEOF
|
|||||||
|
|
||||||
cat >>$CONFIG_STATUS <<_ACEOF
|
cat >>$CONFIG_STATUS <<_ACEOF
|
||||||
ac_cs_version="\\
|
ac_cs_version="\\
|
||||||
GNU Bison config.status 1.30e
|
GNU Bison config.status 1.30g
|
||||||
configured by $0, generated by GNU Autoconf 2.52g,
|
configured by $0, generated by GNU Autoconf 2.52g,
|
||||||
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -1,5 +1,7 @@
|
|||||||
# Configure template for GNU Bison. -*-Autoconf-*-
|
# Configure template for GNU Bison. -*-Autoconf-*-
|
||||||
#
|
#
|
||||||
|
# Copyright 2001 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
@@ -18,10 +20,10 @@
|
|||||||
# We need a recent Autoconf to run a recent Autotest.
|
# We need a recent Autoconf to run a recent Autotest.
|
||||||
AC_PREREQ(2.52g)
|
AC_PREREQ(2.52g)
|
||||||
|
|
||||||
AC_INIT([GNU Bison], [1.30e], [[email protected]])
|
AC_INIT([GNU Bison], [1.30g], [[email protected]])
|
||||||
AC_CONFIG_AUX_DIR(config)
|
AC_CONFIG_AUX_DIR(config)
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([bison], [1.30e])
|
AM_INIT_AUTOMAKE([bison], [1.30g])
|
||||||
AM_CONFIG_HEADER(config.h:config.hin)
|
AM_CONFIG_HEADER(config.h:config.hin)
|
||||||
|
|
||||||
# Initialize the test suite.
|
# Initialize the test suite.
|
||||||
@@ -59,7 +61,7 @@ if test "${enableval}" = yes; then
|
|||||||
BISON_WARNING(-Wshadow)
|
BISON_WARNING(-Wshadow)
|
||||||
BISON_WARNING(-Wstrict-prototypes)
|
BISON_WARNING(-Wstrict-prototypes)
|
||||||
BISON_WARNING(-Wwrite-strings)
|
BISON_WARNING(-Wwrite-strings)
|
||||||
CFLAGS="$CFLAGS $WARNING_CFLAGS"
|
BISON_WARNING(-Werror)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
|||||||
+21
-7
@@ -693,7 +693,7 @@ arrange for it to call @code{yyparse} or the parser will never run.
|
|||||||
@xref{Interface, ,Parser C-Language Interface}.
|
@xref{Interface, ,Parser C-Language Interface}.
|
||||||
|
|
||||||
Aside from the token type names and the symbols in the actions you
|
Aside from the token type names and the symbols in the actions you
|
||||||
write, all variable and function names used in the Bison parser file
|
write, all symbols defined in the Bison parser file itself
|
||||||
begin with @samp{yy} or @samp{YY}. This includes interface functions
|
begin with @samp{yy} or @samp{YY}. This includes interface functions
|
||||||
such as the lexical analyzer function @code{yylex}, the error reporting
|
such as the lexical analyzer function @code{yylex}, the error reporting
|
||||||
function @code{yyerror} and the parser function @code{yyparse} itself.
|
function @code{yyerror} and the parser function @code{yyparse} itself.
|
||||||
@@ -702,6 +702,15 @@ Therefore, you should avoid using C identifiers starting with @samp{yy}
|
|||||||
or @samp{YY} in the Bison grammar file except for the ones defined in
|
or @samp{YY} in the Bison grammar file except for the ones defined in
|
||||||
this manual.
|
this manual.
|
||||||
|
|
||||||
|
In some cases the Bison parser file includes system headers, and in
|
||||||
|
those cases your code should respect the identifiers reserved by those
|
||||||
|
headers. On some non-@sc{gnu} hosts, @code{<alloca.h>},
|
||||||
|
@code{<stddef.h>}, and @code{<stdlib.h>} are included as needed to
|
||||||
|
declare memory allocators and related types. In the same situation,
|
||||||
|
C++ parsers may include @code{<cstddef>} and @code{<cstdlib>} instead.
|
||||||
|
Other system headers may be included if you define @code{YYDEBUG}
|
||||||
|
(@pxref{Debugging, ,Debugging Your Parser}).
|
||||||
|
|
||||||
@node Stages
|
@node Stages
|
||||||
@section Stages in Using Bison
|
@section Stages in Using Bison
|
||||||
@cindex stages in using Bison
|
@cindex stages in using Bison
|
||||||
@@ -4506,9 +4515,8 @@ produce parsers that are very large. In practice, Bison is more useful
|
|||||||
as it is now.
|
as it is now.
|
||||||
|
|
||||||
When the problem arises, you can often fix it by identifying the two
|
When the problem arises, you can often fix it by identifying the two
|
||||||
parser states that are being confused (using @samp{-v}
|
parser states that are being confused, and adding something to make them
|
||||||
(@pxref{Invocation, ,Invoking Bison}) can help), and adding something to
|
look distinct. In the above example, adding one rule to
|
||||||
make them look distinct. In the above example, adding one rule to
|
|
||||||
@code{return_spec} as follows makes the problem go away:
|
@code{return_spec} as follows makes the problem go away:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
@@ -4924,8 +4932,14 @@ YYDEBUG 1} in the C declarations section of the grammar file
|
|||||||
you run Bison (@pxref{Invocation, ,Invoking Bison}). We always define @code{YYDEBUG} so that
|
you run Bison (@pxref{Invocation, ,Invoking Bison}). We always define @code{YYDEBUG} so that
|
||||||
debugging is always possible.
|
debugging is always possible.
|
||||||
|
|
||||||
The trace facility uses @code{stderr}, so you must add @w{@code{#include
|
The trace facility outputs messages with macro calls of the form
|
||||||
<stdio.h>}} to the C declarations section unless it is already there.
|
@code{YYFPRINTF (YYSTDERR, @var{format}, @var{args})} where
|
||||||
|
@var{format} and @var{args} are the usual @code{printf} format and
|
||||||
|
arguments. If you define @code{YYDEBUG} but do not define
|
||||||
|
@code{YYFPRINTF}, @code{<stdio.h>} is automatically included and the
|
||||||
|
macros are defined to @code{fprintf} and @code{stderr}. In the same
|
||||||
|
situation, C++ parsers include @code{<cstdio.h>} instead, and use
|
||||||
|
@code{std::fprintf} and @code{std::stderr}.
|
||||||
|
|
||||||
Once you have compiled the program with trace facilities, the way to
|
Once you have compiled the program with trace facilities, the way to
|
||||||
request a trace is to store a nonzero value in the variable @code{yydebug}.
|
request a trace is to store a nonzero value in the variable @code{yydebug}.
|
||||||
@@ -5004,7 +5018,7 @@ Here @var{infile} is the grammar file name, which usually ends in
|
|||||||
@samp{.y}. The parser file's name is made by replacing the @samp{.y}
|
@samp{.y}. The parser file's name is made by replacing the @samp{.y}
|
||||||
with @samp{.tab.c}. Thus, the @samp{bison foo.y} filename yields
|
with @samp{.tab.c}. Thus, the @samp{bison foo.y} filename yields
|
||||||
@file{foo.tab.c}, and the @samp{bison hack/foo.y} filename yields
|
@file{foo.tab.c}, and the @samp{bison hack/foo.y} filename yields
|
||||||
@file{hack/foo.tab.c}. It's is also possible, in case you are writting
|
@file{hack/foo.tab.c}. It's is also possible, in case you are writing
|
||||||
C++ code instead of C in your grammar file, to name it @file{foo.ypp}
|
C++ code instead of C in your grammar file, to name it @file{foo.ypp}
|
||||||
or @file{foo.y++}. Then, the output files will take an extention like
|
or @file{foo.y++}. Then, the output files will take an extention like
|
||||||
the given one as input (repectively @file{foo.tab.cpp} and @file{foo.tab.c++}).
|
the given one as input (repectively @file{foo.tab.cpp} and @file{foo.tab.c++}).
|
||||||
|
|||||||
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
@set UPDATED 26 November 2001
|
@set UPDATED 13 December 2001
|
||||||
@set UPDATED-MONTH November 2001
|
@set UPDATED-MONTH December 2001
|
||||||
@set EDITION 1.30e
|
@set EDITION 1.30g
|
||||||
@set VERSION 1.30e
|
@set VERSION 1.30g
|
||||||
|
|||||||
+18
-1
@@ -1,7 +1,24 @@
|
|||||||
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
## Copyright 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
## This program is free software; you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
|
||||||
|
## This program is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU General Public License for more details.
|
||||||
|
|
||||||
|
## You should have received a copy of the GNU General Public License
|
||||||
|
## along with this program; if not, write to the Free Software
|
||||||
|
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
## 02111-1307 USA
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = ansi2knr
|
AUTOMAKE_OPTIONS = ansi2knr
|
||||||
|
|
||||||
|
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
|
||||||
|
|
||||||
noinst_LIBRARIES = libbison.a
|
noinst_LIBRARIES = libbison.a
|
||||||
|
|
||||||
INCLUDES = -I.. -I$(srcdir) -I../intl
|
INCLUDES = -I.. -I$(srcdir) -I../intl
|
||||||
|
|||||||
+2
-1
@@ -103,6 +103,8 @@ install_sh = @install_sh@
|
|||||||
|
|
||||||
AUTOMAKE_OPTIONS = ansi2knr
|
AUTOMAKE_OPTIONS = ansi2knr
|
||||||
|
|
||||||
|
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
|
||||||
|
|
||||||
noinst_LIBRARIES = libbison.a
|
noinst_LIBRARIES = libbison.a
|
||||||
|
|
||||||
INCLUDES = -I.. -I$(srcdir) -I../intl
|
INCLUDES = -I.. -I$(srcdir) -I../intl
|
||||||
@@ -150,7 +152,6 @@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
CFLAGS = @CFLAGS@
|
|
||||||
DIST_SOURCES = $(libbison_a_SOURCES)
|
DIST_SOURCES = $(libbison_a_SOURCES)
|
||||||
DIST_COMMON = Makefile.am Makefile.in alloca.c ansi2knr.1 ansi2knr.c \
|
DIST_COMMON = Makefile.am Makefile.in alloca.c ansi2knr.1 ansi2knr.c \
|
||||||
error.c error.h malloc.c memchr.c obstack.c obstack.h realloc.c \
|
error.c error.h malloc.c memchr.c obstack.c obstack.h realloc.c \
|
||||||
|
|||||||
+23
-10
@@ -44,9 +44,15 @@
|
|||||||
#ifndef CHAR_BIT
|
#ifndef CHAR_BIT
|
||||||
# define CHAR_BIT 8
|
# define CHAR_BIT 8
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef SIZE_MAX
|
||||||
|
# define SIZE_MAX ((size_t) -1)
|
||||||
|
#endif
|
||||||
#ifndef UCHAR_MAX
|
#ifndef UCHAR_MAX
|
||||||
# define UCHAR_MAX ((unsigned char) -1)
|
# define UCHAR_MAX ((unsigned char) -1)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef UINT_MAX
|
||||||
|
# define UINT_MAX ((unsigned int) -1)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAVE_C_BACKSLASH_A
|
#if HAVE_C_BACKSLASH_A
|
||||||
# define ALERT_CHAR '\a'
|
# define ALERT_CHAR '\a'
|
||||||
@@ -539,6 +545,7 @@ quotearg_n_options (int n, char const *arg,
|
|||||||
one small component of a "memory exhausted" message in slot 0. */
|
one small component of a "memory exhausted" message in slot 0. */
|
||||||
static char slot0[256];
|
static char slot0[256];
|
||||||
static unsigned int nslots = 1;
|
static unsigned int nslots = 1;
|
||||||
|
unsigned int n0 = n;
|
||||||
struct slotvec
|
struct slotvec
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
@@ -547,20 +554,26 @@ quotearg_n_options (int n, char const *arg,
|
|||||||
static struct slotvec slotvec0 = {sizeof slot0, slot0};
|
static struct slotvec slotvec0 = {sizeof slot0, slot0};
|
||||||
static struct slotvec *slotvec = &slotvec0;
|
static struct slotvec *slotvec = &slotvec0;
|
||||||
|
|
||||||
if (nslots <= n)
|
if (n < 0)
|
||||||
|
abort ();
|
||||||
|
|
||||||
|
if (nslots <= n0)
|
||||||
{
|
{
|
||||||
int n1 = n + 1;
|
unsigned int n1 = n0 + 1;
|
||||||
size_t s = n1 * sizeof (struct slotvec);
|
size_t s = n1 * sizeof *slotvec;
|
||||||
if (! (0 < n1 && n1 == s / sizeof (struct slotvec)))
|
|
||||||
abort ();
|
if (SIZE_MAX / UINT_MAX <= sizeof *slotvec
|
||||||
|
&& n1 != s / sizeof *slotvec)
|
||||||
|
xalloc_die ();
|
||||||
|
|
||||||
if (slotvec == &slotvec0)
|
if (slotvec == &slotvec0)
|
||||||
{
|
{
|
||||||
slotvec = (struct slotvec *) xmalloc (sizeof (struct slotvec));
|
slotvec = (struct slotvec *) xmalloc (sizeof *slotvec);
|
||||||
*slotvec = slotvec0;
|
*slotvec = slotvec0;
|
||||||
}
|
}
|
||||||
slotvec = (struct slotvec *) xrealloc (slotvec, s);
|
slotvec = (struct slotvec *) xrealloc (slotvec, s);
|
||||||
memset (slotvec + nslots, 0, (n1 - nslots) * sizeof (struct slotvec));
|
memset (slotvec + nslots, 0, (n1 - nslots) * sizeof *slotvec);
|
||||||
nslots = n;
|
nslots = n1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -580,7 +593,7 @@ quotearg_n_options (int n, char const *arg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
quotearg_n (unsigned int n, char const *arg)
|
quotearg_n (int n, char const *arg)
|
||||||
{
|
{
|
||||||
return quotearg_n_options (n, arg, &default_quoting_options);
|
return quotearg_n_options (n, arg, &default_quoting_options);
|
||||||
}
|
}
|
||||||
@@ -592,7 +605,7 @@ quotearg (char const *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
quotearg_n_style (unsigned int n, enum quoting_style s, char const *arg)
|
quotearg_n_style (int n, enum quoting_style s, char const *arg)
|
||||||
{
|
{
|
||||||
struct quoting_options o;
|
struct quoting_options o;
|
||||||
o.style = s;
|
o.style = s;
|
||||||
|
|||||||
+2
-3
@@ -89,7 +89,7 @@ size_t quotearg_buffer PARAMS ((char *buffer, size_t buffersize,
|
|||||||
The returned value points to static storage that can be
|
The returned value points to static storage that can be
|
||||||
reused by the next call to this function with the same value of N.
|
reused by the next call to this function with the same value of N.
|
||||||
N must be nonnegative. */
|
N must be nonnegative. */
|
||||||
char *quotearg_n PARAMS ((unsigned int n, char const *arg));
|
char *quotearg_n PARAMS ((int n, char const *arg));
|
||||||
|
|
||||||
/* Equivalent to quotearg_n (0, ARG). */
|
/* Equivalent to quotearg_n (0, ARG). */
|
||||||
char *quotearg PARAMS ((char const *arg));
|
char *quotearg PARAMS ((char const *arg));
|
||||||
@@ -97,8 +97,7 @@ char *quotearg PARAMS ((char const *arg));
|
|||||||
/* Use style S and storage slot N to return a quoted version of the string ARG.
|
/* Use style S and storage slot N to return a quoted version of the string ARG.
|
||||||
This is like quotearg_n (N, ARG), except that it uses S with no other
|
This is like quotearg_n (N, ARG), except that it uses S with no other
|
||||||
options to specify the quoting method. */
|
options to specify the quoting method. */
|
||||||
char *quotearg_n_style PARAMS ((unsigned int n, enum quoting_style s,
|
char *quotearg_n_style PARAMS ((int n, enum quoting_style s, char const *arg));
|
||||||
char const *arg));
|
|
||||||
|
|
||||||
/* Equivalent to quotearg_n_style (0, S, ARG). */
|
/* Equivalent to quotearg_n_style (0, S, ARG). */
|
||||||
char *quotearg_style PARAMS ((enum quoting_style s, char const *arg));
|
char *quotearg_style PARAMS ((enum quoting_style s, char const *arg));
|
||||||
|
|||||||
+2
-10
@@ -1,5 +1,5 @@
|
|||||||
/* xstrdup.c -- copy a string with out of memory checking
|
/* xstrdup.c -- copy a string with out of memory checking
|
||||||
Copyright (C) 1990, 1996, 1998 Free Software Foundation, Inc.
|
Copyright (C) 1990, 1996, 1998, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -19,14 +19,6 @@
|
|||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PARAMS
|
|
||||||
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
|
||||||
# define PARAMS(Args) Args
|
|
||||||
# else
|
|
||||||
# define PARAMS(Args) ()
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if STDC_HEADERS || HAVE_STRING_H
|
#if STDC_HEADERS || HAVE_STRING_H
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
#else
|
#else
|
||||||
@@ -35,7 +27,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
char *xmalloc PARAMS ((size_t n));
|
#include "xalloc.h"
|
||||||
|
|
||||||
/* Return a newly allocated copy of STRING. */
|
/* Return a newly allocated copy of STRING. */
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ src/files.c
|
|||||||
src/getargs.c
|
src/getargs.c
|
||||||
src/lalr.c
|
src/lalr.c
|
||||||
src/lex.c
|
src/lex.c
|
||||||
src/main.c
|
|
||||||
src/output.c
|
src/output.c
|
||||||
src/print.c
|
src/print.c
|
||||||
src/print_graph.c
|
src/print_graph.c
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bison 1.25\n"
|
"Project-Id-Version: bison 1.25\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 1996-10-10 17:54 MET DST\n"
|
"PO-Revision-Date: 1996-10-10 17:54 MET DST\n"
|
||||||
"Last-Translator: Ulrich Drepper <[email protected]>\n"
|
"Last-Translator: Ulrich Drepper <[email protected]>\n"
|
||||||
"Language-Team: German <[email protected]>\n"
|
"Language-Team: German <[email protected]>\n"
|
||||||
@@ -18,7 +18,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -31,78 +31,78 @@ msgstr ""
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "fataler Fehler: %s\n"
|
msgstr "fataler Fehler: %s\n"
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr "Konflikt in Zustand %d zwischen Regel %d and Token %s wurde %s.\n"
|
msgstr "Konflikt in Zustand %d zwischen Regel %d and Token %s wurde %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "durch Reduzierung gelöst"
|
msgstr "durch Reduzierung gelöst"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "durch Schieben gelöst"
|
msgstr "durch Schieben gelöst"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "als Fehler betrachtet"
|
msgstr "als Fehler betrachtet"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] " %d Schiebe/Reduziere Konflikte"
|
msgstr[0] " %d Schiebe/Reduziere Konflikte"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr " und"
|
msgstr " und"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] " %d Reduziere/Reduziere Konflikte"
|
msgstr[0] " %d Reduziere/Reduziere Konflikte"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "Zustand %d enthält"
|
msgstr "Zustand %d enthält"
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "Konflikte: "
|
msgstr "Konflikte: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d Schiebe/Reduziere"
|
msgstr " %d Schiebe/Reduziere"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d Reduziere/Reduziere"
|
msgstr " %d Reduziere/Reduziere"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s enthält "
|
msgstr "%s enthält "
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] " %d Schiebe/Reduziere Konflikte"
|
msgstr[0] " %d Schiebe/Reduziere Konflikte"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[reduziere mit Regel %d (%s)]\n"
|
msgstr " %-4s\t[reduziere mit Regel %d (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -111,22 +111,22 @@ msgstr ""
|
|||||||
" $default\treduziere mit Regel %d (%s)\n"
|
" $default\treduziere mit Regel %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\treduziere mit Tegel %d (%s)\n"
|
msgstr " %-4s\treduziere mit Tegel %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $default\treduziere mit Regel %d (%s)\n"
|
msgstr " $default\treduziere mit Regel %d (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ msgstr "%s: keine Grammatik-Datei angegeben\n"
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: zusätzliche Argumente nach »%s« werden ignoriert\n"
|
msgstr "%s: zusätzliche Argumente nach »%s« werden ignoriert\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -280,55 +280,50 @@ msgstr ""
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "%s: die Option »%s« erfordert ein Argument\n"
|
msgstr "%s: die Option »%s« erfordert ein Argument\n"
|
||||||
|
|
||||||
#: src/main.c:134
|
#: src/output.c:951
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "interner Fehler, %s\n"
|
|
||||||
|
|
||||||
#: src/output.c:979
|
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "maximale Tabellengröße (%s) überschritten"
|
msgstr "maximale Tabellengröße (%s) überschritten"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " Typ %d ist %s\n"
|
msgstr " Typ %d ist %s\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (Regel %d)"
|
msgstr " (Regel %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $default\takzeptiere\n"
|
msgstr " $default\takzeptiere\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " KEINE AKTIONEN\n"
|
msgstr " KEINE AKTIONEN\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \tgehe zu Zustand %d über\n"
|
msgstr " $ \tgehe zu Zustand %d über\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tSchiebe und gehe zu Zustand %d über\n"
|
msgstr " %-4s\tSchiebe und gehe zu Zustand %d über\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\tFehler (nicht assoziativ)\n"
|
msgstr " %-4s\tFehler (nicht assoziativ)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\tgehe zu Zustand %d über\n"
|
msgstr " %-4s\tgehe zu Zustand %d über\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -338,28 +333,28 @@ msgstr ""
|
|||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"\n"
|
"\n"
|
||||||
"Grammatik\n"
|
"Grammatik\n"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "Regel %-4d %s ->"
|
msgstr "Regel %-4d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -367,7 +362,7 @@ msgstr ""
|
|||||||
"Terminale und die Regeln un denen sie verwendet werden\n"
|
"Terminale und die Regeln un denen sie verwendet werden\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -375,11 +370,11 @@ msgstr ""
|
|||||||
"Nicht-Terminal und die Regeln in denen sie verwendet werden\n"
|
"Nicht-Terminal und die Regeln in denen sie verwendet werden\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " auf der linken Seite:"
|
msgstr " auf der linken Seite:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " auf der rechten Seite:"
|
msgstr " auf der rechten Seite:"
|
||||||
|
|
||||||
@@ -388,7 +383,7 @@ msgstr " auf der rechten Seite:"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr " %-4s\tFehler (nicht assoziativ)\n"
|
msgstr " %-4s\tFehler (nicht assoziativ)\n"
|
||||||
@@ -397,7 +392,7 @@ msgstr " %-4s\tFehler (nicht assoziativ)\n"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr " $default\treduziere mit Regel %d (%s)\n"
|
msgstr " $default\treduziere mit Regel %d (%s)\n"
|
||||||
@@ -629,14 +624,14 @@ msgstr "das Startsymbol %s ist undefiniert"
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "das Startsymbol %s ist ein Token"
|
msgstr "das Startsymbol %s ist ein Token"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Nutzlose Nicht-Terminale:\n"
|
"Nutzlose Nicht-Terminale:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -645,7 +640,7 @@ msgstr ""
|
|||||||
"Nicht genutzte Terminale:\n"
|
"Nicht genutzte Terminale:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -654,60 +649,29 @@ msgstr ""
|
|||||||
"Ungenutzte Regeln:\n"
|
"Ungenutzte Regeln:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
#, fuzzy, c-format
|
||||||
"Variables\n"
|
msgid "%d rule never reduced\n"
|
||||||
"---------\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
"\n"
|
msgstr[0] "%d wurde niemals reduziert\n"
|
||||||
msgstr ""
|
|
||||||
"Variablen\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
#: src/reduce.c:511
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
#, fuzzy, c-format
|
||||||
msgstr "Wert Sprec Sassoc Tag\n"
|
msgid "%d useless nonterminal"
|
||||||
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d ungenutzte Nicht-Terminal"
|
||||||
|
|
||||||
#: src/reduce.c:456
|
#: src/reduce.c:517
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Regeln\n"
|
|
||||||
"------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"interpretierete Regeln\n"
|
|
||||||
"----------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
|
||||||
msgid "%d rules never reduced\n"
|
|
||||||
msgstr "%d wurde niemals reduziert\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:497
|
|
||||||
#, c-format
|
|
||||||
msgid "%d useless nonterminal%s"
|
|
||||||
msgstr "%d ungenutzte Nicht-Terminal"
|
|
||||||
|
|
||||||
#: src/reduce.c:502
|
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " und "
|
msgstr " und "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d ungenutzte Regel"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d ungenutzte Regel"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "es lassen sich keine Sätze vom Startsymbol %s ableiten"
|
msgstr "es lassen sich keine Sätze vom Startsymbol %s ableiten"
|
||||||
@@ -792,11 +756,11 @@ msgstr "%s: Hauptspeicher ersch
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -843,6 +807,9 @@ msgstr ""
|
|||||||
#~ msgid "limit of %d exceeded, too many %s"
|
#~ msgid "limit of %d exceeded, too many %s"
|
||||||
#~ msgstr "Grenze von %d erreicht, zu viele %s"
|
#~ msgstr "Grenze von %d erreicht, zu viele %s"
|
||||||
|
|
||||||
|
#~ msgid "internal error, %s\n"
|
||||||
|
#~ msgstr "interner Fehler, %s\n"
|
||||||
|
|
||||||
#~ msgid "Entering set_nullable"
|
#~ msgid "Entering set_nullable"
|
||||||
#~ msgstr "Führe »set_nullable« aus"
|
#~ msgstr "Führe »set_nullable« aus"
|
||||||
|
|
||||||
@@ -878,3 +845,33 @@ msgstr ""
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Reduzierung von %s definiert %d Terminal, %d Nicht-Terminal und %d "
|
#~ "Reduzierung von %s definiert %d Terminal, %d Nicht-Terminal und %d "
|
||||||
#~ "Produktionen.\n"
|
#~ "Produktionen.\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Variablen\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||||
|
#~ msgstr "Wert Sprec Sassoc Tag\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Regeln\n"
|
||||||
|
#~ "------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules interpreted\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "interpretierete Regeln\n"
|
||||||
|
#~ "----------------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: GNU bison 1.25\n"
|
"Project-Id-Version: GNU bison 1.25\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 1998-09-21 10:19+0200\n"
|
"PO-Revision-Date: 1998-09-21 10:19+0200\n"
|
||||||
"Last-Translator: Nicolás García-Pedrajas <[email protected]>\n"
|
"Last-Translator: Nicolás García-Pedrajas <[email protected]>\n"
|
||||||
"Language-Team: Spanish <[email protected]>\n"
|
"Language-Team: Spanish <[email protected]>\n"
|
||||||
@@ -43,7 +43,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -63,50 +63,50 @@ msgstr ""
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "error grave: %s\n"
|
msgstr "error grave: %s\n"
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"El conflicto en el estado %s entre la regla %d y el terminal %s se resuelve "
|
"El conflicto en el estado %s entre la regla %d y el terminal %s se resuelve "
|
||||||
"como %s.\n"
|
"como %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "reduce"
|
msgstr "reduce"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "desplaza"
|
msgstr "desplaza"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "un error"
|
msgstr "un error"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] " %d conflictos desplazamiento/reducción"
|
msgstr[0] " %d conflictos desplazamiento/reducción"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr " y"
|
msgstr " y"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] " %d conflictos reducción/reducción"
|
msgstr[0] " %d conflictos reducción/reducción"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "El estado %d contiene"
|
msgstr "El estado %d contiene"
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "conflictos: "
|
msgstr "conflictos: "
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ msgstr "conflictos: "
|
|||||||
# ok
|
# ok
|
||||||
# ngp
|
# ngp
|
||||||
#
|
#
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d desplazamiento(s)/reducción(ones)"
|
msgstr " %d desplazamiento(s)/reducción(ones)"
|
||||||
@@ -139,28 +139,28 @@ msgstr " %d desplazamiento(s)/reducci
|
|||||||
#
|
#
|
||||||
# ok
|
# ok
|
||||||
# ngp
|
# ngp
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d reducción(ones)/reducción(ones)"
|
msgstr " %d reducción(ones)/reducción(ones)"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s contiene "
|
msgstr "%s contiene "
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] " %d conflictos desplazamiento/reducción"
|
msgstr[0] " %d conflictos desplazamiento/reducción"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[reduce usando la regla %d (%s)]\n"
|
msgstr " %-4s\t[reduce usando la regla %d (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -169,22 +169,22 @@ msgstr ""
|
|||||||
" $default\treduce usando la regla %d (%s)\n"
|
" $default\treduce usando la regla %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\treduce usando la regla %d (%s)\n"
|
msgstr " %-4s\treduce usando la regla %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $default\treduce usando la regla %d (%s)\n"
|
msgstr " $default\treduce usando la regla %d (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ msgstr "%s: no se ha especificado ning
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: los argumentos extra después de '%s' no se tendrán en cuenta\n"
|
msgstr "%s: los argumentos extra después de '%s' no se tendrán en cuenta\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -343,60 +343,55 @@ msgstr ""
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "%s: la opción `%s' requiere un argumento\n"
|
msgstr "%s: la opción `%s' requiere un argumento\n"
|
||||||
|
|
||||||
#: src/main.c:134
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "error interno, %s\n"
|
|
||||||
|
|
||||||
# Únicamente cambio la posición del adjetivo `máximo'. En vez de después
|
# Únicamente cambio la posición del adjetivo `máximo'. En vez de después
|
||||||
# de `tabla', después de `tamaño' - cll
|
# de `tabla', después de `tamaño' - cll
|
||||||
# en inglés era así, pero quizás en español sea mejor como dices
|
# en inglés era así, pero quizás en español sea mejor como dices
|
||||||
# ngp
|
# ngp
|
||||||
#
|
#
|
||||||
#: src/output.c:979
|
#: src/output.c:951
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "excedido el tamaño máximo de la tabla (%s)"
|
msgstr "excedido el tamaño máximo de la tabla (%s)"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " el tipo %d es %s\n"
|
msgstr " el tipo %d es %s\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (regla %d)"
|
msgstr " (regla %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $default\taceptar\n"
|
msgstr " $default\taceptar\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " SIN ACCIONES\n"
|
msgstr " SIN ACCIONES\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \tir al estado %d\n"
|
msgstr " $ \tir al estado %d\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tdesplazar e ir al estado %d\n"
|
msgstr " %-4s\tdesplazar e ir al estado %d\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\terror (no asociativo)\n"
|
msgstr " %-4s\terror (no asociativo)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\tir al estado %d\n"
|
msgstr " %-4s\tir al estado %d\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -406,28 +401,28 @@ msgstr ""
|
|||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"\n"
|
"\n"
|
||||||
"Gramática\n"
|
"Gramática\n"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "regla %-4d %s ->"
|
msgstr "regla %-4d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -435,18 +430,18 @@ msgstr ""
|
|||||||
"Terminales con las reglas donde aparecen\n"
|
"Terminales con las reglas donde aparecen\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"\n"
|
"\n"
|
||||||
"No terminales con las reglas donde aparecen\n"
|
"No terminales con las reglas donde aparecen\n"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " en la izquierda:"
|
msgstr " en la izquierda:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " en la derecha:"
|
msgstr " en la derecha:"
|
||||||
|
|
||||||
@@ -455,7 +450,7 @@ msgstr " en la derecha:"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr " %-4s\terror (no asociativo)\n"
|
msgstr " %-4s\terror (no asociativo)\n"
|
||||||
@@ -464,7 +459,7 @@ msgstr " %-4s\terror (no asociativo)\n"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr " $default\treduce usando la regla %d (%s)\n"
|
msgstr " $default\treduce usando la regla %d (%s)\n"
|
||||||
@@ -718,14 +713,14 @@ msgstr "el s
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "el símbolo de inicio (axioma) %s es un terminal"
|
msgstr "el símbolo de inicio (axioma) %s es un terminal"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"No terminales sin uso:\n"
|
"No terminales sin uso:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -734,7 +729,7 @@ msgstr ""
|
|||||||
"Terminales que no se usan:\n"
|
"Terminales que no se usan:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -743,60 +738,29 @@ msgstr ""
|
|||||||
"Reglas sin uso:\n"
|
"Reglas sin uso:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
#, fuzzy, c-format
|
||||||
"Variables\n"
|
msgid "%d rule never reduced\n"
|
||||||
"---------\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
"\n"
|
msgstr[0] "%d reglas que nunca se han reducido\n"
|
||||||
msgstr ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
#: src/reduce.c:511
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
#, fuzzy, c-format
|
||||||
msgstr "Valor Sprec Sasoc Tag\n"
|
msgid "%d useless nonterminal"
|
||||||
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d no terminales %s sin uso"
|
||||||
|
|
||||||
#: src/reduce.c:456
|
#: src/reduce.c:517
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Reglas\n"
|
|
||||||
"------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Reglas interpretadas\n"
|
|
||||||
"--------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
|
||||||
msgid "%d rules never reduced\n"
|
|
||||||
msgstr "%d reglas que nunca se han reducido\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:497
|
|
||||||
#, c-format
|
|
||||||
msgid "%d useless nonterminal%s"
|
|
||||||
msgstr "%d no terminales %s sin uso"
|
|
||||||
|
|
||||||
#: src/reduce.c:502
|
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " y "
|
msgstr " y "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d regla%s sin uso"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d regla%s sin uso"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "El símbolo de inicio (axioma) %s no deriva ninguna sentencia"
|
msgstr "El símbolo de inicio (axioma) %s no deriva ninguna sentencia"
|
||||||
@@ -905,11 +869,11 @@ msgstr "%s: memoria agotada\n"
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1030,6 +994,9 @@ msgstr ""
|
|||||||
#~ msgid "limit of %d exceeded, too many %s"
|
#~ msgid "limit of %d exceeded, too many %s"
|
||||||
#~ msgstr "excedido el límite de %d, demasiados %s"
|
#~ msgstr "excedido el límite de %d, demasiados %s"
|
||||||
|
|
||||||
|
#~ msgid "internal error, %s\n"
|
||||||
|
#~ msgstr "error interno, %s\n"
|
||||||
|
|
||||||
#~ msgid "Entering set_nullable"
|
#~ msgid "Entering set_nullable"
|
||||||
#~ msgstr "Entrando set_nullable"
|
#~ msgstr "Entrando set_nullable"
|
||||||
|
|
||||||
@@ -1086,3 +1053,33 @@ msgstr ""
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "la reducción de %s define %d terminal%s, %d no terminal%s, y %d produccion"
|
#~ "la reducción de %s define %d terminal%s, %d no terminal%s, y %d produccion"
|
||||||
#~ "%s.\n"
|
#~ "%s.\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||||
|
#~ msgstr "Valor Sprec Sasoc Tag\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Reglas\n"
|
||||||
|
#~ "------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules interpreted\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Reglas interpretadas\n"
|
||||||
|
#~ "--------------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bison 1.30d\n"
|
"Project-Id-Version: bison 1.30f\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 2001-11-21 17:33+0200\n"
|
"PO-Revision-Date: 2001-12-05 20:35+0200\n"
|
||||||
"Last-Translator: Toomas Soome <[email protected]>\n"
|
"Last-Translator: Toomas Soome <[email protected]>\n"
|
||||||
"Language-Team: Estonian <[email protected]>\n"
|
"Language-Team: Estonian <[email protected]>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -18,7 +18,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr "liiga palju olekuid (maks %d)"
|
msgstr "liiga palju olekuid (maks %d)"
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr "Tundmatu süsteemi viga"
|
msgstr "Tundmatu süsteemi viga"
|
||||||
|
|
||||||
@@ -30,80 +30,80 @@ msgstr "hoiatus: "
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "fataalne viga: "
|
msgstr "fataalne viga: "
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr "Konflikt olekus %d reegli %d ja märgi %s vahel lahendatud, kui %s.\n"
|
msgstr "Konflikt olekus %d reegli %d ja märgi %s vahel lahendatud, kui %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "redutseerimine"
|
msgstr "redutseerimine"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "nihutamine"
|
msgstr "nihutamine"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "viga"
|
msgstr "viga"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] "%d nihutamine/redutseerimine konflikt"
|
msgstr[0] "%d nihutamine/redutseerimine konflikt"
|
||||||
msgstr[1] "%d nihutamine/redutseerimine konflikti"
|
msgstr[1] "%d nihutamine/redutseerimine konflikti"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr "ja"
|
msgstr "ja"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] "%d redutseerimine/redutseerimine konflikt"
|
msgstr[0] "%d redutseerimine/redutseerimine konflikt"
|
||||||
msgstr[1] "%d redutseerimine/redutseerimine konflikti"
|
msgstr[1] "%d redutseerimine/redutseerimine konflikti"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "Olek %d sisaldab "
|
msgstr "Olek %d sisaldab "
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "konfliktid: "
|
msgstr "konfliktid: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d nihutamine/redutseerimine"
|
msgstr " %d nihutamine/redutseerimine"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d redutseerimine/redutseerimine"
|
msgstr " %d redutseerimine/redutseerimine"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s sisaldab "
|
msgstr "%s sisaldab "
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] "eeldasime %d nihutamine/redutseerimine konflikti\n"
|
msgstr[0] "eeldasime %d nihutamine/redutseerimine konflikti\n"
|
||||||
msgstr[1] "eeldasime %d nihutamine/redutseerimine konflikti\n"
|
msgstr[1] "eeldasime %d nihutamine/redutseerimine konflikti\n"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[redutseerin, kasutades reeglit %d (%s)]\n"
|
msgstr " %-4s\t[redutseerin, kasutades reeglit %d (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -112,22 +112,22 @@ msgstr ""
|
|||||||
" $default\tredutseerin kasutades reeglit %d (%s)\n"
|
" $default\tredutseerin kasutades reeglit %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\tredutseerin kasutades reeglit %d (%s)\n"
|
msgstr " %-4s\tredutseerin kasutades reeglit %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $default\tredutseerin kasutades reeglit %d (%s)\n"
|
msgstr " $default\tredutseerin kasutades reeglit %d (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr "faili `%s' ei saa avada"
|
msgstr "faili `%s' ei saa avada"
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr "faili ei õnnestu sulgeda"
|
msgstr "faili ei õnnestu sulgeda"
|
||||||
|
|
||||||
@@ -245,7 +245,7 @@ msgstr "%s: puudub grammatikafail\n"
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: ignoreerin lisaargumente peale `%s'\n"
|
msgstr "%s: ignoreerin lisaargumente peale `%s'\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr "liiga palju gotosid (maks %d)"
|
msgstr "liiga palju gotosid (maks %d)"
|
||||||
@@ -303,91 +303,86 @@ msgstr "`%s' ei toeta argumente: %s"
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "võti `%s' nõuab argumenti"
|
msgstr "võti `%s' nõuab argumenti"
|
||||||
|
|
||||||
#: src/main.c:134
|
#: src/output.c:951
|
||||||
#, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "%s: sisemine viga: %s\n"
|
|
||||||
|
|
||||||
#: src/output.c:979
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "ületati maksimaalset tabelisuurust (%d)"
|
msgstr "ületati maksimaalset tabelisuurust (%d)"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " tüüp %d on %s\n"
|
msgstr " tüüp %d on %s\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (reegel %d)"
|
msgstr " (reegel %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $default\taktsepteerin\n"
|
msgstr " $default\taktsepteerin\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " TEGEVUSI POLE\n"
|
msgstr " TEGEVUSI POLE\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \tliigu olekule %d\n"
|
msgstr " $ \tliigu olekule %d\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tnihuta ja liigu olekule %d\n"
|
msgstr " %-4s\tnihuta ja liigu olekule %d\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\tviga (mitteassotsiatiivne)\n"
|
msgstr " %-4s\tviga (mitteassotsiatiivne)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\tliigu olekule %d\n"
|
msgstr " %-4s\tliigu olekule %d\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr "olek %d"
|
msgstr "olek %d"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr "Grammatika"
|
msgstr "Grammatika"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr "Number, rida, reegel"
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "reegel %-4d %s ->"
|
msgstr " %3d %3d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr "tühi"
|
msgstr "tühi"
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr "Terminalid, koos reeglitega, kus nad ilmuvad"
|
msgstr "Terminalid, koos reeglitega, kus nad ilmuvad"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr "Mitteterminalid, koos reeglitega, kus nad ilmuvad"
|
msgstr "Mitteterminalid, koos reeglitega, kus nad ilmuvad"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " vasakul:"
|
msgstr " vasakul:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " paremal:"
|
msgstr " paremal:"
|
||||||
|
|
||||||
@@ -396,7 +391,7 @@ msgstr " paremal:"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr "%-4s\tviga (mitteassotsiatiivne)"
|
msgstr "%-4s\tviga (mitteassotsiatiivne)"
|
||||||
@@ -405,7 +400,7 @@ msgstr "%-4s\tviga (mitteassotsiatiivne)"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr "$default\tredutseerin kasutades reeglit %d (%s)"
|
msgstr "$default\tredutseerin kasutades reeglit %d (%s)"
|
||||||
@@ -634,72 +629,44 @@ msgstr "stardis
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "stardisümbol %s on märk"
|
msgstr "stardisümbol %s on märk"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr "Kasutamata mitteterminalid:"
|
msgstr "Kasutamata mitteterminalid:"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr "Terminalid, mida ei kasutatud:"
|
msgstr "Terminalid, mida ei kasutatud:"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr "Kasutamata reeglid:"
|
msgstr "Kasutamata reeglid:"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Muutujad\n"
|
|
||||||
"--------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
|
||||||
msgstr "Value Sprec Sassoc Tag\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:456
|
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Reeglid\n"
|
|
||||||
"-------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Interpreteeritud reeglid\n"
|
|
||||||
"------------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d rules never reduced\n"
|
msgid "%d rule never reduced\n"
|
||||||
msgstr "%d reeglit ei redutseeritud\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
|
msgstr[0] "%d reegel ei redutseeru\n"
|
||||||
|
msgstr[1] "%d reeglit ei redutseeru\n"
|
||||||
|
|
||||||
#: src/reduce.c:497
|
#: src/reduce.c:511
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless nonterminal%s"
|
msgid "%d useless nonterminal"
|
||||||
msgstr "%d kasutamata mitteterminali%s"
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d kasutamata mitteterminal"
|
||||||
|
msgstr[1] "%d kasutamata mitteterminali"
|
||||||
|
|
||||||
#: src/reduce.c:502
|
#: src/reduce.c:517
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " ja "
|
msgstr " ja "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d kasutamata reeglit%s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d kasutamata reegel"
|
||||||
|
msgstr[1] "%d kasutamata reeglit"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "Stardisümbolist %s ei tuletata ühtegi lauset"
|
msgstr "Stardisümbolist %s ei tuletata ühtegi lauset"
|
||||||
@@ -783,10 +750,10 @@ msgstr "m
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr "`"
|
msgstr "`"
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr "'"
|
msgstr "'"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: GNU bison 1.30d\n"
|
"Project-Id-Version: GNU bison 1.30f\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 2001-11-21 08:00-0500\n"
|
"PO-Revision-Date: 2001-12-05 13:00-0500\n"
|
||||||
"Last-Translator: Michel Robitaille <[email protected]>\n"
|
"Last-Translator: Michel Robitaille <[email protected]>\n"
|
||||||
"Language-Team: French <[email protected]>\n"
|
"Language-Team: French <[email protected]>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -19,7 +19,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr "nombre trop grand d'états (max %d)"
|
msgstr "nombre trop grand d'états (max %d)"
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr "Erreur système inconnue"
|
msgstr "Erreur système inconnue"
|
||||||
|
|
||||||
@@ -31,78 +31,78 @@ msgstr "AVERTISSEMENT: "
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "erreur fatale: "
|
msgstr "erreur fatale: "
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Conflit à l'état %d entre la règle %d et le terminal %s résolu par %s.\n"
|
"Conflit à l'état %d entre la règle %d et le terminal %s résolu par %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "réduction"
|
msgstr "réduction"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "décalage"
|
msgstr "décalage"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "une erreur"
|
msgstr "une erreur"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] "%d conflits par décalage/réduction"
|
msgstr[0] "%d conflits par décalage/réduction"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr "et"
|
msgstr "et"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] "%d conflits par réduction/réduction"
|
msgstr[0] "%d conflits par réduction/réduction"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "L'état %d contient "
|
msgstr "L'état %d contient "
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "conflits: "
|
msgstr "conflits: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d décalage/réduction"
|
msgstr " %d décalage/réduction"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d réduction/réduction"
|
msgstr " %d réduction/réduction"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s contient "
|
msgstr "%s contient "
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] "attendu %d conflits décalage/réduction\n"
|
msgstr[0] "attendu %d conflits décalage/réduction\n"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[réduction par la règle %d (%s)\n"
|
msgstr " %-4s\t[réduction par la règle %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -111,22 +111,22 @@ msgstr ""
|
|||||||
" $défaut\tréduction par la règle %d (%s)\n"
|
" $défaut\tréduction par la règle %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\tréduction par la règle %d (%s)\n"
|
msgstr " %-4s\tréduction par la règle %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $défaut\tréduction par la règle %d (%s)\n"
|
msgstr " $défaut\tréduction par la règle %d (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr "ne peut ouvrir le fichier `%s'"
|
msgstr "ne peut ouvrir le fichier `%s'"
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr "ne peut fermer le fichier"
|
msgstr "ne peut fermer le fichier"
|
||||||
|
|
||||||
@@ -248,7 +248,7 @@ msgstr "%s: grammaire manquante\n"
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: arguments supplémentaires ignorés après `%s'\n"
|
msgstr "%s: arguments supplémentaires ignorés après `%s'\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr "nombre trop grand de \"goto\" (Max %d)"
|
msgstr "nombre trop grand de \"goto\" (Max %d)"
|
||||||
@@ -306,91 +306,86 @@ msgstr "`%s' ne supporte aucun argument: %s"
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "`%s': requiert un argument"
|
msgstr "`%s': requiert un argument"
|
||||||
|
|
||||||
#: src/main.c:134
|
#: src/output.c:951
|
||||||
#, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "%s: erreur interne: %s\n"
|
|
||||||
|
|
||||||
#: src/output.c:979
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "taille maximale de la table (%d) dépassée"
|
msgstr "taille maximale de la table (%d) dépassée"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " le type %d est %s\n"
|
msgstr " le type %d est %s\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (règle %d)"
|
msgstr " (règle %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $défaut\taccepter\n"
|
msgstr " $défaut\taccepter\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " PAS D'ACTION\n"
|
msgstr " PAS D'ACTION\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \taller à l'état %d\n"
|
msgstr " $ \taller à l'état %d\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tdécalage et aller à l'état %d\n"
|
msgstr " %-4s\tdécalage et aller à l'état %d\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\terreur (non-associatif)\n"
|
msgstr " %-4s\terreur (non-associatif)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\taller à l'état %d\n"
|
msgstr " %-4s\taller à l'état %d\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr "état %d"
|
msgstr "état %d"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr "Grammaire"
|
msgstr "Grammaire"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr "Nombre, ligne, règle"
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "règle %-4d %s ->"
|
msgstr " %3d %3d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr "vide"
|
msgstr "vide"
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr "Terminaux, suivis des règles où ils apparaissent"
|
msgstr "Terminaux, suivis des règles où ils apparaissent"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr "Non-terminaux, suivis des règles où ils apparaissent"
|
msgstr "Non-terminaux, suivis des règles où ils apparaissent"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " à gauche:"
|
msgstr " à gauche:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " à droite:"
|
msgstr " à droite:"
|
||||||
|
|
||||||
@@ -399,7 +394,7 @@ msgstr "
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr "%-4s\terreur (non-associatif)"
|
msgstr "%-4s\terreur (non-associatif)"
|
||||||
@@ -408,7 +403,7 @@ msgstr "%-4s\terreur (non-associatif)"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr "$défaut\tréduction par la règle %d (%s)"
|
msgstr "$défaut\tréduction par la règle %d (%s)"
|
||||||
@@ -638,72 +633,44 @@ msgstr "le symbole de d
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "le symbole de départ %s est un terminal"
|
msgstr "le symbole de départ %s est un terminal"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr "Non-terminaux inutiles:"
|
msgstr "Non-terminaux inutiles:"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr "Terminaux non utilisés:"
|
msgstr "Terminaux non utilisés:"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr "Règles inutiles:"
|
msgstr "Règles inutiles:"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
|
||||||
msgstr "Valeur Spréc Sassoc Tag\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:456
|
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Règles\n"
|
|
||||||
"------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Règles interprétées\n"
|
|
||||||
"-------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d rules never reduced\n"
|
msgid "%d rule never reduced\n"
|
||||||
msgstr "%d règles jamais réduites\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
|
msgstr[0] "%d règle qui n'a jamais été réduite\n"
|
||||||
|
msgstr[1] "%d règles qui n'ont jamais été réduites\n"
|
||||||
|
|
||||||
#: src/reduce.c:497
|
#: src/reduce.c:511
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless nonterminal%s"
|
msgid "%d useless nonterminal"
|
||||||
msgstr "%d catégories non productives%s"
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d nonterminal inutilisable"
|
||||||
|
msgstr[1] "%d nonterminals inutilisables"
|
||||||
|
|
||||||
#: src/reduce.c:502
|
#: src/reduce.c:517
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " et "
|
msgstr " et "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d règle(s) non productive(s)%s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d règle inutilisable"
|
||||||
|
msgstr[1] "%d règles inutilisables"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "Aucune phrase ne peut être dérivée du symbole de départ %s"
|
msgstr "Aucune phrase ne peut être dérivée du symbole de départ %s"
|
||||||
@@ -787,14 +754,47 @@ msgstr "m
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr "`"
|
msgstr "`"
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr "'"
|
msgstr "'"
|
||||||
|
|
||||||
|
#~ msgid "%s: internal error: %s\n"
|
||||||
|
#~ msgstr "%s: erreur interne: %s\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||||
|
#~ msgstr "Valeur Spréc Sassoc Tag\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Règles\n"
|
||||||
|
#~ "------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules interpreted\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Règles interprétées\n"
|
||||||
|
#~ "-------------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
#~ msgid "DERIVES"
|
#~ msgid "DERIVES"
|
||||||
#~ msgstr "DÉRIVES"
|
#~ msgstr "DÉRIVES"
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Japanese message for GNU bison 1.28
|
# Japanese message for GNU bison 1.30f
|
||||||
# Copyright (C) 1999 Free Software Foundation, Inc.
|
# Copyright (C) 2001 Free Software Foundation, Inc.
|
||||||
# Daisuke Yamashita <[email protected]>, 1999.
|
# Daisuke Yamashita <[email protected]>, 2001.
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: GNU bison 1.28\n"
|
"Project-Id-Version: GNU bison 1.30f\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 1999-09-28 21:10+0900\n"
|
"PO-Revision-Date: 2001-12-10 15:59+0900\n"
|
||||||
"Last-Translator: Daisuke Yamashita <[email protected]>\n"
|
"Last-Translator: Daisuke Yamashita <[email protected]>\n"
|
||||||
"Language-Team: Japanese <[email protected]>\n"
|
"Language-Team: Japanese <[email protected]>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -14,95 +14,93 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: src/LR0.c:189
|
#: src/LR0.c:189
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr "%s の数が多すぎます (最大 %d)"
|
msgstr "状態が多すぎます (最大 %d)"
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr ""
|
msgstr "不明なシステムエラー"
|
||||||
|
|
||||||
#: src/complain.c:150
|
#: src/complain.c:150
|
||||||
msgid "warning: "
|
msgid "warning: "
|
||||||
msgstr ""
|
msgstr "警告: "
|
||||||
|
|
||||||
#: src/complain.c:238
|
#: src/complain.c:238
|
||||||
#, fuzzy
|
|
||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "%s: 致命的エラー: "
|
msgstr "致命的エラー: "
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr "状態 %d の規則 %d とトークン %s の競合を%sとして解決。\n"
|
msgstr "状態 %d の規則 %d とトークン %s の競合を%sとして解決。\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "還元"
|
msgstr "還元"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "シフト"
|
msgstr "シフト"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "エラー"
|
msgstr "エラー"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] " %d シフト/還元衝突"
|
msgstr[0] "%d シフト/還元衝突"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
#, fuzzy
|
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr " および"
|
msgstr "および"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] " %d 還元/還元衝突"
|
msgstr[0] "%d 還元/還元衝突"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "状態 %d が含むのは"
|
msgstr "状態 %d が含むのは "
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "衝突: "
|
msgstr "衝突: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d シフト/還元"
|
msgstr " %d シフト/還元"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d 還元/還元"
|
msgstr " %d 還元/還元"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s には"
|
msgstr "%s の中身は"
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] " %d シフト/還元衝突"
|
msgstr[0] "本来 %d 個のシフト/還元衝突であるはずです\n"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[規則 %d を利用して還元 (%s)]\n"
|
msgstr " %-4s\t[規則 %d を利用して還元 (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -111,41 +109,43 @@ msgstr ""
|
|||||||
" $default\t規則 %d を利用して還元 (%s)\n"
|
" $default\t規則 %d を利用して還元 (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\t規則 %d を利用して還元 (%s)\n"
|
msgstr " %-4s\t規則 %d を利用して還元 (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $default\t規則 %d を利用して還元 (%s)\n"
|
msgstr " $default\t規則 %d を利用して還元 (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr ""
|
msgstr "ファイル `%s' を開けません"
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr ""
|
msgstr "ファイルを閉じることができません"
|
||||||
|
|
||||||
#. Some efforts were made to ease the translators' task, please
|
#. Some efforts were made to ease the translators' task, please
|
||||||
#. continue.
|
#. continue.
|
||||||
#: src/getargs.c:84
|
#: src/getargs.c:84
|
||||||
msgid "GNU bison generates parsers for LALR(1) grammars.\n"
|
msgid "GNU bison generates parsers for LALR(1) grammars.\n"
|
||||||
msgstr ""
|
msgstr "GNU bison は LALR(1) 文法の構文解析器を生成します。\n"
|
||||||
|
|
||||||
#: src/getargs.c:88
|
#: src/getargs.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Usage: %s [OPTION]... FILE\n"
|
msgid "Usage: %s [OPTION]... FILE\n"
|
||||||
msgstr ""
|
msgstr "使い方: %s [オプション]... ファイル\n"
|
||||||
|
|
||||||
#: src/getargs.c:92
|
#: src/getargs.c:92
|
||||||
msgid ""
|
msgid ""
|
||||||
"If a long option shows an argument as mandatory, then it is mandatory\n"
|
"If a long option shows an argument as mandatory, then it is mandatory\n"
|
||||||
"for the equivalent short option also. Similarly for optional arguments.\n"
|
"for the equivalent short option also. Similarly for optional arguments.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"ロングオプションで必須の引数が示されていれば、同じ意味のショートオプション\n"
|
||||||
|
"でも同様に必須の引数となります。必須でない選択的引数でも同様です。\n"
|
||||||
|
|
||||||
#: src/getargs.c:98
|
#: src/getargs.c:98
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -154,6 +154,10 @@ msgid ""
|
|||||||
" -V, --version output version information and exit\n"
|
" -V, --version output version information and exit\n"
|
||||||
" -y, --yacc emulate POSIX yacc\n"
|
" -y, --yacc emulate POSIX yacc\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"操作モード:\n"
|
||||||
|
" -h, --help この使い方を表示して終了する\n"
|
||||||
|
" -V, --version バージョン情報を表示して終了する\n"
|
||||||
|
" -y, --yacc POSIX yacc をエミュレイトする\n"
|
||||||
|
|
||||||
#: src/getargs.c:105
|
#: src/getargs.c:105
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -166,6 +170,14 @@ msgid ""
|
|||||||
" -n, --no-parser generate the tables only\n"
|
" -n, --no-parser generate the tables only\n"
|
||||||
" -k, --token-table include a table of token names\n"
|
" -k, --token-table include a table of token names\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"構文解析器:\n"
|
||||||
|
" -S, --skeleton=FILE 利用するスケルトンを指定する\n"
|
||||||
|
" -t, --debug 構文解析のデバッグ用の手段\n"
|
||||||
|
" --locations 計算結果位置を有効にする\n"
|
||||||
|
" -p, --name-prefix=PREFIX PREFIX を外部シンボルとして先頭に挿入する\n"
|
||||||
|
" -l, --no-lines `#line' ディレクティブを生成しない\n"
|
||||||
|
" -n, --no-parser テーブルのみを生成する\n"
|
||||||
|
" -k, --token-table トークン名のテーブルを含める\n"
|
||||||
|
|
||||||
#: src/getargs.c:117
|
#: src/getargs.c:117
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -177,38 +189,50 @@ msgid ""
|
|||||||
" -g, --graph also produce a VCG description of the "
|
" -g, --graph also produce a VCG description of the "
|
||||||
"automaton\n"
|
"automaton\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"出力:\n"
|
||||||
|
" -d, --defines ヘッダファイルも作成する\n"
|
||||||
|
" -v, --verbose オートマトンの解説も作成する\n"
|
||||||
|
" -b, --file-prefix=PREFIX 出力ファイルの PREFIX(接頭辞) を指定する\n"
|
||||||
|
" -o, --output=FILE 出力先を FILE とする\n"
|
||||||
|
" -g, --graph オートマトンの VCG 記述子も作成する\n"
|
||||||
|
|
||||||
#: src/getargs.c:127
|
#: src/getargs.c:127
|
||||||
msgid "Report bugs to <[email protected]>.\n"
|
msgid "Report bugs to <[email protected]>.\n"
|
||||||
msgstr ""
|
msgstr "バグレポートは <[email protected]> まで。\n"
|
||||||
|
|
||||||
#. Some efforts were made to ease the translators' task, please
|
#. Some efforts were made to ease the translators' task, please
|
||||||
#. continue.
|
#. continue.
|
||||||
#: src/getargs.c:141
|
#: src/getargs.c:141
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "bison (GNU Bison) %s"
|
msgid "bison (GNU Bison) %s"
|
||||||
msgstr ""
|
msgstr "bison (GNU Bison) %s"
|
||||||
|
|
||||||
#: src/getargs.c:146
|
#: src/getargs.c:146
|
||||||
msgid ""
|
msgid ""
|
||||||
"Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.\n"
|
"Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.\n"
|
||||||
|
|
||||||
#: src/getargs.c:150
|
#: src/getargs.c:150
|
||||||
msgid ""
|
msgid ""
|
||||||
"This is free software; see the source for copying conditions. There is NO\n"
|
"This is free software; see the source for copying conditions. There is NO\n"
|
||||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"This is free software; see the source for copying conditions. There is NO\n"
|
||||||
|
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||||
|
"[参考訳 -- 法的効力は英文が適用されます]\n"
|
||||||
|
"これはフリーソフトウェアです -- 複製についての条件はソースを見ましょう。\n"
|
||||||
|
"一切の保証はありません -- 商業性や目的適合性についての保証すらありません。\n"
|
||||||
|
|
||||||
#: src/getargs.c:215 src/lex.c:694
|
#: src/getargs.c:215 src/lex.c:694
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "`%s' is no longer supported"
|
msgid "`%s' is no longer supported"
|
||||||
msgstr ""
|
msgstr "`%s' は最早サポートされません"
|
||||||
|
|
||||||
#: src/getargs.c:239
|
#: src/getargs.c:239
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Try `%s --help' for more information.\n"
|
msgid "Try `%s --help' for more information.\n"
|
||||||
msgstr ""
|
msgstr "`%s --help' で詳細情報を参照してください\n"
|
||||||
|
|
||||||
#: src/getargs.c:246
|
#: src/getargs.c:246
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -216,14 +240,14 @@ msgid "%s: no grammar file given\n"
|
|||||||
msgstr "%s: 文法ファイルが指定されていません\n"
|
msgstr "%s: 文法ファイルが指定されていません\n"
|
||||||
|
|
||||||
#: src/getargs.c:250
|
#: src/getargs.c:250
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: '%s' より後ろの余分な引数は無視されました\n"
|
msgstr "%s: `%s' の後ろの余分な引数は無視されました\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr "%s の数が多すぎます (最大 %d)"
|
msgstr "goto の数が多すぎます (最大 %d)"
|
||||||
|
|
||||||
#: src/lex.c:76
|
#: src/lex.c:76
|
||||||
msgid "unexpected `/' found and ignored"
|
msgid "unexpected `/' found and ignored"
|
||||||
@@ -234,7 +258,6 @@ msgid "unterminated comment"
|
|||||||
msgstr "閉じていないコメントです"
|
msgstr "閉じていないコメントです"
|
||||||
|
|
||||||
#: src/lex.c:137
|
#: src/lex.c:137
|
||||||
#, fuzzy
|
|
||||||
msgid "unexpected end of file"
|
msgid "unexpected end of file"
|
||||||
msgstr "予期しないファイルの終端です"
|
msgstr "予期しないファイルの終端です"
|
||||||
|
|
||||||
@@ -272,113 +295,93 @@ msgstr "ʣ
|
|||||||
#: src/lex.c:667
|
#: src/lex.c:667
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "`%s' supports no argument: %s"
|
msgid "`%s' supports no argument: %s"
|
||||||
msgstr ""
|
msgstr "`%s' は引数を受け付けません: %s"
|
||||||
|
|
||||||
#: src/lex.c:683
|
#: src/lex.c:683
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "`%s' requires an argument"
|
|
||||||
msgstr "%s: オプション `%s' は引数を要求します\n"
|
|
||||||
|
|
||||||
#: src/main.c:134
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s: internal error: %s\n"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "%s: 内部エラー: %s\n"
|
msgstr "`%s' オプションは引数を要求します"
|
||||||
|
|
||||||
#: src/output.c:979
|
#: src/output.c:951
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "最大テーブルサイズ (%s) を超えました"
|
msgstr "最大テーブルサイズ (%d) を超えました"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " タイプ %d は %s です\n"
|
msgstr " タイプ %d は %s です\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (規則 %d)"
|
msgstr " (規則 %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $default\taccept\n"
|
msgstr " $default\taccept\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " 動作無し\n"
|
msgstr " 動作無し\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \t状態 %d へ\n"
|
msgstr " $ \t状態 %d へ\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tシフト、および状態 %d へ\n"
|
msgstr " %-4s\tシフト、および状態 %d へ\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\tエラー (非結合)\n"
|
msgstr " %-4s\tエラー (非結合)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\t状態 %d へ\n"
|
msgstr " %-4s\t状態 %d へ\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr ""
|
msgstr "状態 %d"
|
||||||
"\n"
|
|
||||||
"\n"
|
|
||||||
"状態 %d\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
#, fuzzy
|
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr ""
|
msgstr "文法"
|
||||||
"\n"
|
|
||||||
"文法\n"
|
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr "番号, 行, 規則"
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "規則 %-4d %s ->"
|
msgstr " %3d %3d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr ""
|
msgstr "空"
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
#, fuzzy
|
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr "出現位置の規則による終端"
|
||||||
"\n"
|
|
||||||
"終端トークン、およびそこに現れた規則\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
#, fuzzy
|
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr "出現位置の規則による非終端"
|
||||||
"\n"
|
|
||||||
"非終端トークン、およびそこに現れた規則\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " 左辺:"
|
msgstr " 左辺:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " 右辺:"
|
msgstr " 右辺:"
|
||||||
|
|
||||||
@@ -387,19 +390,19 @@ msgstr "
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr " %-4s\tエラー (非結合)\n"
|
msgstr "%-4s\tエラー (非結合)"
|
||||||
|
|
||||||
#.
|
#.
|
||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr " $default\t規則 %d を利用して還元 (%s)\n"
|
msgstr "$default\t規則 %d を利用して還元 (%s)"
|
||||||
|
|
||||||
#: src/reader.c:89
|
#: src/reader.c:89
|
||||||
msgid " Skipping to next \\n"
|
msgid " Skipping to next \\n"
|
||||||
@@ -412,7 +415,7 @@ msgstr "
|
|||||||
|
|
||||||
#: src/reader.c:142 src/reader.c:154
|
#: src/reader.c:142 src/reader.c:154
|
||||||
msgid "invalid $ value"
|
msgid "invalid $ value"
|
||||||
msgstr "無効な $ の値"
|
msgstr "不適切な $ の値"
|
||||||
|
|
||||||
#: src/reader.c:180 src/reader.c:195
|
#: src/reader.c:180 src/reader.c:195
|
||||||
msgid "unterminated string at end of file"
|
msgid "unterminated string at end of file"
|
||||||
@@ -423,9 +426,9 @@ msgid "unterminated string"
|
|||||||
msgstr "閉じられていない文字列"
|
msgstr "閉じられていない文字列"
|
||||||
|
|
||||||
#: src/reader.c:336 src/reader.c:400
|
#: src/reader.c:336 src/reader.c:400
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%s is invalid"
|
msgid "%s is invalid"
|
||||||
msgstr "@%s は無効です"
|
msgstr "%s は不適切です"
|
||||||
|
|
||||||
#: src/reader.c:376
|
#: src/reader.c:376
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -433,9 +436,9 @@ msgid "$$ of `%s' has no declared type"
|
|||||||
msgstr "`%s' の $$ に宣言のない型があります"
|
msgstr "`%s' の $$ に宣言のない型があります"
|
||||||
|
|
||||||
#: src/reader.c:393
|
#: src/reader.c:393
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "$%d of `%s' has no declared type"
|
msgid "$%d of `%s' has no declared type"
|
||||||
msgstr "`%s' の $%s に宣言のない型があります"
|
msgstr "$%d 個の `%s' が宣言された型を持っていません"
|
||||||
|
|
||||||
#: src/reader.c:447
|
#: src/reader.c:447
|
||||||
msgid "unterminated `%{' definition"
|
msgid "unterminated `%{' definition"
|
||||||
@@ -444,17 +447,17 @@ msgstr "`%{'
|
|||||||
#: src/reader.c:492 src/reader.c:607 src/reader.c:657
|
#: src/reader.c:492 src/reader.c:607 src/reader.c:657
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Premature EOF after %s"
|
msgid "Premature EOF after %s"
|
||||||
msgstr ""
|
msgstr "%s の後ろに早くも EOF があります"
|
||||||
|
|
||||||
#: src/reader.c:509
|
#: src/reader.c:509
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "symbol `%s' used more than once as a literal string"
|
msgid "symbol `%s' used more than once as a literal string"
|
||||||
msgstr ""
|
msgstr "シンボル `%s' はリテラル文字列として複数回使われました"
|
||||||
|
|
||||||
#: src/reader.c:512
|
#: src/reader.c:512
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "symbol `%s' given more than one literal string"
|
msgid "symbol `%s' given more than one literal string"
|
||||||
msgstr ""
|
msgstr "シンボル `%s' は複数のリテラル文字列が与えられました"
|
||||||
|
|
||||||
#: src/reader.c:533 src/reader.c:676
|
#: src/reader.c:533 src/reader.c:676
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -469,26 +472,26 @@ msgstr "%s
|
|||||||
#: src/reader.c:552
|
#: src/reader.c:552
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "`%s' is invalid in %s"
|
msgid "`%s' is invalid in %s"
|
||||||
msgstr "%2$s 内の `%1$s' は無効です"
|
msgstr "`%s' は %s 内では不適切です"
|
||||||
|
|
||||||
#: src/reader.c:570 src/reader.c:735
|
#: src/reader.c:570 src/reader.c:735
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "multiple %s declarations"
|
msgid "multiple %s declarations"
|
||||||
msgstr "複数の %start が宣言されました"
|
msgstr "%s が複数個宣言されました"
|
||||||
|
|
||||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "invalid %s declaration"
|
msgid "invalid %s declaration"
|
||||||
msgstr "無効な %start が宣言されました"
|
msgstr "%s の宣言が不適切です"
|
||||||
|
|
||||||
#: src/reader.c:592
|
#: src/reader.c:592
|
||||||
msgid "%type declaration has no <typename>"
|
msgid "%type declaration has no <typename>"
|
||||||
msgstr "%type 宣言に <タイプ名> がありません"
|
msgstr "%type 宣言に <タイプ名> がありません"
|
||||||
|
|
||||||
#: src/reader.c:627
|
#: src/reader.c:627
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "invalid %%type declaration due to item: %s"
|
msgid "invalid %%type declaration due to item: %s"
|
||||||
msgstr "アイテムに与えられるべき %%type 宣言が無効です: `%s'"
|
msgstr "アイテムの為の %%type 宣言が不適切です: %s"
|
||||||
|
|
||||||
#: src/reader.c:672
|
#: src/reader.c:672
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -498,7 +501,7 @@ msgstr "%s
|
|||||||
#: src/reader.c:695
|
#: src/reader.c:695
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "invalid text (%s) - number should be after identifier"
|
msgid "invalid text (%s) - number should be after identifier"
|
||||||
msgstr "無効なテキスト (%s) - 数値は識別子の後ろにあるべきです"
|
msgstr "不適切なテキスト (%s) - 数値は識別子の後ろにあるべきです"
|
||||||
|
|
||||||
#: src/reader.c:705
|
#: src/reader.c:705
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -506,14 +509,14 @@ msgid "unexpected item: %s"
|
|||||||
msgstr "予期せぬアイテム: %s"
|
msgstr "予期せぬアイテム: %s"
|
||||||
|
|
||||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "unmatched %s"
|
msgid "unmatched %s"
|
||||||
msgstr "対応のない `{' です"
|
msgstr "対応のない %s です"
|
||||||
|
|
||||||
#: src/reader.c:810
|
#: src/reader.c:810
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "argument of %%expect is not an integer"
|
msgid "argument of %%expect is not an integer"
|
||||||
msgstr "%expect の引数が整数値ではありません"
|
msgstr "%%expect の引数が整数値ではありません"
|
||||||
|
|
||||||
#: src/reader.c:856
|
#: src/reader.c:856
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -540,9 +543,9 @@ msgid "unknown character: %s"
|
|||||||
msgstr "未知の文字: %s"
|
msgstr "未知の文字: %s"
|
||||||
|
|
||||||
#: src/reader.c:1204
|
#: src/reader.c:1204
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "unterminated %guard clause"
|
msgid "unterminated %guard clause"
|
||||||
msgstr "閉じられていない %%guard 節です"
|
msgstr "%guard 節が閉じられていません"
|
||||||
|
|
||||||
#: src/reader.c:1357
|
#: src/reader.c:1357
|
||||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||||
@@ -582,12 +585,12 @@ msgstr "
|
|||||||
#: src/reader.c:1573
|
#: src/reader.c:1573
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "invalid input: %s"
|
msgid "invalid input: %s"
|
||||||
msgstr "無効な入力: %s"
|
msgstr "不適切な入力: %s"
|
||||||
|
|
||||||
#: src/reader.c:1581
|
#: src/reader.c:1581
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||||
msgstr "シンボルが多すぎます (トークンと非終端アイテム) -- 最大 %s"
|
msgstr "シンボルが多すぎます (トークン + 非終端アイテム) -- 最大 %d"
|
||||||
|
|
||||||
#: src/reader.c:1584
|
#: src/reader.c:1584
|
||||||
msgid "no rules in the input grammar"
|
msgid "no rules in the input grammar"
|
||||||
@@ -601,9 +604,9 @@ msgstr ""
|
|||||||
"せん"
|
"せん"
|
||||||
|
|
||||||
#: src/reader.c:1743
|
#: src/reader.c:1743
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "tokens %s and %s both assigned number %d"
|
msgid "tokens %s and %s both assigned number %d"
|
||||||
msgstr "トークン %s と %s の双方が番号 %s に割り当てられました"
|
msgstr "トークン %s と %s の双方が番号 %d に割り当てられました"
|
||||||
|
|
||||||
#: src/reader.c:1796
|
#: src/reader.c:1796
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -625,85 +628,41 @@ msgstr "
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "開始シンボル %s はトークンです"
|
msgstr "開始シンボル %s はトークンです"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
#, fuzzy
|
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr ""
|
msgstr "無意味な非終端子:"
|
||||||
"不使用非終端子:\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
#, fuzzy
|
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr ""
|
msgstr "利用されない終端子:"
|
||||||
"\n"
|
|
||||||
"\n"
|
|
||||||
"利用されない終端子:\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
#, fuzzy
|
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr ""
|
msgstr "無意味な規則:"
|
||||||
"\n"
|
|
||||||
"\n"
|
|
||||||
"不使用規則:\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"変数\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
|
||||||
msgstr "値 前置 結合 タグ\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:456
|
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"規則\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"解釈された規則\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d rules never reduced\n"
|
msgid "%d rule never reduced\n"
|
||||||
msgstr "%d 個の規則は決して還元されません\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
|
msgstr[0] "%d 個の規則は決して還元されません\n"
|
||||||
|
|
||||||
#: src/reduce.c:497
|
#: src/reduce.c:511
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless nonterminal%s"
|
msgid "%d useless nonterminal"
|
||||||
msgstr "%d 個の不使用非終端子%.0s"
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d 個の無意味な非終端子"
|
||||||
|
|
||||||
#: src/reduce.c:502
|
#: src/reduce.c:517
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr "および"
|
msgstr "および"
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d 個の不使用規則%.0s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d 個の無意味な規則"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "開始シンボル %s はどの文にも由来しません"
|
msgstr "開始シンボル %s はどの文にも由来しません"
|
||||||
@@ -749,7 +708,7 @@ msgstr "%s:
|
|||||||
#: lib/getopt.c:804
|
#: lib/getopt.c:804
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s: invalid option -- %c\n"
|
msgid "%s: invalid option -- %c\n"
|
||||||
msgstr "%s: 無効なオプション -- %c\n"
|
msgstr "%s: 不適切なオプション -- %c\n"
|
||||||
|
|
||||||
#. 1003.2 specifies the format of this message.
|
#. 1003.2 specifies the format of this message.
|
||||||
#: lib/getopt.c:834 lib/getopt.c:964
|
#: lib/getopt.c:834 lib/getopt.c:964
|
||||||
@@ -770,9 +729,8 @@ msgstr "%s:
|
|||||||
#. If XALLOC_FAIL_FUNC is NULL, or does return, display this message
|
#. If XALLOC_FAIL_FUNC is NULL, or does return, display this message
|
||||||
#. before exiting when memory is exhausted. Goes through gettext.
|
#. before exiting when memory is exhausted. Goes through gettext.
|
||||||
#: lib/obstack.c:494 lib/obstack.c:497 lib/xmalloc.c:66
|
#: lib/obstack.c:494 lib/obstack.c:497 lib/xmalloc.c:66
|
||||||
#, fuzzy
|
|
||||||
msgid "memory exhausted"
|
msgid "memory exhausted"
|
||||||
msgstr "%s: メモリを使い果たしました\n"
|
msgstr "メモリを使い果たしました"
|
||||||
|
|
||||||
#. Get translations for open and closing quotation marks.
|
#. Get translations for open and closing quotation marks.
|
||||||
#.
|
#.
|
||||||
@@ -788,13 +746,13 @@ msgstr "%s:
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr ""
|
msgstr "`"
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr ""
|
msgstr "'"
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "\n"
|
#~ "\n"
|
||||||
@@ -898,6 +856,9 @@ msgstr ""
|
|||||||
#~ msgid "%s:%d: "
|
#~ msgid "%s:%d: "
|
||||||
#~ msgstr "%s:%d: "
|
#~ msgstr "%s:%d: "
|
||||||
|
|
||||||
|
#~ msgid "%s: internal error: %s\n"
|
||||||
|
#~ msgstr "%s: 内部エラー: %s\n"
|
||||||
|
|
||||||
#~ msgid "Entering set_nullable"
|
#~ msgid "Entering set_nullable"
|
||||||
#~ msgstr "set_nullable に入ります"
|
#~ msgstr "set_nullable に入ります"
|
||||||
|
|
||||||
@@ -920,10 +881,10 @@ msgstr ""
|
|||||||
#~ msgstr "対応のない右ブレース (`}') です"
|
#~ msgstr "対応のない右ブレース (`}') です"
|
||||||
|
|
||||||
#~ msgid "$%s is invalid"
|
#~ msgid "$%s is invalid"
|
||||||
#~ msgstr "$%s は無効です"
|
#~ msgstr "$%s は不適切です"
|
||||||
|
|
||||||
#~ msgid "invalid @-construct"
|
#~ msgid "invalid @-construct"
|
||||||
#~ msgstr "無効な @-コンストラクトです"
|
#~ msgstr "不適切な @-コンストラクトです"
|
||||||
|
|
||||||
#~ msgid "ill-formed %type declaration"
|
#~ msgid "ill-formed %type declaration"
|
||||||
#~ msgstr "邪悪な %type 宣言です"
|
#~ msgstr "邪悪な %type 宣言です"
|
||||||
@@ -933,3 +894,33 @@ msgstr ""
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "還元ファイル %s で %d 個の終端子%.0s, %d 個の非終端子%.0s, %d 個の規則%.0s"
|
#~ "還元ファイル %s で %d 個の終端子%.0s, %d 個の非終端子%.0s, %d 個の規則%.0s"
|
||||||
#~ "が定義されました\n"
|
#~ "が定義されました\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "変数\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||||
|
#~ msgstr "値 前置 結合 タグ\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "規則\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules interpreted\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "解釈された規則\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bison 1.25\n"
|
"Project-Id-Version: bison 1.25\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 1996-08-27 15:34 MET DST\n"
|
"PO-Revision-Date: 1996-08-27 15:34 MET DST\n"
|
||||||
"Last-Translator: Erick Branderhorst <[email protected]>\n"
|
"Last-Translator: Erick Branderhorst <[email protected]>\n"
|
||||||
"Language-Team: Dutch <[email protected]>\n"
|
"Language-Team: Dutch <[email protected]>\n"
|
||||||
@@ -18,7 +18,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -31,78 +31,78 @@ msgstr ""
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "fatale fout: %s\n"
|
msgstr "fatale fout: %s\n"
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr "Conflict in stadium %d tussen regel %d en teken %s opgelost als %s.\n"
|
msgstr "Conflict in stadium %d tussen regel %d en teken %s opgelost als %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "reduceer"
|
msgstr "reduceer"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "verschuif"
|
msgstr "verschuif"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "een fout"
|
msgstr "een fout"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] " %d verschuif/reduceer conflicten"
|
msgstr[0] " %d verschuif/reduceer conflicten"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr " en"
|
msgstr " en"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] " %d reduceer/reduceer conflicten"
|
msgstr[0] " %d reduceer/reduceer conflicten"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "Stadium %d bevat"
|
msgstr "Stadium %d bevat"
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "conflictueerd: "
|
msgstr "conflictueerd: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d vershuif/reduceer"
|
msgstr " %d vershuif/reduceer"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d reduceer/reduceer"
|
msgstr " %d reduceer/reduceer"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s bevat"
|
msgstr "%s bevat"
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] " %d verschuif/reduceer conflicten"
|
msgstr[0] " %d verschuif/reduceer conflicten"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[reduceer gebruikt regel %d (%s)]\n"
|
msgstr " %-4s\t[reduceer gebruikt regel %d (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -111,22 +111,22 @@ msgstr ""
|
|||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ msgstr "%s: geen grammatica bestand gegeven\n"
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: extra argumenten genegeerd na '%s'\n"
|
msgstr "%s: extra argumenten genegeerd na '%s'\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -279,55 +279,50 @@ msgstr ""
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "%s: optie `%s' vereist een argument\n"
|
msgstr "%s: optie `%s' vereist een argument\n"
|
||||||
|
|
||||||
#: src/main.c:134
|
#: src/output.c:951
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "interne fout, %s\n"
|
|
||||||
|
|
||||||
#: src/output.c:979
|
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "maximale tabel grootte (%s) overschreden"
|
msgstr "maximale tabel grootte (%s) overschreden"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (regel %d)"
|
msgstr " (regel %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " GEEN AKTIES\n"
|
msgstr " GEEN AKTIES\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -337,28 +332,28 @@ msgstr ""
|
|||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"\n"
|
"\n"
|
||||||
"Grammatica\n"
|
"Grammatica\n"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "regel %-4d %s ->"
|
msgstr "regel %-4d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -366,7 +361,7 @@ msgstr ""
|
|||||||
"Terminals, met regels waar ze voorkomen\n"
|
"Terminals, met regels waar ze voorkomen\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -374,11 +369,11 @@ msgstr ""
|
|||||||
"Geen terminals, met regels waar ze voorkomen\n"
|
"Geen terminals, met regels waar ze voorkomen\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " links:"
|
msgstr " links:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " rechts:"
|
msgstr " rechts:"
|
||||||
|
|
||||||
@@ -387,7 +382,7 @@ msgstr " rechts:"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -396,7 +391,7 @@ msgstr ""
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -628,14 +623,14 @@ msgstr ""
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "het start symbool %s is een token"
|
msgstr "het start symbool %s is een token"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Onbruikbare niet terminals:\n"
|
"Onbruikbare niet terminals:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -644,7 +639,7 @@ msgstr ""
|
|||||||
"Terminals welke niet worden gebruikt:\n"
|
"Terminals welke niet worden gebruikt:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -653,60 +648,29 @@ msgstr ""
|
|||||||
"Onbruikbare regels:\n"
|
"Onbruikbare regels:\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
#, fuzzy, c-format
|
||||||
"Variables\n"
|
msgid "%d rule never reduced\n"
|
||||||
"---------\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
"\n"
|
msgstr[0] "%d regels nooit gereduceerd\n"
|
||||||
msgstr ""
|
|
||||||
"Variabelen\n"
|
|
||||||
"----------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
#: src/reduce.c:511
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
#, fuzzy, c-format
|
||||||
msgstr "Waarde Sprec Sassoc Tag\n"
|
msgid "%d useless nonterminal"
|
||||||
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d onbruikbare niet terminal%s"
|
||||||
|
|
||||||
#: src/reduce.c:456
|
#: src/reduce.c:517
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Regels\n"
|
|
||||||
"------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Geinterpreteerde regels\n"
|
|
||||||
"-----------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
|
||||||
msgid "%d rules never reduced\n"
|
|
||||||
msgstr "%d regels nooit gereduceerd\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:497
|
|
||||||
#, c-format
|
|
||||||
msgid "%d useless nonterminal%s"
|
|
||||||
msgstr "%d onbruikbare niet terminal%s"
|
|
||||||
|
|
||||||
#: src/reduce.c:502
|
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " en "
|
msgstr " en "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d onbruikbare regels%s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d onbruikbare regels%s"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "Start symbool %s is niet afkomstig uit een zin"
|
msgstr "Start symbool %s is niet afkomstig uit een zin"
|
||||||
@@ -791,11 +755,11 @@ msgstr "%s: geen geheugen meer beschikbaar\n"
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -900,6 +864,9 @@ msgstr ""
|
|||||||
#~ msgid "limit of %d exceeded, too many %s"
|
#~ msgid "limit of %d exceeded, too many %s"
|
||||||
#~ msgstr "limiet van %d overschreden, te veel %s"
|
#~ msgstr "limiet van %d overschreden, te veel %s"
|
||||||
|
|
||||||
|
#~ msgid "internal error, %s\n"
|
||||||
|
#~ msgstr "interne fout, %s\n"
|
||||||
|
|
||||||
#~ msgid "Entering set_nullable"
|
#~ msgid "Entering set_nullable"
|
||||||
#~ msgstr "Inkomende set nullable"
|
#~ msgstr "Inkomende set nullable"
|
||||||
|
|
||||||
@@ -932,3 +899,33 @@ msgstr ""
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "gereduceerd %s gedefinieerd %d terminal%s, %d nietterminal%s, en %d "
|
#~ "gereduceerd %s gedefinieerd %d terminal%s, %d nietterminal%s, en %d "
|
||||||
#~ "productie%s.\n"
|
#~ "productie%s.\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Variabelen\n"
|
||||||
|
#~ "----------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||||
|
#~ msgstr "Waarde Sprec Sassoc Tag\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Regels\n"
|
||||||
|
#~ "------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules interpreted\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Geinterpreteerde regels\n"
|
||||||
|
#~ "-----------------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bison 1.29\n"
|
"Project-Id-Version: bison 1.29\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 2001-09-09 13:49+04:00\n"
|
"PO-Revision-Date: 2001-09-09 13:49+04:00\n"
|
||||||
"Last-Translator: Dmitry S. Sivachenko <[email protected]>\n"
|
"Last-Translator: Dmitry S. Sivachenko <[email protected]>\n"
|
||||||
"Language-Team: Russian <[email protected]>\n"
|
"Language-Team: Russian <[email protected]>\n"
|
||||||
@@ -18,7 +18,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ ÓÏÓÔÏÑÎÉÊ (ÍÁËÓÉÍÁÌØÎÏ %d)"
|
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ ÓÏÓÔÏÑÎÉÊ (ÍÁËÓÉÍÁÌØÎÏ %d)"
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr "îÅÉÚ×ÅÓÔÎÁÑ ÓÉÓÔÅÍÎÁÑ ÏÛÉÂËÁ"
|
msgstr "îÅÉÚ×ÅÓÔÎÁÑ ÓÉÓÔÅÍÎÁÑ ÏÛÉÂËÁ"
|
||||||
|
|
||||||
@@ -30,79 +30,79 @@ msgstr "
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "ÆÁÔÁÌØÎÁÑ ÏÛÉÂËÁ: "
|
msgstr "ÆÁÔÁÌØÎÁÑ ÏÛÉÂËÁ: "
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"ëÏÎÆÌÉËÔ × ÓÏÓÔÏÑÎÉÉ %d ÍÅÖÄÕ ÐÒÁ×ÉÌÏÍ %d É ÌÅËÓÅÍÏÊ %s ÒÁÚÒÅÛÅÎ ËÁË %s.\n"
|
"ëÏÎÆÌÉËÔ × ÓÏÓÔÏÑÎÉÉ %d ÍÅÖÄÕ ÐÒÁ×ÉÌÏÍ %d É ÌÅËÓÅÍÏÊ %s ÒÁÚÒÅÛÅÎ ËÁË %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "×Ù×ÏÄ"
|
msgstr "×Ù×ÏÄ"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "ÓÄ×ÉÇ"
|
msgstr "ÓÄ×ÉÇ"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "ÏÛÉÂËÁ"
|
msgstr "ÏÛÉÂËÁ"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ÓÄ×ÉÇÁ/×Ù×ÏÄÁ"
|
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ÓÄ×ÉÇÁ/×Ù×ÏÄÁ"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr " É"
|
msgstr " É"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ×Ù×ÏÄÁ/×Ù×ÏÄÁ"
|
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ×Ù×ÏÄÁ/×Ù×ÏÄÁ"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "óÏÓÔÏÑÎÉÅ %d ÓÏÄÅÒÖÉÔ"
|
msgstr "óÏÓÔÏÑÎÉÅ %d ÓÏÄÅÒÖÉÔ"
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "ËÏÎÆÌÉËÔÙ: "
|
msgstr "ËÏÎÆÌÉËÔÙ: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d ÓÄ×ÉÇ/×Ù×ÏÄ"
|
msgstr " %d ÓÄ×ÉÇ/×Ù×ÏÄ"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d ×Ù×ÏÄ/×Ù×ÏÄ"
|
msgstr " %d ×Ù×ÏÄ/×Ù×ÏÄ"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s ÓÏÄÅÒÖÉÔ "
|
msgstr "%s ÓÏÄÅÒÖÉÔ "
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ÓÄ×ÉÇÁ/×Ù×ÏÄÁ"
|
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ÓÄ×ÉÇÁ/×Ù×ÏÄÁ"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)]\n"
|
msgstr " %-4s\t[×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -111,22 +111,22 @@ msgstr ""
|
|||||||
" $default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
" $default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
msgstr " %-4s\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
msgstr " $default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr "ÎÅ ÕÄÁÅÔÓÑ ÏÔËÒÙÔØ ÆÁÊÌ `%s'"
|
msgstr "ÎÅ ÕÄÁÅÔÓÑ ÏÔËÒÙÔØ ÆÁÊÌ `%s'"
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr "ÎÅ ÕÄÁÅÔÓÑ ÚÁËÒÙÔØ ÆÁÊÌ"
|
msgstr "ÎÅ ÕÄÁÅÔÓÑ ÚÁËÒÙÔØ ÆÁÊÌ"
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ msgstr "%s:
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: ÌÉÛÎÉÅ ÁÒÇÕÍÅÎÔÙ ÐÏÓÌÅ `%s' ÉÇÎÏÒÉÒÏ×ÁÎÙ\n"
|
msgstr "%s: ÌÉÛÎÉÅ ÁÒÇÕÍÅÎÔÙ ÐÏÓÌÅ `%s' ÉÇÎÏÒÉÒÏ×ÁÎÙ\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ goto (ÍÁËÓÉÍÁÌØÎÏ %d)"
|
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ goto (ÍÁËÓÉÍÁÌØÎÏ %d)"
|
||||||
@@ -307,91 +307,86 @@ msgstr ""
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "%s: ËÌÀÞ `%s' ÄÏÌÖÅÎ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ Ó ÁÒÇÕÍÅÎÔÏÍ\n"
|
msgstr "%s: ËÌÀÞ `%s' ÄÏÌÖÅÎ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ Ó ÁÒÇÕÍÅÎÔÏÍ\n"
|
||||||
|
|
||||||
#: src/main.c:134
|
#: src/output.c:951
|
||||||
#, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "%s: ×ÎÕÔÒÅÎÎÑÑ ÏÛÉÂËÁ: %s\n"
|
|
||||||
|
|
||||||
#: src/output.c:979
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "ÐÒÅ×ÙÛÅÎ ÍÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÔÁÂÌÉÃÙ (%d)"
|
msgstr "ÐÒÅ×ÙÛÅÎ ÍÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÔÁÂÌÉÃÙ (%d)"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " ÔÉÐ %d Ñ×ÌÑÅÔÓÑ %s\n"
|
msgstr " ÔÉÐ %d Ñ×ÌÑÅÔÓÑ %s\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (ÐÒÁ×ÉÌÏ %d)"
|
msgstr " (ÐÒÁ×ÉÌÏ %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $default\tÐÒÉÎÑÔÉÅ\n"
|
msgstr " $default\tÐÒÉÎÑÔÉÅ\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " îåô äåêóô÷éê\n"
|
msgstr " îåô äåêóô÷éê\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \tÐÅÒÅÈÏÄ × ÓÏÓÔÏÑÎÉÅ %d\n"
|
msgstr " $ \tÐÅÒÅÈÏÄ × ÓÏÓÔÏÑÎÉÅ %d\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tÓÄ×ÉÇ, É ÐÅÒÅÈÏÄ × ÓÏÓÔÏÑÎÉÅ %d\n"
|
msgstr " %-4s\tÓÄ×ÉÇ, É ÐÅÒÅÈÏÄ × ÓÏÓÔÏÑÎÉÅ %d\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\tÏÛÉÂËÁ (ÎÅÁÓÓÏÃÉÁÔÉ×ÎÁÑ)\n"
|
msgstr " %-4s\tÏÛÉÂËÁ (ÎÅÁÓÓÏÃÉÁÔÉ×ÎÁÑ)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\tÐÅÒÅÈÏÄ × ÓÏÓÔÏÑÎÉÅ %d\n"
|
msgstr " %-4s\tÐÅÒÅÈÏÄ × ÓÏÓÔÏÑÎÉÅ %d\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr "ÓÏÓÔÏÑÎÉÅ %d"
|
msgstr "ÓÏÓÔÏÑÎÉÅ %d"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr "çÒÁÍÍÁÔÉËÁ"
|
msgstr "çÒÁÍÍÁÔÉËÁ"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "ÐÒÁ×ÉÌÏ %-4d %s ->"
|
msgstr "ÐÒÁ×ÉÌÏ %-4d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr "ôÅÒÍÉÎÁÌØÎÙÅ ÓÉÍ×ÏÌÙ Ó ÐÒÁ×ÉÌÁÍÉ, × ËÏÔÏÒÙÈ ÏÎÉ ÐÏÑ×ÌÑÀÔÓÑ"
|
msgstr "ôÅÒÍÉÎÁÌØÎÙÅ ÓÉÍ×ÏÌÙ Ó ÐÒÁ×ÉÌÁÍÉ, × ËÏÔÏÒÙÈ ÏÎÉ ÐÏÑ×ÌÑÀÔÓÑ"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr "îÅÔÅÒÍÉÎÁÌØÎÙÅ ÓÉÍ×ÏÌÙ Ó ÐÒÁ×ÉÌÁÍÉ, × ËÏÔÏÒÙÈ ÏÎÉ ÐÏÑ×ÌÑÀÔÓÑ"
|
msgstr "îÅÔÅÒÍÉÎÁÌØÎÙÅ ÓÉÍ×ÏÌÙ Ó ÐÒÁ×ÉÌÁÍÉ, × ËÏÔÏÒÙÈ ÏÎÉ ÐÏÑ×ÌÑÀÔÓÑ"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " ÎÁÌÅ×Ï:"
|
msgstr " ÎÁÌÅ×Ï:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " ÎÁÐÒÁ×Ï:"
|
msgstr " ÎÁÐÒÁ×Ï:"
|
||||||
|
|
||||||
@@ -400,7 +395,7 @@ msgstr "
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr "%-4s\tÏÛÉÂËÁ (ÎÅÁÓÓÏÃÉÁÔÉ×ÎÁÑ)"
|
msgstr "%-4s\tÏÛÉÂËÁ (ÎÅÁÓÓÏÃÉÁÔÉ×ÎÁÑ)"
|
||||||
@@ -409,7 +404,7 @@ msgstr "%-4s\t
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr "$default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)"
|
msgstr "$default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)"
|
||||||
@@ -637,72 +632,41 @@ msgstr "
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "ÎÁÞÁÌØÎÙÊ ÓÉÍ×ÏÌ %s Ñ×ÌÑÅÔÓÑ ÌÅËÓÅÍÏÊ"
|
msgstr "ÎÁÞÁÌØÎÙÊ ÓÉÍ×ÏÌ %s Ñ×ÌÑÅÔÓÑ ÌÅËÓÅÍÏÊ"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr "âÅÓÐÏÌÅÚÎÙÅ ÎÅÔÅÒÍÉÎÁÌÙ:"
|
msgstr "âÅÓÐÏÌÅÚÎÙÅ ÎÅÔÅÒÍÉÎÁÌÙ:"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr "îÅÉÓÐÏÌØÚÏ×ÁÎÎÙÅ ÔÅÒÍÉÎÁÌÙ:"
|
msgstr "îÅÉÓÐÏÌØÚÏ×ÁÎÎÙÅ ÔÅÒÍÉÎÁÌÙ:"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr "âÅÓÐÏÌÅÚÎÙÅ ÐÒÁ×ÉÌÁ:"
|
msgstr "âÅÓÐÏÌÅÚÎÙÅ ÐÒÁ×ÉÌÁ:"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
#, fuzzy, c-format
|
||||||
"Variables\n"
|
msgid "%d rule never reduced\n"
|
||||||
"---------\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
"\n"
|
msgstr[0] "%d ÐÒÁ×ÉÌ ÎÅ Ó×ÅÄÅÎÏ\n"
|
||||||
msgstr ""
|
|
||||||
"ðÅÒÅÍÅÎÎÙÅ\n"
|
|
||||||
"----------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
#: src/reduce.c:511
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
#, fuzzy, c-format
|
||||||
msgstr "úÎÁÞ ðÒÉÏÒ áÓÓÏÃ ôÅÇ\n"
|
msgid "%d useless nonterminal"
|
||||||
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d ÂÅÓÐÏÌÅÚÎÙÈ ÎÅÔÅÒÍÉÎÁÌÏ×%s"
|
||||||
|
|
||||||
#: src/reduce.c:456
|
#: src/reduce.c:517
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"ðÒÁ×ÉÌÁ\n"
|
|
||||||
"-------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"éÎÔÅÒÐÒÅÔÉÒÏ×ÁÎÎÙÅ ÐÒÁ×ÉÌÁ\n"
|
|
||||||
"--------------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
|
||||||
msgid "%d rules never reduced\n"
|
|
||||||
msgstr "%d ÐÒÁ×ÉÌ ÎÅ Ó×ÅÄÅÎÏ\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:497
|
|
||||||
#, c-format
|
|
||||||
msgid "%d useless nonterminal%s"
|
|
||||||
msgstr "%d ÂÅÓÐÏÌÅÚÎÙÈ ÎÅÔÅÒÍÉÎÁÌÏ×%s"
|
|
||||||
|
|
||||||
#: src/reduce.c:502
|
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " É "
|
msgstr " É "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, fuzzy, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d ÂÅÓÐÏÌÅÚÎÙÈ ÐÒÁ×ÉÌ%s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d ÂÅÓÐÏÌÅÚÎÙÈ ÐÒÁ×ÉÌ%s"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "îÁÞÁÌØÎÙÊ ÓÉÍ×ÏÌ %s ÎÅ ×Ù×ÏÄÉÔ ÎÉ ÏÄÎÏÇÏ ÐÒÅÄÌÏÖÅÎÉÑ"
|
msgstr "îÁÞÁÌØÎÙÊ ÓÉÍ×ÏÌ %s ÎÅ ×Ù×ÏÄÉÔ ÎÉ ÏÄÎÏÇÏ ÐÒÅÄÌÏÖÅÎÉÑ"
|
||||||
@@ -786,11 +750,11 @@ msgstr "
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr "`"
|
msgstr "`"
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr "'"
|
msgstr "'"
|
||||||
|
|
||||||
@@ -809,6 +773,9 @@ msgstr "'"
|
|||||||
#~ msgid "%s derives"
|
#~ msgid "%s derives"
|
||||||
#~ msgstr "%s ×Ù×ÏÄÉÔ"
|
#~ msgstr "%s ×Ù×ÏÄÉÔ"
|
||||||
|
|
||||||
|
#~ msgid "%s: internal error: %s\n"
|
||||||
|
#~ msgstr "%s: ×ÎÕÔÒÅÎÎÑÑ ÏÛÉÂËÁ: %s\n"
|
||||||
|
|
||||||
#~ msgid "Entering set_nullable"
|
#~ msgid "Entering set_nullable"
|
||||||
#~ msgstr "÷ÈÏÄ × set_nullable"
|
#~ msgstr "÷ÈÏÄ × set_nullable"
|
||||||
|
|
||||||
@@ -821,6 +788,36 @@ msgstr "'"
|
|||||||
#~ msgid "multiple %%source_extension declarations"
|
#~ msgid "multiple %%source_extension declarations"
|
||||||
#~ msgstr "ÍÎÏÖÅÓÔ×ÅÎÎÙÅ ÏÐÉÓÁÎÉÑ %%source_extension"
|
#~ msgstr "ÍÎÏÖÅÓÔ×ÅÎÎÙÅ ÏÐÉÓÁÎÉÑ %%source_extension"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Variables\n"
|
||||||
|
#~ "---------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "ðÅÒÅÍÅÎÎÙÅ\n"
|
||||||
|
#~ "----------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||||
|
#~ msgstr "úÎÁÞ ðÒÉÏÒ áÓÓÏÃ ôÅÇ\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules\n"
|
||||||
|
#~ "-----\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "ðÒÁ×ÉÌÁ\n"
|
||||||
|
#~ "-------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "Rules interpreted\n"
|
||||||
|
#~ "-----------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "éÎÔÅÒÐÒÅÔÉÒÏ×ÁÎÎÙÅ ÐÒÁ×ÉÌÁ\n"
|
||||||
|
#~ "--------------------------\n"
|
||||||
|
#~ "\n"
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "reduced %s defines %d terminal%s, %d nonterminal%s, and %d production%s.\n"
|
#~ "reduced %s defines %d terminal%s, %d nonterminal%s, and %d production%s.\n"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bison 1.30d\n"
|
"Project-Id-Version: bison 1.30f\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 2001-11-21 22:10+0100\n"
|
"PO-Revision-Date: 2001-12-06 22:33+0100\n"
|
||||||
"Last-Translator: Göran Uddeborg <[email protected]>\n"
|
"Last-Translator: Göran Uddeborg <[email protected]>\n"
|
||||||
"Language-Team: Swedish <[email protected]>\n"
|
"Language-Team: Swedish <[email protected]>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -20,7 +20,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr "för många tillstånd (max %d)"
|
msgstr "för många tillstånd (max %d)"
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr "Okänt systemfel"
|
msgstr "Okänt systemfel"
|
||||||
|
|
||||||
@@ -32,81 +32,81 @@ msgstr "varning: "
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "ödesdigert fel: "
|
msgstr "ödesdigert fel: "
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Konflikt i tillstånd %d mellan regel %d och element %s, löstes med %s.\n"
|
"Konflikt i tillstånd %d mellan regel %d och element %s, löstes med %s.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "reducera"
|
msgstr "reducera"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "skifta"
|
msgstr "skifta"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "ett fel"
|
msgstr "ett fel"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] "%d skifta/reducerakonflikt"
|
msgstr[0] "%d skifta/reducerakonflikt"
|
||||||
msgstr[1] "%d skifta/reducerakonflikter"
|
msgstr[1] "%d skifta/reducerakonflikter"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr "och"
|
msgstr "och"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] "%d reducera/reducerakonflikt"
|
msgstr[0] "%d reducera/reducerakonflikt"
|
||||||
msgstr[1] "%d reducera/reducerakonflikter"
|
msgstr[1] "%d reducera/reducerakonflikter"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "Tillstånd %d innehåller "
|
msgstr "Tillstånd %d innehåller "
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "konflikter: "
|
msgstr "konflikter: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d skifta/reducera"
|
msgstr " %d skifta/reducera"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d reducera/reducera"
|
msgstr " %d reducera/reducera"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s innehåller "
|
msgstr "%s innehåller "
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] "förväntade %d skifta/reducerakonflikt\n"
|
msgstr[0] "förväntade %d skifta/reducerakonflikt\n"
|
||||||
msgstr[1] "förväntade %d skifta/reducerakonflikter\n"
|
msgstr[1] "förväntade %d skifta/reducerakonflikter\n"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[reducera med regel %d (%s)]\n"
|
msgstr " %-4s\t[reducera med regel %d (%s)]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -115,22 +115,22 @@ msgstr ""
|
|||||||
" $standard\treducera med regel %d (%s)\n"
|
" $standard\treducera med regel %d (%s)\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\treducera med regel %d (%s)\n"
|
msgstr " %-4s\treducera med regel %d (%s)\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $standard\treducera med regel %d (%s)\n"
|
msgstr " $standard\treducera med regel %d (%s)\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr "kan inte öppna filen \"%s\""
|
msgstr "kan inte öppna filen \"%s\""
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr "kan inte stänga fil"
|
msgstr "kan inte stänga fil"
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@ msgstr "%s: ingen grammatikfil angiven\n"
|
|||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: extra argument ignorerade efter \"%s\"\n"
|
msgstr "%s: extra argument ignorerade efter \"%s\"\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr "för många goto (max %d)"
|
msgstr "för många goto (max %d)"
|
||||||
@@ -309,91 +309,86 @@ msgstr "\"%s\" st
|
|||||||
msgid "`%s' requires an argument"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "\"%s\" behöver ett argument"
|
msgstr "\"%s\" behöver ett argument"
|
||||||
|
|
||||||
#: src/main.c:134
|
#: src/output.c:951
|
||||||
#, c-format
|
|
||||||
msgid "%s: internal error: %s\n"
|
|
||||||
msgstr "%s: internt fel: %s\n"
|
|
||||||
|
|
||||||
#: src/output.c:979
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "maximal tabellstorlek (%d) överskriden"
|
msgstr "maximal tabellstorlek (%d) överskriden"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " typ %d är %s\n"
|
msgstr " typ %d är %s\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (regel %d)"
|
msgstr " (regel %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $standard\tacceptera\n"
|
msgstr " $standard\tacceptera\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " INGA ÅTGÄRDER\n"
|
msgstr " INGA ÅTGÄRDER\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \tgå till tillstånd %d\n"
|
msgstr " $ \tgå till tillstånd %d\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tskifta, och gå till tillstånd %d\n"
|
msgstr " %-4s\tskifta, och gå till tillstånd %d\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\tfel (ickeassociativ)\n"
|
msgstr " %-4s\tfel (ickeassociativ)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\tgå till tillstånd %d\n"
|
msgstr " %-4s\tgå till tillstånd %d\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr "tillstånd %d"
|
msgstr "tillstånd %d"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr "Grammatik"
|
msgstr "Grammatik"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr "Nummer, Rad, Regel"
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "regel %-4d %s ->"
|
msgstr " %3d %3d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr "tom"
|
msgstr "tom"
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr "Terminaler, med regler där de förekommer"
|
msgstr "Terminaler, med regler där de förekommer"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr "Icketerminaler, med regler där de förekommer"
|
msgstr "Icketerminaler, med regler där de förekommer"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " till vänster:"
|
msgstr " till vänster:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " till höger:"
|
msgstr " till höger:"
|
||||||
|
|
||||||
@@ -402,7 +397,7 @@ msgstr " till h
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr "%-4s\tfel (ickeassociativ)"
|
msgstr "%-4s\tfel (ickeassociativ)"
|
||||||
@@ -411,7 +406,7 @@ msgstr "%-4s\tfel (ickeassociativ)"
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr "$standard\treducera med regel %d (%s)"
|
msgstr "$standard\treducera med regel %d (%s)"
|
||||||
@@ -640,75 +635,44 @@ msgstr "startsymbolen %s
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "startsymbolen %s är ett element"
|
msgstr "startsymbolen %s är ett element"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr "Oanvändbara icketerminaler:"
|
msgstr "Oanvändbara icketerminaler:"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr "Terminaler som inte används:"
|
msgstr "Terminaler som inte används:"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr "Oanvändbara regler:"
|
msgstr "Oanvändbara regler:"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Variabler\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
|
||||||
msgstr "Värde Sprec Sassoc Tagg\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:456
|
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Regler\n"
|
|
||||||
"------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Tolkade regler\n"
|
|
||||||
"--------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d rules never reduced\n"
|
msgid "%d rule never reduced\n"
|
||||||
msgstr "%d regler reduceras aldrig\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
|
msgstr[0] "%d regel reduceras aldrig\n"
|
||||||
|
msgstr[1] "%d regler reduceras aldrig\n"
|
||||||
|
|
||||||
# Jag har anmält att det är fel att anta att "s" är en universell pluraländelse.
|
#: src/reduce.c:511
|
||||||
# Jag föreslog också att de använder ngettext istället.
|
|
||||||
# "Vad göras skall är redan gjort."
|
|
||||||
#: src/reduce.c:497
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless nonterminal%s"
|
msgid "%d useless nonterminal"
|
||||||
msgstr "%d oanvändbara icketerminaler%.0s"
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d oanvändbar icketerminal"
|
||||||
|
msgstr[1] "%d oanvändbara icketerminaler"
|
||||||
|
|
||||||
#: src/reduce.c:502
|
#: src/reduce.c:517
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " och "
|
msgstr " och "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d oanvändbara regler%.0s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d oanvändbar regel"
|
||||||
|
msgstr[1] "%d oanvändbara regler"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "Startsymbolen %s genererar inga meningar"
|
msgstr "Startsymbolen %s genererar inga meningar"
|
||||||
@@ -795,10 +759,10 @@ msgstr "minnet slut"
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr "\""
|
msgstr "\""
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr "\""
|
msgstr "\""
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: bison 1.30\n"
|
"Project-Id-Version: bison 1.30f\n"
|
||||||
"POT-Creation-Date: 2001-11-26 16:23+0100\n"
|
"POT-Creation-Date: 2001-12-13 11:59+0100\n"
|
||||||
"PO-Revision-Date: 2001-11-02 14:49GMT\n"
|
"PO-Revision-Date: 2001-12-06 12:09+300\n"
|
||||||
"Last-Translator: Altug Bayram <[email protected]>\n"
|
"Last-Translator: Altug Bayram <[email protected]>\n"
|
||||||
"Language-Team: Turkish <[email protected]>\n"
|
"Language-Team: Turkish <[email protected]>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -19,7 +19,7 @@ msgstr ""
|
|||||||
msgid "too many states (max %d)"
|
msgid "too many states (max %d)"
|
||||||
msgstr "çok fazla durum (en fazla %d)"
|
msgstr "çok fazla durum (en fazla %d)"
|
||||||
|
|
||||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||||
msgid "Unknown system error"
|
msgid "Unknown system error"
|
||||||
msgstr "Bilinmeyen sistem hatasý"
|
msgstr "Bilinmeyen sistem hatasý"
|
||||||
|
|
||||||
@@ -31,80 +31,82 @@ msgstr "uyar
|
|||||||
msgid "fatal error: "
|
msgid "fatal error: "
|
||||||
msgstr "ölümcül hata:"
|
msgstr "ölümcül hata:"
|
||||||
|
|
||||||
#: src/conflicts.c:45
|
#: src/conflicts.c:44
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
msgid "Conflict in state %d between rule %d and token %s resolved as %s.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"%d durumu içinde %d kuralý ve %s andaçý arasýndaki çeliþki %s "
|
"%d durumu içinde %d kuralý ve %s andaçý arasýndaki çeliþki %s olarak\n"
|
||||||
"olarakçözümlendi.\n"
|
"çözümlendi.\n"
|
||||||
|
|
||||||
#: src/conflicts.c:111 src/conflicts.c:134
|
#: src/conflicts.c:94 src/conflicts.c:119
|
||||||
msgid "reduce"
|
msgid "reduce"
|
||||||
msgstr "indirgeme"
|
msgstr "indirgeme"
|
||||||
|
|
||||||
#: src/conflicts.c:117 src/conflicts.c:130
|
#: src/conflicts.c:101 src/conflicts.c:115
|
||||||
msgid "shift"
|
msgid "shift"
|
||||||
msgstr "öteleme"
|
msgstr "öteleme"
|
||||||
|
|
||||||
#: src/conflicts.c:138
|
#: src/conflicts.c:123
|
||||||
msgid "an error"
|
msgid "an error"
|
||||||
msgstr "bir hata"
|
msgstr "bir hata"
|
||||||
|
|
||||||
#: src/conflicts.c:389
|
#: src/conflicts.c:302
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%d shift/reduce conflict"
|
msgid "%d shift/reduce conflict"
|
||||||
msgid_plural "%d shift/reduce conflicts"
|
msgid_plural "%d shift/reduce conflicts"
|
||||||
msgstr[0] " %d öteleme/indirgeme çeliþkisi"
|
msgstr[0] "%d öteleme/indirgeme çeliþkisi"
|
||||||
|
msgstr[1] "%d öteleme/indirgeme çeliþkisi"
|
||||||
|
|
||||||
#: src/conflicts.c:396
|
#: src/conflicts.c:309
|
||||||
#, fuzzy
|
|
||||||
msgid "and"
|
msgid "and"
|
||||||
msgstr " ve"
|
msgstr "ve"
|
||||||
|
|
||||||
#: src/conflicts.c:402
|
#: src/conflicts.c:315
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "%d reduce/reduce conflict"
|
msgid "%d reduce/reduce conflict"
|
||||||
msgid_plural "%d reduce/reduce conflicts"
|
msgid_plural "%d reduce/reduce conflicts"
|
||||||
msgstr[0] " %d indirgeme/indirgeme çeliþkisi"
|
msgstr[0] "%d indirgeme/indirgeme çeliþkisi"
|
||||||
|
msgstr[1] "%d indirgeme/indirgeme çeliþkisi"
|
||||||
|
|
||||||
#: src/conflicts.c:426
|
#: src/conflicts.c:340
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "State %d contains "
|
msgid "State %d contains "
|
||||||
msgstr "%d durumu içerir"
|
msgstr "%d durumu içerir"
|
||||||
|
|
||||||
#. If invoked with `--yacc', use the output format specified by
|
#. If invoked with `--yacc', use the output format specified by
|
||||||
#. POSIX.
|
#. POSIX.
|
||||||
#: src/conflicts.c:470
|
#: src/conflicts.c:387
|
||||||
msgid "conflicts: "
|
msgid "conflicts: "
|
||||||
msgstr "çeliþkiler: "
|
msgstr "çeliþkiler: "
|
||||||
|
|
||||||
#: src/conflicts.c:472
|
#: src/conflicts.c:389
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d shift/reduce"
|
msgid " %d shift/reduce"
|
||||||
msgstr " %d öteleme/indirgeme"
|
msgstr " %d shift/reduce"
|
||||||
|
|
||||||
#: src/conflicts.c:476
|
#: src/conflicts.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %d reduce/reduce"
|
msgid " %d reduce/reduce"
|
||||||
msgstr " %d indirgeme/indirgeme"
|
msgstr " %d indirgeme/indirgeme"
|
||||||
|
|
||||||
#: src/conflicts.c:481 src/reduce.c:493
|
#: src/conflicts.c:398 src/reduce.c:508
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s contains "
|
msgid "%s contains "
|
||||||
msgstr "%s içerir "
|
msgstr "%s içerir"
|
||||||
|
|
||||||
#: src/conflicts.c:488
|
#: src/conflicts.c:405
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid "expected %d shift/reduce conflict\n"
|
msgid "expected %d shift/reduce conflict\n"
|
||||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||||
msgstr[0] " %d öteleme/indirgeme çeliþkisi"
|
msgstr[0] "beklenen %d öteleme/indirgeme çeliþkisi\n"
|
||||||
|
msgstr[1] "beklenen %d öteleme/indirgeme çeliþkisi\n"
|
||||||
|
|
||||||
#: src/conflicts.c:575 src/conflicts.c:696
|
#: src/conflicts.c:457 src/conflicts.c:534
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||||
msgstr " %-4s\t[indirgeme kural %d (%s)'i kullanýyor]\n"
|
msgstr " %-4s\t[indirgeme kural %d (%s)'i kullanýyor]\n"
|
||||||
|
|
||||||
#: src/conflicts.c:587 src/print.c:156
|
#: src/conflicts.c:461 src/print.c:154
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
" $default\treduce using rule %d (%s)\n"
|
" $default\treduce using rule %d (%s)\n"
|
||||||
@@ -113,22 +115,22 @@ msgstr ""
|
|||||||
" $default\tindirgeme kural %d (%s)'i kullanýyor\n"
|
" $default\tindirgeme kural %d (%s)'i kullanýyor\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
#: src/conflicts.c:676 src/conflicts.c:690
|
#: src/conflicts.c:515 src/conflicts.c:528
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||||
msgstr " %-4s\tindirgeme kural %d (%s)'i kullanýyor\n"
|
msgstr " %-4s\tindirgeme kural %d (%s)'i kullanýyor\n"
|
||||||
|
|
||||||
#: src/conflicts.c:716
|
#: src/conflicts.c:544
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $default\treduce using rule %d (%s)\n"
|
msgid " $default\treduce using rule %d (%s)\n"
|
||||||
msgstr " $default\tindirgeme kural %d (%s)'i kullanýyor\n"
|
msgstr " $default\tindirgeme kural %d (%s)'i kullanýyor\n"
|
||||||
|
|
||||||
#: src/files.c:143
|
#: src/files.c:144
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot open file `%s'"
|
msgid "cannot open file `%s'"
|
||||||
msgstr "`%s' dosyasý açýlamadý"
|
msgstr "`%s' dosyasý açýlamadý"
|
||||||
|
|
||||||
#: src/files.c:162
|
#: src/files.c:163
|
||||||
msgid "cannot close file"
|
msgid "cannot close file"
|
||||||
msgstr "dosya kapatýlamýyor"
|
msgstr "dosya kapatýlamýyor"
|
||||||
|
|
||||||
@@ -148,10 +150,10 @@ msgid ""
|
|||||||
"If a long option shows an argument as mandatory, then it is mandatory\n"
|
"If a long option shows an argument as mandatory, then it is mandatory\n"
|
||||||
"for the equivalent short option also. Similarly for optional arguments.\n"
|
"for the equivalent short option also. Similarly for optional arguments.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Eðer bir uzun seçenek bir baðýmsýz deðiþkeni zorunlu gibi gösterilirse odenk "
|
"Eðer bir uzun seçenek bir argümaný gerektirirse, bu gereklilik, denk olan "
|
||||||
"kýsa\n"
|
"kýsa\n"
|
||||||
"seçenek için dahi zorunludur. Seçimli baðýmsýz deðiþkenler için "
|
"seçenek için de geçerlidir. Bu durum, seçimli argümanlar için de "
|
||||||
"benzerþekildedir.\n"
|
"geçerlidir.\n"
|
||||||
|
|
||||||
#: src/getargs.c:98
|
#: src/getargs.c:98
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -160,6 +162,7 @@ msgid ""
|
|||||||
" -V, --version output version information and exit\n"
|
" -V, --version output version information and exit\n"
|
||||||
" -y, --yacc emulate POSIX yacc\n"
|
" -y, --yacc emulate POSIX yacc\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Çalýþma kipleri:\n"
|
||||||
" -h, --help bu yardýmý göster ve çýk\n"
|
" -h, --help bu yardýmý göster ve çýk\n"
|
||||||
" -V, --version sürüm bilgisini ver ve çýk\n"
|
" -V, --version sürüm bilgisini ver ve çýk\n"
|
||||||
" -y, --yacc POSIX yacc öykünmesi\n"
|
" -y, --yacc POSIX yacc öykünmesi\n"
|
||||||
@@ -185,7 +188,6 @@ msgstr ""
|
|||||||
" -k, --token-table andaç isimlerinin bir tablosunu içer\n"
|
" -k, --token-table andaç isimlerinin bir tablosunu içer\n"
|
||||||
|
|
||||||
#: src/getargs.c:117
|
#: src/getargs.c:117
|
||||||
#, fuzzy
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Output:\n"
|
"Output:\n"
|
||||||
" -d, --defines also produce a header file\n"
|
" -d, --defines also produce a header file\n"
|
||||||
@@ -198,13 +200,15 @@ msgstr ""
|
|||||||
"Çýktý:\n"
|
"Çýktý:\n"
|
||||||
" -d, --defines bir baþlýk dosyasý da üretir\n"
|
" -d, --defines bir baþlýk dosyasý da üretir\n"
|
||||||
" -v, --verbose otomatýn bir açýklamasýný da üretir\n"
|
" -v, --verbose otomatýn bir açýklamasýný da üretir\n"
|
||||||
" -b, --file-prefix=ÖNEK çýktý dosyalarý için bir ÖNEK belirtir\n"
|
" -b, --file-prefix=PREFIX çýktý dosyalarý için bir ÖNEK belirtir\n"
|
||||||
" -o, --output-file=DOSYA çýktýyý DOSYAYA býrakýr\n"
|
" -o, --output=FILE çýktýyý DOSYAYA býrakýr\n"
|
||||||
" -g, --graph otomatýn bir VCG grafik açýklamasýný da üretir\n"
|
" -g, --graph otomatýn bir VCG grafik açýklamasýný da üretir\n"
|
||||||
|
|
||||||
#: src/getargs.c:127
|
#: src/getargs.c:127
|
||||||
msgid "Report bugs to <[email protected]>.\n"
|
msgid "Report bugs to <[email protected]>.\n"
|
||||||
msgstr "Hatalarý <[email protected]>'a bildir.\n"
|
msgstr ""
|
||||||
|
"Hatalarý <[email protected]>'a,\n"
|
||||||
|
"çeviri hatalarýný <[email protected]>'e bildir.\n"
|
||||||
|
|
||||||
#. Some efforts were made to ease the translators' task, please
|
#. Some efforts were made to ease the translators' task, please
|
||||||
#. continue.
|
#. continue.
|
||||||
@@ -242,14 +246,14 @@ msgstr "Daha fazla bilgi i
|
|||||||
#: src/getargs.c:246
|
#: src/getargs.c:246
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s: no grammar file given\n"
|
msgid "%s: no grammar file given\n"
|
||||||
msgstr "%s: verilen gramer dosyasý yok\n"
|
msgstr "%s: gramer dosyasý verilmemiþ\n"
|
||||||
|
|
||||||
#: src/getargs.c:250
|
#: src/getargs.c:250
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s: extra arguments ignored after `%s'\n"
|
msgid "%s: extra arguments ignored after `%s'\n"
|
||||||
msgstr "%s: '%s' den sonraki ek baðýmsýz deðiþkenler yoksayýldý\n"
|
msgstr "%s: '%s' den sonraki argümanlar yoksayýldý\n"
|
||||||
|
|
||||||
#: src/lalr.c:293
|
#: src/lalr.c:256
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "too many gotos (max %d)"
|
msgid "too many gotos (max %d)"
|
||||||
msgstr "gotos çok fazla (en fazla %d)"
|
msgstr "gotos çok fazla (en fazla %d)"
|
||||||
@@ -287,7 +291,7 @@ msgstr "bilinmeyen ka
|
|||||||
|
|
||||||
#: src/lex.c:342
|
#: src/lex.c:342
|
||||||
msgid "unterminated type name at end of file"
|
msgid "unterminated type name at end of file"
|
||||||
msgstr "dosyanýn sonunda sonlandýrýlmamýþ tip adý"
|
msgstr "dosya sonunda sonlandýrýlmamýþ tip adý"
|
||||||
|
|
||||||
#: src/lex.c:345
|
#: src/lex.c:345
|
||||||
msgid "unterminated type name"
|
msgid "unterminated type name"
|
||||||
@@ -295,103 +299,98 @@ msgstr "sonland
|
|||||||
|
|
||||||
#: src/lex.c:438
|
#: src/lex.c:438
|
||||||
msgid "use \"...\" for multi-character literal tokens"
|
msgid "use \"...\" for multi-character literal tokens"
|
||||||
msgstr "cok-karakterli yazýn andaçlarý için \"...\" kullan"
|
msgstr "çok-karakterli yazýn andaçlarý için \"...\" kullan"
|
||||||
|
|
||||||
#: src/lex.c:667
|
#: src/lex.c:667
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "`%s' supports no argument: %s"
|
msgid "`%s' supports no argument: %s"
|
||||||
msgstr ""
|
msgstr "`%s' argüman %s'i desteklemez"
|
||||||
|
|
||||||
#: src/lex.c:683
|
#: src/lex.c:683
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "`%s' requires an argument"
|
|
||||||
msgstr "%s: `%s' seçeneði bir argümanla kullanýlýr\n"
|
|
||||||
|
|
||||||
#: src/main.c:134
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s: internal error: %s\n"
|
msgid "`%s' requires an argument"
|
||||||
msgstr "%s: iç hata: %s\n"
|
msgstr "`%s' bir argüman gerektirir"
|
||||||
|
|
||||||
#: src/output.c:979
|
#: src/output.c:951
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "maximum table size (%d) exceeded"
|
msgid "maximum table size (%d) exceeded"
|
||||||
msgstr "en büyük tablo uzunluðu (%d) aþýldý"
|
msgstr "en büyük tablo uzunluðu (%d) aþýldý"
|
||||||
|
|
||||||
#: src/print.c:38
|
#: src/print.c:39
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " type %d is %s\n"
|
msgid " type %d is %s\n"
|
||||||
msgstr " tip %d %s'dir\n"
|
msgstr " tip %d %s'dir\n"
|
||||||
|
|
||||||
#: src/print.c:78
|
#: src/print.c:88
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " (rule %d)"
|
msgid " (rule %d)"
|
||||||
msgstr " (kural %d)"
|
msgstr " (kural %d)"
|
||||||
|
|
||||||
#: src/print.c:98
|
#: src/print.c:108
|
||||||
msgid " $default\taccept\n"
|
msgid " $default\taccept\n"
|
||||||
msgstr " $default\tonayla\n"
|
msgstr " $default\tonayla\n"
|
||||||
|
|
||||||
#: src/print.c:100
|
#: src/print.c:110
|
||||||
msgid " NO ACTIONS\n"
|
msgid " NO ACTIONS\n"
|
||||||
msgstr " EYLEMLER YOK\n"
|
msgstr " EYLEM YOK\n"
|
||||||
|
|
||||||
#: src/print.c:120
|
#: src/print.c:124
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " $ \tgo to state %d\n"
|
msgid " $ \tgo to state %d\n"
|
||||||
msgstr " $ \tdurum %d'ye git\n"
|
msgstr " $ \tdurum %d'ye git\n"
|
||||||
|
|
||||||
#: src/print.c:123
|
#: src/print.c:127
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tshift, and go to state %d\n"
|
msgid " %-4s\tshift, and go to state %d\n"
|
||||||
msgstr " %-4s\tötele, ve durum %d'ye git\n"
|
msgstr " %-4s\tötele, ve durum %d'ye git\n"
|
||||||
|
|
||||||
#: src/print.c:144
|
#: src/print.c:142
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\terror (nonassociative)\n"
|
msgid " %-4s\terror (nonassociative)\n"
|
||||||
msgstr " %-4s\thata (birleþmeli deðil)\n"
|
msgstr " %-4s\thata (birleþmeli deðil)\n"
|
||||||
|
|
||||||
#: src/print.c:173
|
#: src/print.c:169
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid " %-4s\tgo to state %d\n"
|
msgid " %-4s\tgo to state %d\n"
|
||||||
msgstr " %-4s\tdurum %d'ye git\n"
|
msgstr " %-4s\tdurum %d'ye git\n"
|
||||||
|
|
||||||
#: src/print.c:185
|
#: src/print.c:180
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "state %d"
|
msgid "state %d"
|
||||||
msgstr "durum %d"
|
msgstr "durum %d"
|
||||||
|
|
||||||
#. rule # : LHS -> RHS
|
#. rule # : LHS -> RHS
|
||||||
#: src/print.c:215
|
#: src/print.c:211
|
||||||
msgid "Grammar"
|
msgid "Grammar"
|
||||||
msgstr "Gramer"
|
msgstr "Gramer"
|
||||||
|
|
||||||
#: src/print.c:216
|
#: src/print.c:212
|
||||||
msgid "Number, Line, Rule"
|
msgid "Number, Line, Rule"
|
||||||
msgstr ""
|
msgstr "Sayý, Satýr, Kural"
|
||||||
|
|
||||||
#: src/print.c:221
|
#: src/print.c:217
|
||||||
#, fuzzy, c-format
|
#, c-format
|
||||||
msgid " %3d %3d %s ->"
|
msgid " %3d %3d %s ->"
|
||||||
msgstr "kural %-4d %s ->"
|
msgstr " %3d %3d %s ->"
|
||||||
|
|
||||||
#: src/print.c:228
|
#: src/print.c:224
|
||||||
msgid "empty"
|
msgid "empty"
|
||||||
msgstr "boþ"
|
msgstr "boþ"
|
||||||
|
|
||||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||||
#: src/print.c:233
|
#: src/print.c:231
|
||||||
msgid "Terminals, with rules where they appear"
|
msgid "Terminals, with rules where they appear"
|
||||||
msgstr "Sabit simgeler, kurallarýnýn bulunduklarý yerde"
|
msgstr "Sabit simgeler, kurallarýnýn bulunduklarý yerde"
|
||||||
|
|
||||||
#: src/print.c:257
|
#: src/print.c:256
|
||||||
msgid "Nonterminals, with rules where they appear"
|
msgid "Nonterminals, with rules where they appear"
|
||||||
msgstr "Deðiþken simgeler, kurallarýnýn bulunduklarý yerde"
|
msgstr "Deðiþken simgeler, kurallarýnýn bulunduklarý yerde"
|
||||||
|
|
||||||
#: src/print.c:283
|
#: src/print.c:282
|
||||||
msgid " on left:"
|
msgid " on left:"
|
||||||
msgstr " solda:"
|
msgstr " solda:"
|
||||||
|
|
||||||
#: src/print.c:298
|
#: src/print.c:297
|
||||||
msgid " on right:"
|
msgid " on right:"
|
||||||
msgstr " saðda:"
|
msgstr " saðda:"
|
||||||
|
|
||||||
@@ -400,7 +399,7 @@ msgstr " sa
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:165
|
#: src/print_graph.c:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%-4s\terror (nonassociative)"
|
msgid "%-4s\terror (nonassociative)"
|
||||||
msgstr "%-4s\thata (birleþmeli deðil)"
|
msgstr "%-4s\thata (birleþmeli deðil)"
|
||||||
@@ -409,7 +408,7 @@ msgstr "%-4s\thata (birle
|
|||||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||||
#. obstack_sgrow (node_obstack, "\n");
|
#. obstack_sgrow (node_obstack, "\n");
|
||||||
#.
|
#.
|
||||||
#: src/print_graph.c:180
|
#: src/print_graph.c:161
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "$default\treduce using rule %d (%s)"
|
msgid "$default\treduce using rule %d (%s)"
|
||||||
msgstr "$default\tindirgeme kural %d (%s)'i kullanýyor"
|
msgstr "$default\tindirgeme kural %d (%s)'i kullanýyor"
|
||||||
@@ -448,7 +447,7 @@ msgstr "`%s''in $$'
|
|||||||
#: src/reader.c:393
|
#: src/reader.c:393
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "$%d of `%s' has no declared type"
|
msgid "$%d of `%s' has no declared type"
|
||||||
msgstr "`%d''in $%s'i bildirilmiþ tip deðil"
|
msgstr "`%2$s''in %1$d'i bildirilmiþ tip deðil"
|
||||||
|
|
||||||
#: src/reader.c:447
|
#: src/reader.c:447
|
||||||
msgid "unterminated `%{' definition"
|
msgid "unterminated `%{' definition"
|
||||||
@@ -526,7 +525,7 @@ msgstr "e
|
|||||||
#: src/reader.c:810
|
#: src/reader.c:810
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "argument of %%expect is not an integer"
|
msgid "argument of %%expect is not an integer"
|
||||||
msgstr "%%expect'in baðýmsýz deðiþkeni bir tamsayý deðildir"
|
msgstr "%%expect'in argümaný bir tamsayý deðildir"
|
||||||
|
|
||||||
#: src/reader.c:856
|
#: src/reader.c:856
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -536,7 +535,7 @@ msgstr "%s
|
|||||||
#: src/reader.c:878
|
#: src/reader.c:878
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "expected string constant instead of %s"
|
msgid "expected string constant instead of %s"
|
||||||
msgstr "%s'in yerine beklenen dizgi sabitidir"
|
msgstr "%s'in yerine sabit dizge beklendi"
|
||||||
|
|
||||||
#: src/reader.c:1026
|
#: src/reader.c:1026
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -559,7 +558,7 @@ msgstr "sonland
|
|||||||
|
|
||||||
#: src/reader.c:1357
|
#: src/reader.c:1357
|
||||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||||
msgstr "kötü-biçimli kural: baþlangýç simgesini takip eden kolon(:) yok"
|
msgstr "kötü-biçemli kural: baþlangýç simgesini takip eden \":\" yok"
|
||||||
|
|
||||||
#: src/reader.c:1364
|
#: src/reader.c:1364
|
||||||
msgid "grammar starts with vertical bar"
|
msgid "grammar starts with vertical bar"
|
||||||
@@ -611,8 +610,7 @@ msgstr "girdi grameri i
|
|||||||
#, c-format
|
#, c-format
|
||||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"simge %s kullanýldý, fakat bir andaç gibi tanýmlanmadý ve kurallara "
|
"simge %s kullanýldý, fakat bir andaç olarak tanýmlanmadý ve kurallarý yok"
|
||||||
"sahipdeðil"
|
|
||||||
|
|
||||||
#: src/reader.c:1743
|
#: src/reader.c:1743
|
||||||
#, c-format
|
#, c-format
|
||||||
@@ -639,72 +637,44 @@ msgstr "ba
|
|||||||
msgid "the start symbol %s is a token"
|
msgid "the start symbol %s is a token"
|
||||||
msgstr "baþlangýç simgesi %s bir andaçtýr"
|
msgstr "baþlangýç simgesi %s bir andaçtýr"
|
||||||
|
|
||||||
#: src/reduce.c:400
|
#: src/reduce.c:409
|
||||||
msgid "Useless nonterminals:"
|
msgid "Useless nonterminals:"
|
||||||
msgstr "Yararsýz kurallar:"
|
msgstr "Yararsýz kurallar:"
|
||||||
|
|
||||||
#: src/reduce.c:414
|
#: src/reduce.c:422
|
||||||
msgid "Terminals which are not used:"
|
msgid "Terminals which are not used:"
|
||||||
msgstr "Kullanýlmayan sabit simgeler:"
|
msgstr "Kullanýlmayan sabit simgeler:"
|
||||||
|
|
||||||
#: src/reduce.c:425
|
#: src/reduce.c:433
|
||||||
msgid "Useless rules:"
|
msgid "Useless rules:"
|
||||||
msgstr "Yararsýz kurallar:"
|
msgstr "Yararsýz kurallar:"
|
||||||
|
|
||||||
#: src/reduce.c:451
|
#: src/reduce.c:503
|
||||||
msgid ""
|
|
||||||
"Variables\n"
|
|
||||||
"---------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Deðiþkenler\n"
|
|
||||||
"-----------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:452
|
|
||||||
msgid "Value Sprec Sassoc Tag\n"
|
|
||||||
msgstr "Deðer Söncel Sbirleþ Etiket\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:456
|
|
||||||
msgid ""
|
|
||||||
"Rules\n"
|
|
||||||
"-----\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Kurallar\n"
|
|
||||||
"--------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:470
|
|
||||||
msgid ""
|
|
||||||
"Rules interpreted\n"
|
|
||||||
"-----------------\n"
|
|
||||||
"\n"
|
|
||||||
msgstr ""
|
|
||||||
"Kurallar yorumlandý\n"
|
|
||||||
"-------------------\n"
|
|
||||||
"\n"
|
|
||||||
|
|
||||||
#: src/reduce.c:491
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d rules never reduced\n"
|
msgid "%d rule never reduced\n"
|
||||||
msgstr "%d kural asla indirgenmedi\n"
|
msgid_plural "%d rules never reduced\n"
|
||||||
|
msgstr[0] "%d kural asla indirgenmedi\n"
|
||||||
|
msgstr[1] "%d kural asla indirgenmedi\n"
|
||||||
|
|
||||||
#: src/reduce.c:497
|
#: src/reduce.c:511
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless nonterminal%s"
|
msgid "%d useless nonterminal"
|
||||||
msgstr "%d yararsýz deðiþken simge%s"
|
msgid_plural "%d useless nonterminals"
|
||||||
|
msgstr[0] "%d yararsýz deðiþken simge"
|
||||||
|
msgstr[1] "%d yararsýz deðiþken simge%s"
|
||||||
|
|
||||||
#: src/reduce.c:502
|
#: src/reduce.c:517
|
||||||
msgid " and "
|
msgid " and "
|
||||||
msgstr " ve "
|
msgstr " ve "
|
||||||
|
|
||||||
#: src/reduce.c:506
|
#: src/reduce.c:520
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d useless rule%s"
|
msgid "%d useless rule"
|
||||||
msgstr "%d yararsýz kural%s"
|
msgid_plural "%d useless rules"
|
||||||
|
msgstr[0] "%d yararsýz kural"
|
||||||
|
msgstr[1] "%d yararsýz kural%s"
|
||||||
|
|
||||||
#: src/reduce.c:536
|
#: src/reduce.c:551
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Start symbol %s does not derive any sentence"
|
msgid "Start symbol %s does not derive any sentence"
|
||||||
msgstr "Baþlangýç simgesi %s herhangi bir cümleden türemez"
|
msgstr "Baþlangýç simgesi %s herhangi bir cümleden türemez"
|
||||||
@@ -788,34 +758,10 @@ msgstr "bellek t
|
|||||||
#. MARK). A British English Unicode locale should instead
|
#. MARK). A British English Unicode locale should instead
|
||||||
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
#. translate these to U+2018 (LEFT SINGLE QUOTATION MARK) and
|
||||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||||
#: lib/quotearg.c:268
|
#: lib/quotearg.c:274
|
||||||
msgid "`"
|
msgid "`"
|
||||||
msgstr "`"
|
msgstr "`"
|
||||||
|
|
||||||
#: lib/quotearg.c:269
|
#: lib/quotearg.c:275
|
||||||
msgid "'"
|
msgid "'"
|
||||||
msgstr "'"
|
msgstr "'"
|
||||||
|
|
||||||
#~ msgid " 1 shift/reduce conflict"
|
|
||||||
#~ msgstr " 1 öteleme/indirgeme çeliþkisi"
|
|
||||||
|
|
||||||
#~ msgid " 1 reduce/reduce conflict"
|
|
||||||
#~ msgstr " 1 indirgeme/indirgeme çeliþkisi"
|
|
||||||
|
|
||||||
#~ msgid "%s contains"
|
|
||||||
#~ msgstr "%s içerir"
|
|
||||||
|
|
||||||
#~ msgid "DERIVES"
|
|
||||||
#~ msgstr "TÜRETÝLENLER"
|
|
||||||
|
|
||||||
#~ msgid "%s derives"
|
|
||||||
#~ msgstr "%s türetildi"
|
|
||||||
|
|
||||||
#~ msgid "Entering set_nullable"
|
|
||||||
#~ msgstr "set_nullable'a girildi"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "reduced %s defines %d terminal%s, %d nonterminal%s, and %d production%s.\n"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "indirgenen %s tanýmlanan %d sabit simge%s, %d deðiþken simge%s,ve %d "
|
|
||||||
#~ "üretilen%s.\n"
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
#include "closure.h"
|
#include "closure.h"
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
|
#include "reduce.h"
|
||||||
|
|
||||||
int nstates;
|
int nstates;
|
||||||
int final_state;
|
int final_state;
|
||||||
@@ -63,11 +63,13 @@ static void
|
|||||||
allocate_itemsets (void)
|
allocate_itemsets (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int count;
|
|
||||||
short *symbol_count = NULL;
|
|
||||||
|
|
||||||
count = 0;
|
/* Count the number of occurrences of all the symbols in RITEMS.
|
||||||
symbol_count = XCALLOC (short, nsyms);
|
Note that useless productions (hence useless nonterminals) are
|
||||||
|
browsed too, hence we need to allocate room for _all_ the
|
||||||
|
symbols. */
|
||||||
|
int count = 0;
|
||||||
|
short *symbol_count = XCALLOC (short, nsyms + nuseless_nonterminals);
|
||||||
|
|
||||||
for (i = 0; ritem[i]; ++i)
|
for (i = 0; ritem[i]; ++i)
|
||||||
if (ritem[i] > 0)
|
if (ritem[i] > 0)
|
||||||
@@ -93,7 +95,7 @@ allocate_itemsets (void)
|
|||||||
count += symbol_count[i];
|
count += symbol_count[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
shift_symbol = symbol_count;
|
free (symbol_count);
|
||||||
kernel_size = XCALLOC (int, nsyms);
|
kernel_size = XCALLOC (int, nsyms);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,13 +114,13 @@ allocate_storage (void)
|
|||||||
static void
|
static void
|
||||||
free_storage (void)
|
free_storage (void)
|
||||||
{
|
{
|
||||||
XFREE (shift_symbol);
|
free (shift_symbol);
|
||||||
XFREE (redset);
|
free (redset);
|
||||||
XFREE (shiftset);
|
free (shiftset);
|
||||||
XFREE (kernel_base);
|
free (kernel_base);
|
||||||
XFREE (kernel_size);
|
free (kernel_size);
|
||||||
XFREE (kernel_items);
|
XFREE (kernel_items);
|
||||||
XFREE (state_table);
|
free (state_table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -139,7 +141,6 @@ static void
|
|||||||
new_itemsets (void)
|
new_itemsets (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int shiftcount;
|
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
fprintf (stderr, "Entering new_itemsets, state = %d\n",
|
fprintf (stderr, "Entering new_itemsets, state = %d\n",
|
||||||
@@ -148,25 +149,24 @@ new_itemsets (void)
|
|||||||
for (i = 0; i < nsyms; i++)
|
for (i = 0; i < nsyms; i++)
|
||||||
kernel_size[i] = 0;
|
kernel_size[i] = 0;
|
||||||
|
|
||||||
shiftcount = 0;
|
shift_symbol = XCALLOC (short, nsyms);
|
||||||
|
nshifts = 0;
|
||||||
|
|
||||||
for (i = 0; i < itemsetsize; ++i)
|
for (i = 0; i < nitemset; ++i)
|
||||||
{
|
{
|
||||||
int symbol = ritem[itemset[i]];
|
int symbol = ritem[itemset[i]];
|
||||||
if (symbol > 0)
|
if (symbol > 0)
|
||||||
{
|
{
|
||||||
if (!kernel_size[symbol])
|
if (!kernel_size[symbol])
|
||||||
{
|
{
|
||||||
shift_symbol[shiftcount] = symbol;
|
shift_symbol[nshifts] = symbol;
|
||||||
shiftcount++;
|
nshifts++;
|
||||||
}
|
}
|
||||||
|
|
||||||
kernel_base[symbol][kernel_size[symbol]] = itemset[i] + 1;
|
kernel_base[symbol][kernel_size[symbol]] = itemset[i] + 1;
|
||||||
kernel_size[symbol]++;
|
kernel_size[symbol]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nshifts = shiftcount;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -311,13 +311,16 @@ new_states (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------.
|
||||||
|
| Save the NSHIFTS of SHIFTSET into the current linked list. |
|
||||||
|
`------------------------------------------------------------*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
save_shifts (void)
|
save_shifts (void)
|
||||||
{
|
{
|
||||||
shifts *p = SHIFTS_ALLOC (nshifts);
|
shifts *p = shifts_new (nshifts);
|
||||||
|
|
||||||
p->number = this_state->number;
|
p->number = this_state->number;
|
||||||
p->nshifts = nshifts;
|
|
||||||
|
|
||||||
shortcpy (p->shifts, shiftset, nshifts);
|
shortcpy (p->shifts, shiftset, nshifts);
|
||||||
|
|
||||||
@@ -348,9 +351,8 @@ insert_start_shift (void)
|
|||||||
last_state = statep;
|
last_state = statep;
|
||||||
|
|
||||||
/* Make a shift from this state to (what will be) the final state. */
|
/* Make a shift from this state to (what will be) the final state. */
|
||||||
sp = SHIFTS_ALLOC (1);
|
sp = shifts_new (1);
|
||||||
sp->number = nstates++;
|
sp->number = nstates++;
|
||||||
sp->nshifts = 1;
|
|
||||||
sp->shifts[0] = nstates;
|
sp->shifts[0] = nstates;
|
||||||
|
|
||||||
last_shift->next = sp;
|
last_shift->next = sp;
|
||||||
@@ -369,131 +371,18 @@ insert_start_shift (void)
|
|||||||
static void
|
static void
|
||||||
augment_automaton (void)
|
augment_automaton (void)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
int k;
|
|
||||||
core *statep;
|
core *statep;
|
||||||
shifts *sp;
|
shifts *sp;
|
||||||
shifts *sp2;
|
|
||||||
shifts *sp1 = NULL;
|
shifts *sp1 = NULL;
|
||||||
|
|
||||||
sp = first_shift;
|
sp = first_shift;
|
||||||
|
|
||||||
if (sp)
|
if (!sp->nshifts)
|
||||||
{
|
{
|
||||||
if (sp->number == 0)
|
/* There are no shifts for any state. Make one shift, from the
|
||||||
{
|
initial state to the next-to-final state. */
|
||||||
k = sp->nshifts;
|
|
||||||
statep = first_state->next;
|
|
||||||
|
|
||||||
/* The states reached by shifts from first_state are numbered 1...K.
|
sp = shifts_new (1);
|
||||||
Look for one reached by start_symbol. */
|
|
||||||
while (statep->accessing_symbol < start_symbol
|
|
||||||
&& statep->number < k)
|
|
||||||
statep = statep->next;
|
|
||||||
|
|
||||||
if (statep->accessing_symbol == start_symbol)
|
|
||||||
{
|
|
||||||
/* We already have a next-to-final state.
|
|
||||||
Make sure it has a shift to what will be the final state. */
|
|
||||||
k = statep->number;
|
|
||||||
|
|
||||||
while (sp && sp->number < k)
|
|
||||||
{
|
|
||||||
sp1 = sp;
|
|
||||||
sp = sp->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sp && sp->number == k)
|
|
||||||
{
|
|
||||||
sp2 = SHIFTS_ALLOC (sp->nshifts + 1);
|
|
||||||
sp2->number = k;
|
|
||||||
sp2->nshifts = sp->nshifts + 1;
|
|
||||||
sp2->shifts[0] = nstates;
|
|
||||||
for (i = sp->nshifts; i > 0; i--)
|
|
||||||
sp2->shifts[i] = sp->shifts[i - 1];
|
|
||||||
|
|
||||||
/* Patch sp2 into the chain of shifts in place of sp,
|
|
||||||
following sp1. */
|
|
||||||
sp2->next = sp->next;
|
|
||||||
sp1->next = sp2;
|
|
||||||
if (sp == last_shift)
|
|
||||||
last_shift = sp2;
|
|
||||||
XFREE (sp);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
sp2 = SHIFTS_ALLOC (1);
|
|
||||||
sp2->number = k;
|
|
||||||
sp2->nshifts = 1;
|
|
||||||
sp2->shifts[0] = nstates;
|
|
||||||
|
|
||||||
/* Patch sp2 into the chain of shifts between sp1 and sp. */
|
|
||||||
sp2->next = sp;
|
|
||||||
sp1->next = sp2;
|
|
||||||
if (sp == 0)
|
|
||||||
last_shift = sp2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* There is no next-to-final state as yet. */
|
|
||||||
/* Add one more shift in first_shift,
|
|
||||||
going to the next-to-final state (yet to be made). */
|
|
||||||
sp = first_shift;
|
|
||||||
|
|
||||||
sp2 = SHIFTS_ALLOC (sp->nshifts + 1);
|
|
||||||
sp2->nshifts = sp->nshifts + 1;
|
|
||||||
|
|
||||||
/* Stick this shift into the vector at the proper place. */
|
|
||||||
statep = first_state->next;
|
|
||||||
for (k = 0, i = 0; i < sp->nshifts; k++, i++)
|
|
||||||
{
|
|
||||||
if (statep->accessing_symbol > start_symbol && i == k)
|
|
||||||
sp2->shifts[k++] = nstates;
|
|
||||||
sp2->shifts[k] = sp->shifts[i];
|
|
||||||
statep = statep->next;
|
|
||||||
}
|
|
||||||
if (i == k)
|
|
||||||
sp2->shifts[k++] = nstates;
|
|
||||||
|
|
||||||
/* Patch sp2 into the chain of shifts
|
|
||||||
in place of sp, at the beginning. */
|
|
||||||
sp2->next = sp->next;
|
|
||||||
first_shift = sp2;
|
|
||||||
if (last_shift == sp)
|
|
||||||
last_shift = sp2;
|
|
||||||
|
|
||||||
XFREE (sp);
|
|
||||||
|
|
||||||
/* Create the next-to-final state, with shift to
|
|
||||||
what will be the final state. */
|
|
||||||
insert_start_shift ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* The initial state didn't even have any shifts.
|
|
||||||
Give it one shift, to the next-to-final state. */
|
|
||||||
sp = SHIFTS_ALLOC (1);
|
|
||||||
sp->nshifts = 1;
|
|
||||||
sp->shifts[0] = nstates;
|
|
||||||
|
|
||||||
/* Patch sp into the chain of shifts at the beginning. */
|
|
||||||
sp->next = first_shift;
|
|
||||||
first_shift = sp;
|
|
||||||
|
|
||||||
/* Create the next-to-final state, with shift to
|
|
||||||
what will be the final state. */
|
|
||||||
insert_start_shift ();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* There are no shifts for any state.
|
|
||||||
Make one shift, from the initial state to the next-to-final state. */
|
|
||||||
|
|
||||||
sp = SHIFTS_ALLOC (1);
|
|
||||||
sp->nshifts = 1;
|
|
||||||
sp->shifts[0] = nstates;
|
sp->shifts[0] = nstates;
|
||||||
|
|
||||||
/* Initialize the chain of shifts with sp. */
|
/* Initialize the chain of shifts with sp. */
|
||||||
@@ -504,6 +393,109 @@ augment_automaton (void)
|
|||||||
what will be the final state. */
|
what will be the final state. */
|
||||||
insert_start_shift ();
|
insert_start_shift ();
|
||||||
}
|
}
|
||||||
|
else if (sp->number == 0)
|
||||||
|
{
|
||||||
|
statep = first_state->next;
|
||||||
|
|
||||||
|
/* The states reached by shifts from FIRST_STATE are numbered
|
||||||
|
1..(SP->NSHIFTS). Look for one reached by START_SYMBOL. */
|
||||||
|
while (statep->accessing_symbol < start_symbol
|
||||||
|
&& statep->number < sp->nshifts)
|
||||||
|
statep = statep->next;
|
||||||
|
|
||||||
|
if (statep->accessing_symbol == start_symbol)
|
||||||
|
{
|
||||||
|
/* We already have a next-to-final state.
|
||||||
|
Make sure it has a shift to what will be the final state. */
|
||||||
|
while (sp && sp->number < statep->number)
|
||||||
|
{
|
||||||
|
sp1 = sp;
|
||||||
|
sp = sp->next;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sp && sp->number == statep->number)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
shifts *sp2 = shifts_new (sp->nshifts + 1);
|
||||||
|
sp2->number = statep->number;
|
||||||
|
sp2->shifts[0] = nstates;
|
||||||
|
for (i = sp->nshifts; i > 0; i--)
|
||||||
|
sp2->shifts[i] = sp->shifts[i - 1];
|
||||||
|
|
||||||
|
/* Patch sp2 into the chain of shifts in place of sp,
|
||||||
|
following sp1. */
|
||||||
|
sp2->next = sp->next;
|
||||||
|
sp1->next = sp2;
|
||||||
|
if (sp == last_shift)
|
||||||
|
last_shift = sp2;
|
||||||
|
XFREE (sp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
shifts *sp2 = shifts_new (1);
|
||||||
|
sp2->number = statep->number;
|
||||||
|
sp2->shifts[0] = nstates;
|
||||||
|
|
||||||
|
/* Patch sp2 into the chain of shifts between sp1 and sp. */
|
||||||
|
sp2->next = sp;
|
||||||
|
sp1->next = sp2;
|
||||||
|
if (sp == 0)
|
||||||
|
last_shift = sp2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int i, k;
|
||||||
|
shifts *sp2;
|
||||||
|
|
||||||
|
/* There is no next-to-final state as yet. */
|
||||||
|
/* Add one more shift in first_shift,
|
||||||
|
going to the next-to-final state (yet to be made). */
|
||||||
|
sp = first_shift;
|
||||||
|
|
||||||
|
sp2 = shifts_new (sp->nshifts + 1);
|
||||||
|
|
||||||
|
/* Stick this shift into the vector at the proper place. */
|
||||||
|
statep = first_state->next;
|
||||||
|
for (k = 0, i = 0; i < sp->nshifts; k++, i++)
|
||||||
|
{
|
||||||
|
if (statep->accessing_symbol > start_symbol && i == k)
|
||||||
|
sp2->shifts[k++] = nstates;
|
||||||
|
sp2->shifts[k] = sp->shifts[i];
|
||||||
|
statep = statep->next;
|
||||||
|
}
|
||||||
|
if (i == k)
|
||||||
|
sp2->shifts[k++] = nstates;
|
||||||
|
|
||||||
|
/* Patch sp2 into the chain of shifts
|
||||||
|
in place of sp, at the beginning. */
|
||||||
|
sp2->next = sp->next;
|
||||||
|
first_shift = sp2;
|
||||||
|
if (last_shift == sp)
|
||||||
|
last_shift = sp2;
|
||||||
|
|
||||||
|
XFREE (sp);
|
||||||
|
|
||||||
|
/* Create the next-to-final state, with shift to
|
||||||
|
what will be the final state. */
|
||||||
|
insert_start_shift ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* The initial state didn't even have any shifts.
|
||||||
|
Give it one shift, to the next-to-final state. */
|
||||||
|
sp = shifts_new (1);
|
||||||
|
sp->shifts[0] = nstates;
|
||||||
|
|
||||||
|
/* Patch sp into the chain of shifts at the beginning. */
|
||||||
|
sp->next = first_shift;
|
||||||
|
first_shift = sp;
|
||||||
|
|
||||||
|
/* Create the next-to-final state, with shift to
|
||||||
|
what will be the final state. */
|
||||||
|
insert_start_shift ();
|
||||||
|
}
|
||||||
|
|
||||||
/* Make the final state--the one that follows a shift from the
|
/* Make the final state--the one that follows a shift from the
|
||||||
next-to-final state.
|
next-to-final state.
|
||||||
@@ -514,9 +506,8 @@ augment_automaton (void)
|
|||||||
last_state = statep;
|
last_state = statep;
|
||||||
|
|
||||||
/* Make the shift from the final state to the termination state. */
|
/* Make the shift from the final state to the termination state. */
|
||||||
sp = SHIFTS_ALLOC (1);
|
sp = shifts_new (1);
|
||||||
sp->number = nstates++;
|
sp->number = nstates++;
|
||||||
sp->nshifts = 1;
|
|
||||||
sp->shifts[0] = nstates;
|
sp->shifts[0] = nstates;
|
||||||
last_shift->next = sp;
|
last_shift->next = sp;
|
||||||
last_shift = sp;
|
last_shift = sp;
|
||||||
@@ -548,7 +539,7 @@ save_reductions (void)
|
|||||||
/* Find and count the active items that represent ends of rules. */
|
/* Find and count the active items that represent ends of rules. */
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
for (i = 0; i < itemsetsize; ++i)
|
for (i = 0; i < nitemset; ++i)
|
||||||
{
|
{
|
||||||
int item = ritem[itemset[i]];
|
int item = ritem[itemset[i]];
|
||||||
if (item < 0)
|
if (item < 0)
|
||||||
@@ -589,6 +580,9 @@ generate_states (void)
|
|||||||
|
|
||||||
while (this_state)
|
while (this_state)
|
||||||
{
|
{
|
||||||
|
if (trace_flag)
|
||||||
|
fprintf (stderr, "Processing state %d (reached by %s)\n",
|
||||||
|
this_state->number, tags[this_state->accessing_symbol]);
|
||||||
/* Set up ruleset and itemset for the transitions out of this
|
/* Set up ruleset and itemset for the transitions out of this
|
||||||
state. ruleset gets a 1 bit for each rule that could reduce
|
state. ruleset gets a 1 bit for each rule that could reduce
|
||||||
now. itemset gets a vector of all the items that could be
|
now. itemset gets a vector of all the items that could be
|
||||||
@@ -603,8 +597,7 @@ generate_states (void)
|
|||||||
|
|
||||||
/* create the shifts structures for the shifts to those states,
|
/* create the shifts structures for the shifts to those states,
|
||||||
now that the state numbers transitioning to are known */
|
now that the state numbers transitioning to are known */
|
||||||
if (nshifts > 0)
|
save_shifts ();
|
||||||
save_shifts ();
|
|
||||||
|
|
||||||
/* states are queued when they are created; process them all */
|
/* states are queued when they are created; process them all */
|
||||||
this_state = this_state->next;
|
this_state = this_state->next;
|
||||||
|
|||||||
+31
-6
@@ -1,19 +1,45 @@
|
|||||||
## Process this file with automake to produce Makefile.in -*-Makefile-*-
|
## Copyright 2001 Free Software Foundation, Inc.
|
||||||
AUTOMAKE_OPTIONS = 1.4 ../lib/ansi2knr
|
|
||||||
|
## This program is free software; you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
## the Free Software Foundation; either version 2 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
|
||||||
|
## This program is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU General Public License for more details.
|
||||||
|
|
||||||
|
## You should have received a copy of the GNU General Public License
|
||||||
|
## along with this program; if not, write to the Free Software
|
||||||
|
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
|
## 02111-1307 USA
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = ../lib/ansi2knr
|
||||||
|
|
||||||
DEFS = @DEFS@ \
|
DEFS = @DEFS@ \
|
||||||
-DBISON_SIMPLE=\"$(pkgdatadir)/bison.simple\" \
|
-DBISON_SIMPLE=\"$(pkgdatadir)/bison.simple\" \
|
||||||
-DBISON_HAIRY=\"$(pkgdatadir)/bison.hairy\" \
|
-DBISON_HAIRY=\"$(pkgdatadir)/bison.hairy\" \
|
||||||
-DLOCALEDIR=\"$(datadir)/locale\"
|
-DLOCALEDIR=\"$(datadir)/locale\"
|
||||||
|
|
||||||
INCLUDES = -I../intl -I$(top_srcdir)/lib -I..
|
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
|
||||||
LDADD = @INTLLIBS@ ../lib/libbison.a
|
|
||||||
|
# libintl.h in is build/intl, intl/libgettext.h in src/,
|
||||||
|
# config.h in build/.
|
||||||
|
INCLUDES = -I$(top_builddir)/intl \
|
||||||
|
-I$(top_builddir) \
|
||||||
|
-I$(top_srcdir)/intl \
|
||||||
|
-I$(top_srcdir)/lib
|
||||||
|
|
||||||
|
LDADD = $(INTLLIBS) ../lib/libbison.a
|
||||||
|
|
||||||
bin_PROGRAMS = bison
|
bin_PROGRAMS = bison
|
||||||
|
|
||||||
bison_SOURCES = LR0.c closure.c complain.c conflicts.c \
|
bison_SOURCES = LR0.c closure.c complain.c conflicts.c \
|
||||||
derives.c \
|
derives.c \
|
||||||
files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
|
files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
|
||||||
output.c \
|
output.h output.c \
|
||||||
|
state.h state.c \
|
||||||
print.c reader.c reduce.c symtab.c warshall.c vcg.c print_graph.c
|
print.c reader.c reduce.c symtab.c warshall.c vcg.c print_graph.c
|
||||||
|
|
||||||
EXTRA_bison_SOURCES = vmsgetargs.c
|
EXTRA_bison_SOURCES = vmsgetargs.c
|
||||||
@@ -21,7 +47,6 @@ EXTRA_bison_SOURCES = vmsgetargs.c
|
|||||||
noinst_HEADERS = LR0.h closure.h complain.h conflicts.h \
|
noinst_HEADERS = LR0.h closure.h complain.h conflicts.h \
|
||||||
derives.h \
|
derives.h \
|
||||||
files.h getargs.h gram.h lalr.h lex.h nullable.h \
|
files.h getargs.h gram.h lalr.h lex.h nullable.h \
|
||||||
output.h state.h \
|
|
||||||
print.h reader.h reduce.h symtab.h warshall.h system.h types.h \
|
print.h reader.h reduce.h symtab.h warshall.h system.h types.h \
|
||||||
vcg.h vcg_defaults.h print_graph.h
|
vcg.h vcg_defaults.h print_graph.h
|
||||||
|
|
||||||
|
|||||||
+26
-13
@@ -101,22 +101,33 @@ am__include = @am__include@
|
|||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
install_sh = @install_sh@
|
install_sh = @install_sh@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = 1.4 ../lib/ansi2knr
|
AUTOMAKE_OPTIONS = ../lib/ansi2knr
|
||||||
|
|
||||||
DEFS = @DEFS@ \
|
DEFS = @DEFS@ \
|
||||||
-DBISON_SIMPLE=\"$(pkgdatadir)/bison.simple\" \
|
-DBISON_SIMPLE=\"$(pkgdatadir)/bison.simple\" \
|
||||||
-DBISON_HAIRY=\"$(pkgdatadir)/bison.hairy\" \
|
-DBISON_HAIRY=\"$(pkgdatadir)/bison.hairy\" \
|
||||||
-DLOCALEDIR=\"$(datadir)/locale\"
|
-DLOCALEDIR=\"$(datadir)/locale\"
|
||||||
|
|
||||||
|
|
||||||
INCLUDES = -I../intl -I$(top_srcdir)/lib -I..
|
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
|
||||||
LDADD = @INTLLIBS@ ../lib/libbison.a
|
|
||||||
|
# libintl.h in is build/intl, intl/libgettext.h in src/,
|
||||||
|
# config.h in build/.
|
||||||
|
INCLUDES = -I$(top_builddir)/intl \
|
||||||
|
-I$(top_builddir) \
|
||||||
|
-I$(top_srcdir)/intl \
|
||||||
|
-I$(top_srcdir)/lib
|
||||||
|
|
||||||
|
|
||||||
|
LDADD = $(INTLLIBS) ../lib/libbison.a
|
||||||
|
|
||||||
bin_PROGRAMS = bison
|
bin_PROGRAMS = bison
|
||||||
|
|
||||||
bison_SOURCES = LR0.c closure.c complain.c conflicts.c \
|
bison_SOURCES = LR0.c closure.c complain.c conflicts.c \
|
||||||
derives.c \
|
derives.c \
|
||||||
files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
|
files.c getargs.c gram.c lalr.c lex.c main.c nullable.c \
|
||||||
output.c \
|
output.h output.c \
|
||||||
|
state.h state.c \
|
||||||
print.c reader.c reduce.c symtab.c warshall.c vcg.c print_graph.c
|
print.c reader.c reduce.c symtab.c warshall.c vcg.c print_graph.c
|
||||||
|
|
||||||
|
|
||||||
@@ -125,7 +136,6 @@ EXTRA_bison_SOURCES = vmsgetargs.c
|
|||||||
noinst_HEADERS = LR0.h closure.h complain.h conflicts.h \
|
noinst_HEADERS = LR0.h closure.h complain.h conflicts.h \
|
||||||
derives.h \
|
derives.h \
|
||||||
files.h getargs.h gram.h lalr.h lex.h nullable.h \
|
files.h getargs.h gram.h lalr.h lex.h nullable.h \
|
||||||
output.h state.h \
|
|
||||||
print.h reader.h reduce.h symtab.h warshall.h system.h types.h \
|
print.h reader.h reduce.h symtab.h warshall.h system.h types.h \
|
||||||
vcg.h vcg_defaults.h print_graph.h
|
vcg.h vcg_defaults.h print_graph.h
|
||||||
|
|
||||||
@@ -144,9 +154,10 @@ am_bison_OBJECTS = LR0$U.$(OBJEXT) closure$U.$(OBJEXT) \
|
|||||||
complain$U.$(OBJEXT) conflicts$U.$(OBJEXT) derives$U.$(OBJEXT) \
|
complain$U.$(OBJEXT) conflicts$U.$(OBJEXT) derives$U.$(OBJEXT) \
|
||||||
files$U.$(OBJEXT) getargs$U.$(OBJEXT) gram$U.$(OBJEXT) \
|
files$U.$(OBJEXT) getargs$U.$(OBJEXT) gram$U.$(OBJEXT) \
|
||||||
lalr$U.$(OBJEXT) lex$U.$(OBJEXT) main$U.$(OBJEXT) \
|
lalr$U.$(OBJEXT) lex$U.$(OBJEXT) main$U.$(OBJEXT) \
|
||||||
nullable$U.$(OBJEXT) output$U.$(OBJEXT) print$U.$(OBJEXT) \
|
nullable$U.$(OBJEXT) output$U.$(OBJEXT) state$U.$(OBJEXT) \
|
||||||
reader$U.$(OBJEXT) reduce$U.$(OBJEXT) symtab$U.$(OBJEXT) \
|
print$U.$(OBJEXT) reader$U.$(OBJEXT) reduce$U.$(OBJEXT) \
|
||||||
warshall$U.$(OBJEXT) vcg$U.$(OBJEXT) print_graph$U.$(OBJEXT)
|
symtab$U.$(OBJEXT) warshall$U.$(OBJEXT) vcg$U.$(OBJEXT) \
|
||||||
|
print_graph$U.$(OBJEXT)
|
||||||
bison_OBJECTS = $(am_bison_OBJECTS)
|
bison_OBJECTS = $(am_bison_OBJECTS)
|
||||||
bison_LDADD = $(LDADD)
|
bison_LDADD = $(LDADD)
|
||||||
bison_DEPENDENCIES = ../lib/libbison.a
|
bison_DEPENDENCIES = ../lib/libbison.a
|
||||||
@@ -164,14 +175,13 @@ depcomp = $(SHELL) $(top_srcdir)/config/depcomp
|
|||||||
@AMDEP_TRUE@ $(DEPDIR)/main$U.Po $(DEPDIR)/nullable$U.Po \
|
@AMDEP_TRUE@ $(DEPDIR)/main$U.Po $(DEPDIR)/nullable$U.Po \
|
||||||
@AMDEP_TRUE@ $(DEPDIR)/output$U.Po $(DEPDIR)/print$U.Po \
|
@AMDEP_TRUE@ $(DEPDIR)/output$U.Po $(DEPDIR)/print$U.Po \
|
||||||
@AMDEP_TRUE@ $(DEPDIR)/print_graph$U.Po $(DEPDIR)/reader$U.Po \
|
@AMDEP_TRUE@ $(DEPDIR)/print_graph$U.Po $(DEPDIR)/reader$U.Po \
|
||||||
@AMDEP_TRUE@ $(DEPDIR)/reduce$U.Po $(DEPDIR)/symtab$U.Po \
|
@AMDEP_TRUE@ $(DEPDIR)/reduce$U.Po $(DEPDIR)/state$U.Po \
|
||||||
@AMDEP_TRUE@ $(DEPDIR)/vcg$U.Po $(DEPDIR)/vmsgetargs$U.Po \
|
@AMDEP_TRUE@ $(DEPDIR)/symtab$U.Po $(DEPDIR)/vcg$U.Po \
|
||||||
@AMDEP_TRUE@ $(DEPDIR)/warshall$U.Po
|
@AMDEP_TRUE@ $(DEPDIR)/vmsgetargs$U.Po $(DEPDIR)/warshall$U.Po
|
||||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
CFLAGS = @CFLAGS@
|
|
||||||
DIST_SOURCES = $(bison_SOURCES) $(EXTRA_bison_SOURCES)
|
DIST_SOURCES = $(bison_SOURCES) $(EXTRA_bison_SOURCES)
|
||||||
DATA = $(pkgdata_DATA)
|
DATA = $(pkgdata_DATA)
|
||||||
|
|
||||||
@@ -246,6 +256,7 @@ mostlyclean-kr:
|
|||||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/print_graph$U.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/print_graph$U.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/reader$U.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/reader$U.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/reduce$U.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/reduce$U.Po@am__quote@
|
||||||
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/state$U.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/symtab$U.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/symtab$U.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/vcg$U.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/vcg$U.Po@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/vmsgetargs$U.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/vmsgetargs$U.Po@am__quote@
|
||||||
@@ -300,6 +311,8 @@ reader_.c: reader.c $(ANSI2KNR)
|
|||||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/reader.c; then echo $(srcdir)/reader.c; else echo reader.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > reader_.c || rm -f reader_.c
|
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/reader.c; then echo $(srcdir)/reader.c; else echo reader.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > reader_.c || rm -f reader_.c
|
||||||
reduce_.c: reduce.c $(ANSI2KNR)
|
reduce_.c: reduce.c $(ANSI2KNR)
|
||||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/reduce.c; then echo $(srcdir)/reduce.c; else echo reduce.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > reduce_.c || rm -f reduce_.c
|
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/reduce.c; then echo $(srcdir)/reduce.c; else echo reduce.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > reduce_.c || rm -f reduce_.c
|
||||||
|
state_.c: state.c $(ANSI2KNR)
|
||||||
|
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/state.c; then echo $(srcdir)/state.c; else echo state.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > state_.c || rm -f state_.c
|
||||||
symtab_.c: symtab.c $(ANSI2KNR)
|
symtab_.c: symtab.c $(ANSI2KNR)
|
||||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/symtab.c; then echo $(srcdir)/symtab.c; else echo symtab.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > symtab_.c || rm -f symtab_.c
|
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/symtab.c; then echo $(srcdir)/symtab.c; else echo symtab.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > symtab_.c || rm -f symtab_.c
|
||||||
vcg_.c: vcg.c $(ANSI2KNR)
|
vcg_.c: vcg.c $(ANSI2KNR)
|
||||||
@@ -313,7 +326,7 @@ conflicts_.$(OBJEXT) derives_.$(OBJEXT) files_.$(OBJEXT) \
|
|||||||
getargs_.$(OBJEXT) gram_.$(OBJEXT) lalr_.$(OBJEXT) lex_.$(OBJEXT) \
|
getargs_.$(OBJEXT) gram_.$(OBJEXT) lalr_.$(OBJEXT) lex_.$(OBJEXT) \
|
||||||
main_.$(OBJEXT) nullable_.$(OBJEXT) output_.$(OBJEXT) print_.$(OBJEXT) \
|
main_.$(OBJEXT) nullable_.$(OBJEXT) output_.$(OBJEXT) print_.$(OBJEXT) \
|
||||||
print_graph_.$(OBJEXT) reader_.$(OBJEXT) reduce_.$(OBJEXT) \
|
print_graph_.$(OBJEXT) reader_.$(OBJEXT) reduce_.$(OBJEXT) \
|
||||||
symtab_.$(OBJEXT) vcg_.$(OBJEXT) vmsgetargs_.$(OBJEXT) \
|
state_.$(OBJEXT) symtab_.$(OBJEXT) vcg_.$(OBJEXT) vmsgetargs_.$(OBJEXT) \
|
||||||
warshall_.$(OBJEXT) : $(ANSI2KNR)
|
warshall_.$(OBJEXT) : $(ANSI2KNR)
|
||||||
uninstall-info-am:
|
uninstall-info-am:
|
||||||
install-pkgdataDATA: $(pkgdata_DATA)
|
install-pkgdataDATA: $(pkgdata_DATA)
|
||||||
|
|||||||
+312
-191
@@ -28,75 +28,126 @@
|
|||||||
It was written by Richard Stallman by simplifying the hairy parser
|
It was written by Richard Stallman by simplifying the hairy parser
|
||||||
used when %semantic_parser is specified. */
|
used when %semantic_parser is specified. */
|
||||||
|
|
||||||
#ifndef YYSTACK_USE_ALLOCA
|
/* All symbols defined below should begin with yy or YY, to avoid
|
||||||
# ifdef alloca
|
infringing on user name space. This should be done even for local
|
||||||
# define YYSTACK_USE_ALLOCA 1
|
variables, as they might otherwise be expanded by user macros.
|
||||||
# else /* alloca not defined */
|
There are some unavoidable exceptions within include files to
|
||||||
# ifdef __GNUC__
|
define necessary library symbols; they are noted "INFRINGES ON
|
||||||
# define YYSTACK_USE_ALLOCA 1
|
USER NAME SPACE" below. */
|
||||||
# define alloca __builtin_alloca
|
|
||||||
# else /* not GNU C. */
|
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
|
||||||
# if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
|
|
||||||
# define YYSTACK_USE_ALLOCA 1
|
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
||||||
# include <alloca.h>
|
|
||||||
# else /* not sparc */
|
# if YYSTACK_USE_ALLOCA
|
||||||
/* We think this test detects Watcom and Microsoft C. */
|
# define YYSTACK_ALLOC alloca
|
||||||
/* This used to test MSDOS, but that is a bad idea since that
|
# define YYSIZE_T size_t
|
||||||
symbol is in the user namespace. */
|
# else
|
||||||
# if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
|
# ifndef YYSTACK_USE_ALLOCA
|
||||||
# if 0
|
# if defined (alloca) || defined (_ALLOCA_H)
|
||||||
/* No need for malloc.h, which pollutes the namespace; instead,
|
# define YYSTACK_ALLOC alloca
|
||||||
just don't use alloca. */
|
# define YYSIZE_T size_t
|
||||||
# include <malloc.h>
|
# else
|
||||||
|
# if defined (__GNUC__) || defined (_AIX) || defined (__hpux)
|
||||||
|
# define YYSTACK_ALLOC __builtin_alloca
|
||||||
|
# endif
|
||||||
|
# ifndef __GNUC__
|
||||||
|
# ifdef _AIX
|
||||||
|
# pragma alloca
|
||||||
# endif
|
# endif
|
||||||
# else /* not MSDOS, or __TURBOC__ */
|
# if defined (__sgi) || defined (__sparc__) || defined (__sparc) || defined (__sun)
|
||||||
# if defined(_AIX)
|
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
/* I don't know what this was needed for, but it pollutes the
|
# define YYSTACK_ALLOC alloca
|
||||||
namespace. So I turned it off. rms, 2 May 1997. */
|
# define YYSIZE_T size_t
|
||||||
/* #include <malloc.h> */
|
# endif
|
||||||
#pragma alloca
|
# endif
|
||||||
# define YYSTACK_USE_ALLOCA 1
|
# endif
|
||||||
# else /* not MSDOS, or __TURBOC__, or _AIX */
|
# endif
|
||||||
# if 0
|
# endif
|
||||||
/* [email protected] says this works for HPUX 9.05 and up, and on
|
|
||||||
HPUX 10. Eventually we can turn this on. */
|
|
||||||
# ifdef __hpux
|
|
||||||
# define YYSTACK_USE_ALLOCA 1
|
|
||||||
# define alloca __builtin_alloca
|
|
||||||
# endif /* __hpux */
|
|
||||||
# endif
|
|
||||||
# endif /* not _AIX */
|
|
||||||
# endif /* not MSDOS, or __TURBOC__ */
|
|
||||||
# endif /* not sparc */
|
|
||||||
# endif /* not GNU C */
|
|
||||||
# endif /* alloca not defined */
|
|
||||||
#endif /* YYSTACK_USE_ALLOCA not defined */
|
|
||||||
|
|
||||||
#ifndef YYSTACK_USE_ALLOCA
|
# ifdef YYSTACK_ALLOC
|
||||||
# define YYSTACK_USE_ALLOCA 0
|
/* Pacify GCC's `empty if-body' warning. */
|
||||||
|
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
|
||||||
|
# else
|
||||||
|
# ifdef __cplusplus
|
||||||
|
# include <cstdlib> /* INFRINGES ON USER NAME SPACE */
|
||||||
|
# define YYSIZE_T std::size_t
|
||||||
|
# define YYSTACK_ALLOC std::malloc
|
||||||
|
# define YYSTACK_FREE std::free
|
||||||
|
# else
|
||||||
|
# ifdef __STDC__
|
||||||
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
|
# define YYSIZE_T size_t
|
||||||
|
# endif
|
||||||
|
# define YYSTACK_ALLOC malloc
|
||||||
|
# define YYSTACK_FREE free
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
|
/* A type that is properly aligned for any stack member. */
|
||||||
|
union yyalloc
|
||||||
|
{
|
||||||
|
short yyss;
|
||||||
|
YYSTYPE yyvs;
|
||||||
|
# if YYLSP_NEEDED
|
||||||
|
YYLTYPE yyls;
|
||||||
|
# endif
|
||||||
|
};
|
||||||
|
|
||||||
|
/* The size of the maximum gap between one aligned stack and the next. */
|
||||||
|
# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1)
|
||||||
|
|
||||||
|
/* The size of an array large to enough to hold all stacks, each with
|
||||||
|
N elements. */
|
||||||
|
# if YYLSP_NEEDED
|
||||||
|
# define YYSTACK_BYTES(N) \
|
||||||
|
((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \
|
||||||
|
+ 2 * YYSTACK_GAP_MAX)
|
||||||
|
# else
|
||||||
|
# define YYSTACK_BYTES(N) \
|
||||||
|
((N) * (sizeof (short) + sizeof (YYSTYPE)) \
|
||||||
|
+ YYSTACK_GAP_MAX)
|
||||||
|
# endif
|
||||||
|
|
||||||
|
/* Relocate the TYPE STACK from its old location to the new one. The
|
||||||
|
local variables YYSIZE and YYSTACKSIZE give the old and new number of
|
||||||
|
elements in the stack, and YYPTR gives the new location of the
|
||||||
|
stack. Advance YYPTR to a properly aligned location for the next
|
||||||
|
stack. */
|
||||||
|
# define YYSTACK_RELOCATE(Type, Stack) \
|
||||||
|
do \
|
||||||
|
{ \
|
||||||
|
YYSIZE_T yynewbytes; \
|
||||||
|
yymemcpy ((char *) yyptr, (char *) (Stack), \
|
||||||
|
yysize * (YYSIZE_T) sizeof (Type)); \
|
||||||
|
Stack = &yyptr->Stack; \
|
||||||
|
yynewbytes = yystacksize * sizeof (Type) + YYSTACK_GAP_MAX; \
|
||||||
|
yyptr += yynewbytes / sizeof (*yyptr); \
|
||||||
|
} \
|
||||||
|
while (0)
|
||||||
|
|
||||||
|
#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */
|
||||||
|
|
||||||
|
|
||||||
|
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
|
||||||
|
# define YYSIZE_T __SIZE_TYPE__
|
||||||
#endif
|
#endif
|
||||||
|
#if ! defined (YYSIZE_T) && defined (size_t)
|
||||||
/* Realloc WHAT from SIZE to YYSTACKSIZE elements of TYPE.
|
# define YYSIZE_T size_t
|
||||||
If WHAT was malloc'ed (not the original automatic ARRAY), free it. */
|
#endif
|
||||||
#if YYSTACK_USE_ALLOCA
|
#if ! defined (YYSIZE_T)
|
||||||
# define YYSTACK_REALLOC(Type, What, Array) \
|
# ifdef __cplusplus
|
||||||
do { \
|
# include <cstddef> /* INFRINGES ON USER NAME SPACE */
|
||||||
Type *old = What; \
|
# define YYSIZE_T std::size_t
|
||||||
What = (Type *) malloc (yystacksize * sizeof (Type)); \
|
# else
|
||||||
__yy_memcpy ((char *) What, (char *) old, \
|
# ifdef __STDC__
|
||||||
(size) * (unsigned int) sizeof (Type)); \
|
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
yyfree_stacks = 1; \
|
# define YYSIZE_T size_t
|
||||||
if (old != Array) \
|
# endif
|
||||||
free (old); \
|
# endif
|
||||||
} while (0)
|
#endif
|
||||||
#else
|
#if ! defined (YYSIZE_T)
|
||||||
# define YYSTACK_REALLOC(Type, What, Array) \
|
# define YYSIZE_T unsigned int
|
||||||
do { \
|
|
||||||
Type *old = What; \
|
|
||||||
What = (Type *) alloca (yystacksize * sizeof (Type)); \
|
|
||||||
__yy_memcpy ((char *) What, (char *) old, \
|
|
||||||
(size) * (unsigned int) sizeof (Type)); \
|
|
||||||
} while (0)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define yyerrok (yyerrstatus = 0)
|
#define yyerrok (yyerrstatus = 0)
|
||||||
@@ -169,10 +220,23 @@ while (0)
|
|||||||
|
|
||||||
/* Enable debugging if requested. */
|
/* Enable debugging if requested. */
|
||||||
#if YYDEBUG
|
#if YYDEBUG
|
||||||
|
|
||||||
|
# ifndef YYFPRINTF
|
||||||
|
# ifdef __cplusplus
|
||||||
|
# include <cstdio.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
|
# define YYFPRINTF std::fprintf
|
||||||
|
# define YYSTDERR std::stderr
|
||||||
|
# else
|
||||||
|
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
|
# define YYFPRINTF fprintf
|
||||||
|
# define YYSTDERR stderr
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
# define YYDPRINTF(Args) \
|
# define YYDPRINTF(Args) \
|
||||||
do { \
|
do { \
|
||||||
if (yydebug) \
|
if (yydebug) \
|
||||||
fprintf Args; \
|
YYFPRINTF Args; \
|
||||||
} while (0)
|
} while (0)
|
||||||
/* Nonzero means print parse trace. [The following comment makes no
|
/* Nonzero means print parse trace. [The following comment makes no
|
||||||
sense to me. Could someone clarify it? --akim] Since this is
|
sense to me. Could someone clarify it? --akim] Since this is
|
||||||
@@ -189,7 +253,12 @@ int yydebug;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
|
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
|
||||||
if the built-in stack extension method is used). */
|
if the built-in stack extension method is used).
|
||||||
|
|
||||||
|
Do not make this value too large; the results are undefined if
|
||||||
|
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
|
||||||
|
evaluated with infinite-precision integer arithmetic. */
|
||||||
|
|
||||||
#if YYMAXDEPTH == 0
|
#if YYMAXDEPTH == 0
|
||||||
# undef YYMAXDEPTH
|
# undef YYMAXDEPTH
|
||||||
#endif
|
#endif
|
||||||
@@ -198,35 +267,83 @@ int yydebug;
|
|||||||
# define YYMAXDEPTH 10000
|
# define YYMAXDEPTH 10000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define __yy_memcpy. Note that the size argument
|
#if ! defined (yyoverflow) && ! defined (yymemcpy)
|
||||||
should be passed with type unsigned int, because that is what the non-GCC
|
# if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
|
||||||
definitions require. With GCC, __builtin_memcpy takes an arg
|
# define yymemcpy __builtin_memcpy
|
||||||
of type size_t, but it can handle unsigned int. */
|
# else /* not GNU C or C++ */
|
||||||
|
|
||||||
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
|
|
||||||
# define __yy_memcpy(To, From, Count) __builtin_memcpy (To, From, Count)
|
|
||||||
#else /* not GNU C or C++ */
|
|
||||||
|
|
||||||
/* This is the most reliable way to avoid incompatibilities
|
/* This is the most reliable way to avoid incompatibilities
|
||||||
in available built-in functions on various systems. */
|
in available built-in functions on various systems. */
|
||||||
static void
|
static void
|
||||||
# ifndef __cplusplus
|
# if defined (__STDC__) || defined (__cplusplus)
|
||||||
__yy_memcpy (to, from, count)
|
yymemcpy (char *yyto, const char *yyfrom, YYSIZE_T yycount)
|
||||||
char *to;
|
# else
|
||||||
const char *from;
|
yymemcpy (yyto, yyfrom, yycount)
|
||||||
unsigned int count;
|
char *yyto;
|
||||||
# else /* __cplusplus */
|
const char *yyfrom;
|
||||||
__yy_memcpy (char *to, const char *from, unsigned int count)
|
YYSIZE_T yycount;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register const char *f = from;
|
register const char *yyf = yyfrom;
|
||||||
register char *t = to;
|
register char *yyt = yyto;
|
||||||
register int i = count;
|
register YYSIZE_T yyi = yycount;
|
||||||
|
|
||||||
while (i-- > 0)
|
while (yyi-- != 0)
|
||||||
*t++ = *f++;
|
*yyt++ = *yyf++;
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef YYERROR_VERBOSE
|
||||||
|
|
||||||
|
# ifndef yystrlen
|
||||||
|
# if defined (__GLIBC__) && defined (_STRING_H)
|
||||||
|
# define yystrlen strlen
|
||||||
|
# else
|
||||||
|
/* Return the length of YYSTR. */
|
||||||
|
static YYSIZE_T
|
||||||
|
# if defined (__STDC__) || defined (__cplusplus)
|
||||||
|
yystrlen (const char *yystr)
|
||||||
|
# else
|
||||||
|
yystrlen (yystr)
|
||||||
|
const char *yystr;
|
||||||
|
# endif
|
||||||
|
{
|
||||||
|
register const char *yys = yystr;
|
||||||
|
|
||||||
|
while (*yys++ != '\0')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
return yys - yystr - 1;
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifndef yystpcpy
|
||||||
|
# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
|
||||||
|
# define yystpcpy stpcpy
|
||||||
|
# else
|
||||||
|
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
|
||||||
|
YYDEST. */
|
||||||
|
static char *
|
||||||
|
# if defined (__STDC__) || defined (__cplusplus)
|
||||||
|
yystpcpy (char *yydest, const char *yysrc)
|
||||||
|
# else
|
||||||
|
yystpcpy (yydest, yysrc)
|
||||||
|
char *yydest;
|
||||||
|
const char *yysrc;
|
||||||
|
# endif
|
||||||
|
{
|
||||||
|
register char *yyd = yydest;
|
||||||
|
register const char *yys = yysrc;
|
||||||
|
|
||||||
|
while ((*yyd++ = *yys++) != '\0')
|
||||||
|
continue;
|
||||||
|
|
||||||
|
return yyd - 1;
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#line
|
#line
|
||||||
@@ -262,7 +379,7 @@ int yyparse (void);
|
|||||||
/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
|
/* YY_DECL_VARIABLES -- depending whether we use a pure parser,
|
||||||
variables are global, or local to YYPARSE. */
|
variables are global, or local to YYPARSE. */
|
||||||
|
|
||||||
#define _YY_DECL_VARIABLES \
|
#define YY_DECL_NON_LSP_VARIABLES \
|
||||||
/* The lookahead symbol. */ \
|
/* The lookahead symbol. */ \
|
||||||
int yychar; \
|
int yychar; \
|
||||||
\
|
\
|
||||||
@@ -274,13 +391,13 @@ int yynerrs;
|
|||||||
|
|
||||||
#if YYLSP_NEEDED
|
#if YYLSP_NEEDED
|
||||||
# define YY_DECL_VARIABLES \
|
# define YY_DECL_VARIABLES \
|
||||||
_YY_DECL_VARIABLES \
|
YY_DECL_NON_LSP_VARIABLES \
|
||||||
\
|
\
|
||||||
/* Location data for the lookahead symbol. */ \
|
/* Location data for the lookahead symbol. */ \
|
||||||
YYLTYPE yylloc;
|
YYLTYPE yylloc;
|
||||||
#else
|
#else
|
||||||
# define YY_DECL_VARIABLES \
|
# define YY_DECL_VARIABLES \
|
||||||
_YY_DECL_VARIABLES
|
YY_DECL_NON_LSP_VARIABLES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -301,6 +418,7 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
|
|
||||||
register int yystate;
|
register int yystate;
|
||||||
register int yyn;
|
register int yyn;
|
||||||
|
int yyresult;
|
||||||
/* Number of tokens to shift before error messages enabled. */
|
/* Number of tokens to shift before error messages enabled. */
|
||||||
int yyerrstatus;
|
int yyerrstatus;
|
||||||
/* Lookahead token as an internal (translated) token number. */
|
/* Lookahead token as an internal (translated) token number. */
|
||||||
@@ -337,22 +455,21 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
# define YYPOPSTACK (yyvsp--, yyssp--)
|
# define YYPOPSTACK (yyvsp--, yyssp--)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int yystacksize = YYINITDEPTH;
|
YYSIZE_T yystacksize = YYINITDEPTH;
|
||||||
int yyfree_stacks = 0;
|
|
||||||
|
|
||||||
|
|
||||||
/* The variables used to return semantic value and location from the
|
/* The variables used to return semantic value and location from the
|
||||||
action routines. */
|
action routines. */
|
||||||
YYSTYPE yyval;
|
YYSTYPE yyval;
|
||||||
# if YYLSP_NEEDED
|
#if YYLSP_NEEDED
|
||||||
YYLTYPE yyloc;
|
YYLTYPE yyloc;
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
/* When reducing, the number of symbols on the RHS of the reduced
|
/* When reducing, the number of symbols on the RHS of the reduced
|
||||||
rule. */
|
rule. */
|
||||||
int yylen;
|
int yylen;
|
||||||
|
|
||||||
YYDPRINTF ((stderr, "Starting parse\n"));
|
YYDPRINTF ((YYSTDERR, "Starting parse\n"));
|
||||||
|
|
||||||
yystate = 0;
|
yystate = 0;
|
||||||
yyerrstatus = 0;
|
yyerrstatus = 0;
|
||||||
@@ -386,7 +503,7 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
if (yyssp >= yyss + yystacksize - 1)
|
if (yyssp >= yyss + yystacksize - 1)
|
||||||
{
|
{
|
||||||
/* Get the current used size of the three stacks, in elements. */
|
/* Get the current used size of the three stacks, in elements. */
|
||||||
int size = yyssp - yyss + 1;
|
YYSIZE_T yysize = yyssp - yyss + 1;
|
||||||
|
|
||||||
#ifdef yyoverflow
|
#ifdef yyoverflow
|
||||||
{
|
{
|
||||||
@@ -403,15 +520,15 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
/* This used to be a conditional around just the two extra args,
|
/* This used to be a conditional around just the two extra args,
|
||||||
but that might be undefined if yyoverflow is a macro. */
|
but that might be undefined if yyoverflow is a macro. */
|
||||||
yyoverflow ("parser stack overflow",
|
yyoverflow ("parser stack overflow",
|
||||||
&yyss1, size * sizeof (*yyssp),
|
&yyss1, yysize * sizeof (*yyssp),
|
||||||
&yyvs1, size * sizeof (*yyvsp),
|
&yyvs1, yysize * sizeof (*yyvsp),
|
||||||
&yyls1, size * sizeof (*yylsp),
|
&yyls1, yysize * sizeof (*yylsp),
|
||||||
&yystacksize);
|
&yystacksize);
|
||||||
yyls = yyls1;
|
yyls = yyls1;
|
||||||
# else
|
# else
|
||||||
yyoverflow ("parser stack overflow",
|
yyoverflow ("parser stack overflow",
|
||||||
&yyss1, size * sizeof (*yyssp),
|
&yyss1, yysize * sizeof (*yyssp),
|
||||||
&yyvs1, size * sizeof (*yyvsp),
|
&yyvs1, yysize * sizeof (*yyvsp),
|
||||||
&yystacksize);
|
&yystacksize);
|
||||||
# endif
|
# endif
|
||||||
yyss = yyss1;
|
yyss = yyss1;
|
||||||
@@ -420,42 +537,42 @@ yyparse (YYPARSE_PARAM_ARG)
|
|||||||
#else /* no yyoverflow */
|
#else /* no yyoverflow */
|
||||||
/* Extend the stack our own way. */
|
/* Extend the stack our own way. */
|
||||||
if (yystacksize >= YYMAXDEPTH)
|
if (yystacksize >= YYMAXDEPTH)
|
||||||
{
|
goto yyoverflowlab;
|
||||||
yyerror ("parser stack overflow");
|
|
||||||
if (yyfree_stacks)
|
|
||||||
{
|
|
||||||
free (yyss);
|
|
||||||
free (yyvs);
|
|
||||||
# if YYLSP_NEEDED
|
|
||||||
free (yyls);
|
|
||||||
# endif
|
|
||||||
}
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
yystacksize *= 2;
|
yystacksize *= 2;
|
||||||
if (yystacksize > YYMAXDEPTH)
|
if (yystacksize > YYMAXDEPTH)
|
||||||
yystacksize = YYMAXDEPTH;
|
yystacksize = YYMAXDEPTH;
|
||||||
|
|
||||||
YYSTACK_REALLOC (short, yyss, yyssa);
|
{
|
||||||
YYSTACK_REALLOC (YYSTYPE, yyvs, yyvsa);
|
short *yyss1 = yyss;
|
||||||
|
union yyalloc *yyptr =
|
||||||
|
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
|
||||||
|
if (! yyptr)
|
||||||
|
goto yyoverflowlab;
|
||||||
|
YYSTACK_RELOCATE (short, yyss);
|
||||||
|
YYSTACK_RELOCATE (YYSTYPE, yyvs);
|
||||||
# if YYLSP_NEEDED
|
# if YYLSP_NEEDED
|
||||||
YYSTACK_REALLOC (YYLTYPE, yyls, yylsa);
|
YYSTACK_RELOCATE (YYLTYPE, yyls);
|
||||||
# endif
|
# endif
|
||||||
|
# undef YYSTACK_RELOCATE
|
||||||
|
if (yyss1 != yyssa)
|
||||||
|
YYSTACK_FREE (yyss1);
|
||||||
|
}
|
||||||
#endif /* no yyoverflow */
|
#endif /* no yyoverflow */
|
||||||
|
|
||||||
yyssp = yyss + size - 1;
|
yyssp = yyss + yysize - 1;
|
||||||
yyvsp = yyvs + size - 1;
|
yyvsp = yyvs + yysize - 1;
|
||||||
#if YYLSP_NEEDED
|
#if YYLSP_NEEDED
|
||||||
yylsp = yyls + size - 1;
|
yylsp = yyls + yysize - 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
YYDPRINTF ((stderr, "Stack size increased to %d\n", yystacksize));
|
YYDPRINTF ((YYSTDERR, "Stack size increased to %lu\n",
|
||||||
|
(unsigned long int) yystacksize));
|
||||||
|
|
||||||
if (yyssp >= yyss + yystacksize - 1)
|
if (yyssp >= yyss + yystacksize - 1)
|
||||||
YYABORT;
|
YYABORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
|
YYDPRINTF ((YYSTDERR, "Entering state %d\n", yystate));
|
||||||
|
|
||||||
goto yybackup;
|
goto yybackup;
|
||||||
|
|
||||||
@@ -482,7 +599,7 @@ yybackup:
|
|||||||
|
|
||||||
if (yychar == YYEMPTY)
|
if (yychar == YYEMPTY)
|
||||||
{
|
{
|
||||||
YYDPRINTF ((stderr, "Reading a token: "));
|
YYDPRINTF ((YYSTDERR, "Reading a token: "));
|
||||||
yychar = YYLEX;
|
yychar = YYLEX;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -493,7 +610,7 @@ yybackup:
|
|||||||
yychar1 = 0;
|
yychar1 = 0;
|
||||||
yychar = YYEOF; /* Don't call YYLEX any more */
|
yychar = YYEOF; /* Don't call YYLEX any more */
|
||||||
|
|
||||||
YYDPRINTF ((stderr, "Now at end of input.\n"));
|
YYDPRINTF ((YYSTDERR, "Now at end of input.\n"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -504,13 +621,14 @@ yybackup:
|
|||||||
which are defined only if `YYDEBUG' is set. */
|
which are defined only if `YYDEBUG' is set. */
|
||||||
if (yydebug)
|
if (yydebug)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
|
YYFPRINTF (YYSTDERR, "Next token is %d (%s",
|
||||||
|
yychar, yytname[yychar1]);
|
||||||
/* Give the individual parser a way to print the precise
|
/* Give the individual parser a way to print the precise
|
||||||
meaning of a token, for further debugging info. */
|
meaning of a token, for further debugging info. */
|
||||||
# ifdef YYPRINT
|
# ifdef YYPRINT
|
||||||
YYPRINT (stderr, yychar, yylval);
|
YYPRINT (YYSTDERR, yychar, yylval);
|
||||||
# endif
|
# endif
|
||||||
fprintf (stderr, ")\n");
|
YYFPRINTF (YYSTDERR, ")\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -542,7 +660,8 @@ yybackup:
|
|||||||
YYACCEPT;
|
YYACCEPT;
|
||||||
|
|
||||||
/* Shift the lookahead token. */
|
/* Shift the lookahead token. */
|
||||||
YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]));
|
YYDPRINTF ((YYSTDERR, "Shifting token %d (%s), ",
|
||||||
|
yychar, yytname[yychar1]));
|
||||||
|
|
||||||
/* Discard the token being shifted unless it is eof. */
|
/* Discard the token being shifted unless it is eof. */
|
||||||
if (yychar != YYEOF)
|
if (yychar != YYEOF)
|
||||||
@@ -601,15 +720,15 @@ yyreduce:
|
|||||||
are defined only if `YYDEBUG' is set. */
|
are defined only if `YYDEBUG' is set. */
|
||||||
if (yydebug)
|
if (yydebug)
|
||||||
{
|
{
|
||||||
int i;
|
int yyi;
|
||||||
|
|
||||||
fprintf (stderr, "Reducing via rule %d (line %d), ",
|
YYFPRINTF (YYSTDERR, "Reducing via rule %d (line %d), ",
|
||||||
yyn, yyrline[yyn]);
|
yyn, yyrline[yyn]);
|
||||||
|
|
||||||
/* Print the symbols being reduced, and their result. */
|
/* Print the symbols being reduced, and their result. */
|
||||||
for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
|
for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
|
||||||
fprintf (stderr, "%s ", yytname[yyrhs[i]]);
|
YYFPRINTF (YYSTDERR, "%s ", yytname[yyrhs[yyi]]);
|
||||||
fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
|
YYFPRINTF (YYSTDERR, " -> %s\n", yytname[yyr1[yyn]]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
%% actions /* The action file replaces this line. */
|
%% actions /* The action file replaces this line. */
|
||||||
@@ -624,11 +743,11 @@ yyreduce:
|
|||||||
#if YYDEBUG
|
#if YYDEBUG
|
||||||
if (yydebug)
|
if (yydebug)
|
||||||
{
|
{
|
||||||
short *ssp1 = yyss - 1;
|
short *yyssp1 = yyss - 1;
|
||||||
fprintf (stderr, "state stack now");
|
YYFPRINTF (YYSTDERR, "state stack now");
|
||||||
while (ssp1 != yyssp)
|
while (yyssp1 != yyssp)
|
||||||
fprintf (stderr, " %d", *++ssp1);
|
YYFPRINTF (YYSTDERR, " %d", *++yyssp1);
|
||||||
fprintf (stderr, "\n");
|
YYFPRINTF (YYSTDERR, "\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -666,45 +785,47 @@ yyerrlab:
|
|||||||
|
|
||||||
if (yyn > YYFLAG && yyn < YYLAST)
|
if (yyn > YYFLAG && yyn < YYLAST)
|
||||||
{
|
{
|
||||||
int size = 0;
|
YYSIZE_T yysize = 0;
|
||||||
char *msg;
|
char *yymsg;
|
||||||
int x, count;
|
int yyx, yycount;
|
||||||
|
|
||||||
count = 0;
|
yycount = 0;
|
||||||
/* Start X at -YYN if negative to avoid negative indexes in
|
/* Start YYX at -YYN if negative to avoid negative indexes in
|
||||||
YYCHECK. */
|
YYCHECK. */
|
||||||
for (x = yyn < 0 ? -yyn : 0;
|
for (yyx = yyn < 0 ? -yyn : 0;
|
||||||
x < (int) (sizeof (yytname) / sizeof (char *)); x++)
|
yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
|
||||||
if (yycheck[x + yyn] == x)
|
if (yycheck[yyx + yyn] == yyx)
|
||||||
size += strlen (yytname[x]) + 15, count++;
|
yysize += yystrlen (yytname[yyx]) + 15, yycount++;
|
||||||
size += strlen ("parse error, unexpected ") + 1;
|
yysize += yystrlen ("parse error, unexpected ") + 1;
|
||||||
size += strlen (yytname[YYTRANSLATE (yychar)]);
|
yysize += yystrlen (yytname[YYTRANSLATE (yychar)]);
|
||||||
msg = (char *) malloc (size);
|
yymsg = (char *) YYSTACK_ALLOC (yysize);
|
||||||
if (msg != 0)
|
if (yymsg != 0)
|
||||||
{
|
{
|
||||||
strcpy (msg, "parse error, unexpected ");
|
char *yyp = yystpcpy (yymsg, "parse error, unexpected ");
|
||||||
strcat (msg, yytname[YYTRANSLATE (yychar)]);
|
yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]);
|
||||||
|
|
||||||
if (count < 5)
|
if (yycount < 5)
|
||||||
{
|
{
|
||||||
count = 0;
|
yycount = 0;
|
||||||
for (x = yyn < 0 ? -yyn : 0;
|
for (yyx = yyn < 0 ? -yyn : 0;
|
||||||
x < (int) (sizeof (yytname) / sizeof (char *)); x++)
|
yyx < (int) (sizeof (yytname) / sizeof (char *));
|
||||||
if (yycheck[x + yyn] == x)
|
yyx++)
|
||||||
|
if (yycheck[yyx + yyn] == yyx)
|
||||||
{
|
{
|
||||||
strcat (msg, count == 0 ? ", expecting " : " or ");
|
const char *yyq = ! yycount ? ", expecting " : " or ";
|
||||||
strcat (msg, yytname[x]);
|
yyp = yystpcpy (yyp, yyq);
|
||||||
count++;
|
yyp = yystpcpy (yyp, yytname[yyx]);
|
||||||
|
yycount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
yyerror (msg);
|
yyerror (yymsg);
|
||||||
free (msg);
|
YYSTACK_FREE (yymsg);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
yyerror ("parse error; also virtual memory exhausted");
|
yyerror ("parse error; also virtual memory exhausted");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif /* YYERROR_VERBOSE */
|
#endif /* defined (YYERROR_VERBOSE) */
|
||||||
yyerror ("parse error");
|
yyerror ("parse error");
|
||||||
}
|
}
|
||||||
goto yyerrlab1;
|
goto yyerrlab1;
|
||||||
@@ -722,7 +843,7 @@ yyerrlab1:
|
|||||||
/* return failure if at end of input */
|
/* return failure if at end of input */
|
||||||
if (yychar == YYEOF)
|
if (yychar == YYEOF)
|
||||||
YYABORT;
|
YYABORT;
|
||||||
YYDPRINTF ((stderr, "Discarding token %d (%s).\n",
|
YYDPRINTF ((YYSTDERR, "Discarding token %d (%s).\n",
|
||||||
yychar, yytname[yychar1]));
|
yychar, yytname[yychar1]));
|
||||||
yychar = YYEMPTY;
|
yychar = YYEMPTY;
|
||||||
}
|
}
|
||||||
@@ -767,11 +888,11 @@ yyerrpop:
|
|||||||
#if YYDEBUG
|
#if YYDEBUG
|
||||||
if (yydebug)
|
if (yydebug)
|
||||||
{
|
{
|
||||||
short *ssp1 = yyss - 1;
|
short *yyssp1 = yyss - 1;
|
||||||
fprintf (stderr, "Error: state stack now");
|
YYFPRINTF (YYSTDERR, "Error: state stack now");
|
||||||
while (ssp1 != yyssp)
|
while (yyssp1 != yyssp)
|
||||||
fprintf (stderr, " %d", *++ssp1);
|
YYFPRINTF (YYSTDERR, " %d", *++yyssp1);
|
||||||
fprintf (stderr, "\n");
|
YYFPRINTF (YYSTDERR, "\n");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -801,7 +922,7 @@ yyerrhandle:
|
|||||||
if (yyn == YYFINAL)
|
if (yyn == YYFINAL)
|
||||||
YYACCEPT;
|
YYACCEPT;
|
||||||
|
|
||||||
YYDPRINTF ((stderr, "Shifting error token, "));
|
YYDPRINTF ((YYSTDERR, "Shifting error token, "));
|
||||||
|
|
||||||
*++yyvsp = yylval;
|
*++yyvsp = yylval;
|
||||||
#if YYLSP_NEEDED
|
#if YYLSP_NEEDED
|
||||||
@@ -816,28 +937,28 @@ yyerrhandle:
|
|||||||
| yyacceptlab -- YYACCEPT comes here. |
|
| yyacceptlab -- YYACCEPT comes here. |
|
||||||
`-------------------------------------*/
|
`-------------------------------------*/
|
||||||
yyacceptlab:
|
yyacceptlab:
|
||||||
if (yyfree_stacks)
|
yyresult = 0;
|
||||||
{
|
goto yyreturn;
|
||||||
free (yyss);
|
|
||||||
free (yyvs);
|
|
||||||
#if YYLSP_NEEDED
|
|
||||||
free (yyls);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------.
|
/*-----------------------------------.
|
||||||
| yyabortlab -- YYABORT comes here. |
|
| yyabortlab -- YYABORT comes here. |
|
||||||
`-----------------------------------*/
|
`-----------------------------------*/
|
||||||
yyabortlab:
|
yyabortlab:
|
||||||
if (yyfree_stacks)
|
yyresult = 1;
|
||||||
{
|
goto yyreturn;
|
||||||
free (yyss);
|
|
||||||
free (yyvs);
|
/*---------------------------------------------.
|
||||||
#if YYLSP_NEEDED
|
| yyoverflowab -- parser overflow comes here. |
|
||||||
free (yyls);
|
`---------------------------------------------*/
|
||||||
|
yyoverflowlab:
|
||||||
|
yyerror ("parser stack overflow");
|
||||||
|
yyresult = 2;
|
||||||
|
/* Fall through. */
|
||||||
|
|
||||||
|
yyreturn:
|
||||||
|
#ifndef yyoverflow
|
||||||
|
if (yyss != yyssa)
|
||||||
|
YYSTACK_FREE (yyss);
|
||||||
#endif
|
#endif
|
||||||
}
|
return yyresult;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|||||||
+74
-136
@@ -26,9 +26,9 @@
|
|||||||
#include "derives.h"
|
#include "derives.h"
|
||||||
#include "warshall.h"
|
#include "warshall.h"
|
||||||
|
|
||||||
/* ITEMSETSIZE is the size of the array ITEMSET. */
|
/* NITEMSET is the size of the array ITEMSET. */
|
||||||
short *itemset;
|
short *itemset;
|
||||||
int itemsetsize;
|
int nitemset;
|
||||||
|
|
||||||
static unsigned *ruleset;
|
static unsigned *ruleset;
|
||||||
|
|
||||||
@@ -36,8 +36,9 @@ static unsigned *ruleset;
|
|||||||
static unsigned *fderives;
|
static unsigned *fderives;
|
||||||
static unsigned *firsts;
|
static unsigned *firsts;
|
||||||
|
|
||||||
#define FDERIVES(Symbol) (fderives + (Symbol) * rulesetsize)
|
/* Retrieve the FDERIVES/FIRSTS sets of the nonterminals numbered Var. */
|
||||||
#define FIRSTS(Symbol) (firsts + (Symbol) * varsetsize)
|
#define FDERIVES(Var) (fderives + ((Var) - ntokens) * rulesetsize)
|
||||||
|
#define FIRSTS(Var) (firsts + ((Var) - ntokens) * varsetsize)
|
||||||
|
|
||||||
/* number of words required to hold a bit for each rule */
|
/* number of words required to hold a bit for each rule */
|
||||||
static int rulesetsize;
|
static int rulesetsize;
|
||||||
@@ -51,33 +52,33 @@ static int varsetsize;
|
|||||||
`-----------------*/
|
`-----------------*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_closure (int n)
|
print_closure (const char *title, short *array, size_t size)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
fprintf (stderr, "n = %d\n", n);
|
fprintf (stderr, "Closure: %s\n", title);
|
||||||
for (i = 0; i < itemsetsize; ++i)
|
for (i = 0; i < size; ++i)
|
||||||
fprintf (stderr, " %d\n", itemset[i]);
|
{
|
||||||
fprintf (stderr, "\n\n");
|
short *rp;
|
||||||
|
fprintf (stderr, " %2d: .", array[i]);
|
||||||
|
for (rp = &ritem[array[i]]; *rp > 0; ++rp)
|
||||||
|
fprintf (stderr, " %s", tags[*rp]);
|
||||||
|
fprintf (stderr, " (rule %d)\n", -*rp);
|
||||||
|
}
|
||||||
|
fputs ("\n\n", stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_firsts (void)
|
print_firsts (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i, j;
|
||||||
int j;
|
|
||||||
unsigned *rowp;
|
|
||||||
|
|
||||||
fprintf (stderr, "FIRSTS\n");
|
fprintf (stderr, "FIRSTS\n");
|
||||||
|
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = ntokens; i < nsyms; i++)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "\t%s firsts\n", tags[i]);
|
fprintf (stderr, "\t%s firsts\n", tags[i]);
|
||||||
|
|
||||||
rowp = FIRSTS (i - ntokens);
|
|
||||||
|
|
||||||
for (j = 0; j < nvars; j++)
|
for (j = 0; j < nvars; j++)
|
||||||
if (BITISSET (rowp, j))
|
if (BITISSET (FIRSTS (i), j))
|
||||||
fprintf (stderr, "\t\t%d (%s)\n", j + ntokens, tags[j + ntokens]);
|
fprintf (stderr, "\t\t%d (%s)\n", j + ntokens, tags[j + ntokens]);
|
||||||
}
|
}
|
||||||
fprintf (stderr, "\n\n");
|
fprintf (stderr, "\n\n");
|
||||||
@@ -89,17 +90,14 @@ print_fderives (void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
unsigned *rp;
|
|
||||||
|
|
||||||
fprintf (stderr, "FDERIVES\n");
|
fprintf (stderr, "FDERIVES\n");
|
||||||
|
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = ntokens; i < nsyms; i++)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "\t%s derives\n", tags[i]);
|
fprintf (stderr, "\t%s derives\n", tags[i]);
|
||||||
rp = FDERIVES (i);
|
|
||||||
|
|
||||||
for (j = 0; j <= nrules; j++)
|
for (j = 0; j <= nrules; j++)
|
||||||
if (BITISSET (rp, j))
|
if (BITISSET (FDERIVES (i), j))
|
||||||
{
|
{
|
||||||
short *rhsp;
|
short *rhsp;
|
||||||
fprintf (stderr, "\t\t%d:", j);
|
fprintf (stderr, "\t\t%d:", j);
|
||||||
@@ -124,33 +122,19 @@ print_fderives (void)
|
|||||||
static void
|
static void
|
||||||
set_firsts (void)
|
set_firsts (void)
|
||||||
{
|
{
|
||||||
unsigned *row;
|
int i, j;
|
||||||
int symbol;
|
|
||||||
short *sp;
|
|
||||||
int rowsize;
|
|
||||||
|
|
||||||
int i;
|
varsetsize = WORDSIZE (nvars);
|
||||||
|
|
||||||
varsetsize = rowsize = WORDSIZE (nvars);
|
firsts = XCALLOC (unsigned, nvars * varsetsize);
|
||||||
|
|
||||||
firsts = XCALLOC (unsigned, nvars * rowsize);
|
|
||||||
|
|
||||||
row = firsts;
|
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = ntokens; i < nsyms; i++)
|
||||||
{
|
for (j = 0; derives[i][j] >= 0; ++j)
|
||||||
sp = derives[i];
|
{
|
||||||
while (*sp >= 0)
|
int symbol = ritem[rule_table[derives[i][j]].rhs];
|
||||||
{
|
if (ISVAR (symbol))
|
||||||
symbol = ritem[rule_table[*sp++].rhs];
|
SETBIT (FIRSTS (i), symbol - ntokens);
|
||||||
if (ISVAR (symbol))
|
}
|
||||||
{
|
|
||||||
symbol -= ntokens;
|
|
||||||
SETBIT (row, symbol);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
row += rowsize;
|
|
||||||
}
|
|
||||||
|
|
||||||
RTC (firsts, nvars);
|
RTC (firsts, nvars);
|
||||||
|
|
||||||
@@ -171,46 +155,17 @@ set_firsts (void)
|
|||||||
static void
|
static void
|
||||||
set_fderives (void)
|
set_fderives (void)
|
||||||
{
|
{
|
||||||
unsigned *rrow;
|
int i, j, k;
|
||||||
unsigned *vrow;
|
|
||||||
int j;
|
|
||||||
unsigned cword;
|
|
||||||
short *rp;
|
|
||||||
int b;
|
|
||||||
|
|
||||||
int ruleno;
|
fderives = XCALLOC (unsigned, nvars * rulesetsize);
|
||||||
int i;
|
|
||||||
|
|
||||||
fderives = XCALLOC (unsigned, nvars * rulesetsize) - ntokens * rulesetsize;
|
|
||||||
|
|
||||||
set_firsts ();
|
set_firsts ();
|
||||||
|
|
||||||
rrow = FDERIVES (ntokens);
|
for (i = ntokens; i < nsyms; ++i)
|
||||||
|
for (j = ntokens; j < nsyms; ++j)
|
||||||
for (i = ntokens; i < nsyms; i++)
|
if (BITISSET (FIRSTS (i), j - ntokens))
|
||||||
{
|
for (k = 0; derives[j][k] > 0; ++k)
|
||||||
vrow = FIRSTS (i - ntokens);
|
SETBIT (FDERIVES (i), derives[j][k]);
|
||||||
cword = *vrow++;
|
|
||||||
b = 0;
|
|
||||||
for (j = ntokens; j < nsyms; j++)
|
|
||||||
{
|
|
||||||
if (cword & (1 << b))
|
|
||||||
{
|
|
||||||
rp = derives[j];
|
|
||||||
while ((ruleno = *rp++) > 0)
|
|
||||||
SETBIT (rrow, ruleno);
|
|
||||||
}
|
|
||||||
|
|
||||||
b++;
|
|
||||||
if (b >= BITS_PER_WORD && j + 1 < nsyms)
|
|
||||||
{
|
|
||||||
cword = *vrow++;
|
|
||||||
b = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
rrow += rulesetsize;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
print_fderives ();
|
print_fderives ();
|
||||||
@@ -235,76 +190,59 @@ new_closure (int n)
|
|||||||
void
|
void
|
||||||
closure (short *core, int n)
|
closure (short *core, int n)
|
||||||
{
|
{
|
||||||
int ruleno;
|
/* Index over CORE. */
|
||||||
short *csp;
|
int c;
|
||||||
|
|
||||||
int itemno;
|
/* Index over RULESET. */
|
||||||
int i;
|
int r;
|
||||||
|
|
||||||
|
/* A bit index over RULESET. */
|
||||||
|
int ruleno;
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
{
|
print_closure ("input", core, n);
|
||||||
fprintf (stderr, "Entering closure (items = {");
|
|
||||||
for (i = 0; i < n; ++i)
|
|
||||||
fprintf (stderr, " %d ", core[i]);
|
|
||||||
fprintf (stderr, "}, nitems = %d)\n", n);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
{
|
{
|
||||||
for (i = 0; i < rulesetsize; ++i)
|
for (r = 0; r < rulesetsize; ++r)
|
||||||
ruleset[i] = FDERIVES (start_symbol)[i];
|
ruleset[r] = FDERIVES (start_symbol)[r];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (i = 0; i < rulesetsize; ++i)
|
for (r = 0; r < rulesetsize; ++r)
|
||||||
ruleset[i] = 0;
|
ruleset[r] = 0;
|
||||||
|
|
||||||
for (i = 0; i < n; ++i)
|
for (c = 0; c < n; ++c)
|
||||||
{
|
if (ISVAR (ritem[core[c]]))
|
||||||
int symbol = ritem[core[i]];
|
for (r = 0; r < rulesetsize; ++r)
|
||||||
if (ISVAR (symbol))
|
ruleset[r] |= FDERIVES (ritem[core[c]])[r];
|
||||||
{
|
|
||||||
int j;
|
|
||||||
for (j = 0; j < rulesetsize; ++j)
|
|
||||||
ruleset[j] |= FDERIVES (symbol)[j];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ruleno = 0;
|
nitemset = 0;
|
||||||
itemsetsize = 0;
|
c = 0;
|
||||||
csp = core;
|
for (ruleno = 0; ruleno < rulesetsize * BITS_PER_WORD; ++ruleno)
|
||||||
for (i = 0; i < rulesetsize; ++i)
|
if (BITISSET (ruleset, ruleno))
|
||||||
|
{
|
||||||
|
int itemno = rule_table[ruleno].rhs;
|
||||||
|
while (c < n && core[c] < itemno)
|
||||||
|
{
|
||||||
|
itemset[nitemset] = core[c];
|
||||||
|
nitemset++;
|
||||||
|
c++;
|
||||||
|
}
|
||||||
|
itemset[nitemset] = itemno;
|
||||||
|
nitemset++;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (c < n)
|
||||||
{
|
{
|
||||||
int word = ruleset[i];
|
itemset[nitemset] = core[c];
|
||||||
if (word == 0)
|
nitemset++;
|
||||||
{
|
c++;
|
||||||
ruleno += BITS_PER_WORD;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
int b;
|
|
||||||
|
|
||||||
for (b = 0; b < BITS_PER_WORD; b++)
|
|
||||||
{
|
|
||||||
if (word & (1 << b))
|
|
||||||
{
|
|
||||||
itemno = rule_table[ruleno].rhs;
|
|
||||||
while (csp < (core + n) && *csp < itemno)
|
|
||||||
itemset[itemsetsize++] = *csp++;
|
|
||||||
itemset[itemsetsize++] = itemno;
|
|
||||||
}
|
|
||||||
|
|
||||||
ruleno++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while (csp < (core + n))
|
|
||||||
itemset[itemsetsize++] = *csp++;
|
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
print_closure (n);
|
print_closure ("output", itemset, nitemset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -313,5 +251,5 @@ free_closure (void)
|
|||||||
{
|
{
|
||||||
XFREE (itemset);
|
XFREE (itemset);
|
||||||
XFREE (ruleset);
|
XFREE (ruleset);
|
||||||
XFREE (fderives + ntokens * rulesetsize);
|
XFREE (fderives);
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-8
@@ -30,18 +30,19 @@
|
|||||||
void new_closure PARAMS ((int n));
|
void new_closure PARAMS ((int n));
|
||||||
|
|
||||||
|
|
||||||
/* Given a vector of item numbers ITEMS, of length N, set up ruleset
|
/* Given the kernel (aka core) of a state (a vector of item numbers
|
||||||
and itemset to indicate what rules could be run and which items
|
ITEMS, of length N), set up ruleset and itemset to indicate what
|
||||||
could be accepted when those items are the active ones.
|
rules could be run and which items could be accepted when those
|
||||||
|
items are the active ones.
|
||||||
|
|
||||||
ruleset contains a bit for each rule. closure sets the bits for
|
ruleset contains a bit for each rule. closure sets the bits for
|
||||||
all rules which could potentially describe the next input to be
|
all rules which could potentially describe the next input to be
|
||||||
read.
|
read.
|
||||||
|
|
||||||
itemset is a vector of item numbers; itemsetend points to just
|
ITEMSET is a vector of item numbers; NITEMSET is its size
|
||||||
beyond the end of the part of it that is significant. closure
|
9actually, points to just beyond the end of the part of it that is
|
||||||
places there the indices of all items which represent units of
|
significant). closure places there the indices of all items which
|
||||||
input that could arrive next. */
|
represent units of input that could arrive next. */
|
||||||
|
|
||||||
void closure PARAMS ((short *items, int n));
|
void closure PARAMS ((short *items, int n));
|
||||||
|
|
||||||
@@ -51,6 +52,6 @@ void closure PARAMS ((short *items, int n));
|
|||||||
void free_closure PARAMS ((void));
|
void free_closure PARAMS ((void));
|
||||||
|
|
||||||
extern short *itemset;
|
extern short *itemset;
|
||||||
extern int itemsetsize;
|
extern int nitemset;
|
||||||
|
|
||||||
#endif /* !CLOSURE_H_ */
|
#endif /* !CLOSURE_H_ */
|
||||||
|
|||||||
+3
-3
@@ -41,6 +41,9 @@
|
|||||||
void exit ();
|
void exit ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* To get error_one_per_line. */
|
||||||
|
#include "error.h"
|
||||||
|
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
|
|
||||||
#ifndef HAVE_DECL_STRERROR_R
|
#ifndef HAVE_DECL_STRERROR_R
|
||||||
@@ -106,9 +109,6 @@ unsigned int warn_message_count;
|
|||||||
/* This variable is incremented each time `complain' is called. */
|
/* This variable is incremented each time `complain' is called. */
|
||||||
unsigned int complain_message_count;
|
unsigned int complain_message_count;
|
||||||
|
|
||||||
/* Sometimes we want to have at most one error per line. This
|
|
||||||
variable controls whether this mode is selected or not. */
|
|
||||||
int error_one_per_line;
|
|
||||||
|
|
||||||
/*--------------------------------.
|
/*--------------------------------.
|
||||||
| Report a warning, and proceed. |
|
| Report a warning, and proceed. |
|
||||||
|
|||||||
@@ -56,10 +56,6 @@ extern unsigned int warn_message_count;
|
|||||||
/* This variable is incremented each time `complain' is called. */
|
/* This variable is incremented each time `complain' is called. */
|
||||||
extern unsigned int complain_message_count;
|
extern unsigned int complain_message_count;
|
||||||
|
|
||||||
/* Sometimes we want to have at most one error per line. This
|
|
||||||
variable controls whether this mode is selected or not. */
|
|
||||||
extern int error_one_per_line;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+145
-317
@@ -29,7 +29,6 @@
|
|||||||
#include "reader.h"
|
#include "reader.h"
|
||||||
#include "LR0.h"
|
#include "LR0.h"
|
||||||
|
|
||||||
errs **err_table = NULL;
|
|
||||||
/* -1 stands for not specified. */
|
/* -1 stands for not specified. */
|
||||||
int expected_conflicts = -1;
|
int expected_conflicts = -1;
|
||||||
static char *conflicts = NULL;
|
static char *conflicts = NULL;
|
||||||
@@ -57,21 +56,12 @@ Conflict in state %d between rule %d and token %s resolved as %s.\n"),
|
|||||||
static void
|
static void
|
||||||
flush_shift (int state, int token)
|
flush_shift (int state, int token)
|
||||||
{
|
{
|
||||||
shifts *shiftp;
|
shifts *shiftp = state_table[state].shifts;
|
||||||
int k, i;
|
int i;
|
||||||
|
|
||||||
shiftp = state_table[state].shift_table;
|
for (i = 0; i < shiftp->nshifts; i++)
|
||||||
|
if (!SHIFT_IS_DISABLED (shiftp, i) && SHIFT_SYMBOL (shiftp, i) == token)
|
||||||
if (shiftp)
|
SHIFT_DISABLE (shiftp, i);
|
||||||
{
|
|
||||||
k = shiftp->nshifts;
|
|
||||||
for (i = 0; i < k; i++)
|
|
||||||
{
|
|
||||||
if (shiftp->shifts[i]
|
|
||||||
&& token == state_table[shiftp->shifts[i]].accessing_symbol)
|
|
||||||
(shiftp->shifts[i]) = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -86,95 +76,79 @@ static void
|
|||||||
resolve_sr_conflict (int state, int lookaheadnum)
|
resolve_sr_conflict (int state, int lookaheadnum)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int mask;
|
/* find the rule to reduce by to get precedence of reduction */
|
||||||
unsigned *fp1;
|
int redprec = rule_table[LAruleno[lookaheadnum]].prec;
|
||||||
unsigned *fp2;
|
|
||||||
int redprec;
|
|
||||||
errs *errp = ERRS_ALLOC (ntokens + 1);
|
errs *errp = ERRS_ALLOC (ntokens + 1);
|
||||||
short *errtokens = errp->errs;
|
short *errtokens = errp->errs;
|
||||||
|
|
||||||
/* find the rule to reduce by to get precedence of reduction */
|
|
||||||
redprec = rule_table[LAruleno[lookaheadnum]].prec;
|
|
||||||
|
|
||||||
mask = 1;
|
|
||||||
fp1 = LA (lookaheadnum);
|
|
||||||
fp2 = lookaheadset;
|
|
||||||
for (i = 0; i < ntokens; i++)
|
for (i = 0; i < ntokens; i++)
|
||||||
{
|
if (BITISSET (LA (lookaheadnum), i)
|
||||||
if ((mask & *fp2 & *fp1) && sprec[i])
|
&& BITISSET (lookaheadset, i)
|
||||||
/* Shift-reduce conflict occurs for token number i
|
&& sprec[i])
|
||||||
and it has a precedence.
|
/* Shift-reduce conflict occurs for token number i
|
||||||
The precedence of shifting is that of token i. */
|
and it has a precedence.
|
||||||
{
|
The precedence of shifting is that of token i. */
|
||||||
if (sprec[i] < redprec)
|
{
|
||||||
{
|
if (sprec[i] < redprec)
|
||||||
log_resolution (state, lookaheadnum, i, _("reduce"));
|
{
|
||||||
*fp2 &= ~mask; /* flush the shift for this token */
|
log_resolution (state, lookaheadnum, i, _("reduce"));
|
||||||
flush_shift (state, i);
|
/* flush the shift for this token */
|
||||||
}
|
RESETBIT (lookaheadset, i);
|
||||||
else if (sprec[i] > redprec)
|
flush_shift (state, i);
|
||||||
{
|
}
|
||||||
log_resolution (state, lookaheadnum, i, _("shift"));
|
else if (sprec[i] > redprec)
|
||||||
*fp1 &= ~mask; /* flush the reduce for this token */
|
{
|
||||||
}
|
log_resolution (state, lookaheadnum, i, _("shift"));
|
||||||
else
|
/* flush the reduce for this token */
|
||||||
{
|
RESETBIT (LA (lookaheadnum), i);
|
||||||
/* Matching precedence levels.
|
}
|
||||||
For left association, keep only the reduction.
|
else
|
||||||
For right association, keep only the shift.
|
{
|
||||||
For nonassociation, keep neither. */
|
/* Matching precedence levels.
|
||||||
|
For left association, keep only the reduction.
|
||||||
|
For right association, keep only the shift.
|
||||||
|
For nonassociation, keep neither. */
|
||||||
|
|
||||||
switch (sassoc[i])
|
switch (sassoc[i])
|
||||||
{
|
{
|
||||||
case right_assoc:
|
case right_assoc:
|
||||||
log_resolution (state, lookaheadnum, i, _("shift"));
|
log_resolution (state, lookaheadnum, i, _("shift"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case left_assoc:
|
case left_assoc:
|
||||||
log_resolution (state, lookaheadnum, i, _("reduce"));
|
log_resolution (state, lookaheadnum, i, _("reduce"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case non_assoc:
|
case non_assoc:
|
||||||
log_resolution (state, lookaheadnum, i, _("an error"));
|
log_resolution (state, lookaheadnum, i, _("an error"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sassoc[i] != right_assoc)
|
if (sassoc[i] != right_assoc)
|
||||||
{
|
{
|
||||||
*fp2 &= ~mask; /* flush the shift for this token */
|
/* flush the shift for this token */
|
||||||
flush_shift (state, i);
|
RESETBIT (lookaheadset, i);
|
||||||
}
|
flush_shift (state, i);
|
||||||
if (sassoc[i] != left_assoc)
|
}
|
||||||
{
|
if (sassoc[i] != left_assoc)
|
||||||
*fp1 &= ~mask; /* flush the reduce for this token */
|
{
|
||||||
}
|
/* flush the reduce for this token */
|
||||||
if (sassoc[i] == non_assoc)
|
RESETBIT (LA (lookaheadnum), i);
|
||||||
{
|
}
|
||||||
/* Record an explicit error for this token. */
|
if (sassoc[i] == non_assoc)
|
||||||
*errtokens++ = i;
|
{
|
||||||
}
|
/* Record an explicit error for this token. */
|
||||||
}
|
*errtokens++ = i;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
fp2++;
|
|
||||||
fp1++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
errp->nerrs = errtokens - errp->errs;
|
errp->nerrs = errtokens - errp->errs;
|
||||||
if (errp->nerrs)
|
/* Some tokens have been explicitly made errors. Allocate a
|
||||||
{
|
permanent errs structure for this state, to record them. */
|
||||||
/* Some tokens have been explicitly made errors. Allocate
|
i = (char *) errtokens - (char *) errp;
|
||||||
a permanent errs structure for this state, to record them. */
|
state_table[state].errs = ERRS_ALLOC (i + 1);
|
||||||
i = (char *) errtokens - (char *) errp;
|
memcpy (state_table[state].errs, errp, i);
|
||||||
err_table[state] = ERRS_ALLOC (i + 1);
|
|
||||||
bcopy (errp, err_table[state], i);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
err_table[state] = 0;
|
|
||||||
free (errp);
|
free (errp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,7 +158,6 @@ set_conflicts (int state)
|
|||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
shifts *shiftp;
|
shifts *shiftp;
|
||||||
int symbol;
|
|
||||||
|
|
||||||
if (state_table[state].consistent)
|
if (state_table[state].consistent)
|
||||||
return;
|
return;
|
||||||
@@ -192,15 +165,10 @@ set_conflicts (int state)
|
|||||||
for (i = 0; i < tokensetsize; i++)
|
for (i = 0; i < tokensetsize; i++)
|
||||||
lookaheadset[i] = 0;
|
lookaheadset[i] = 0;
|
||||||
|
|
||||||
shiftp = state_table[state].shift_table;
|
shiftp = state_table[state].shifts;
|
||||||
if (shiftp)
|
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
|
||||||
for (i = 0; i < shiftp->nshifts; i++)
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
{
|
SETBIT (lookaheadset, SHIFT_SYMBOL (shiftp, i));
|
||||||
symbol = state_table[shiftp->shifts[i]].accessing_symbol;
|
|
||||||
if (ISVAR (symbol))
|
|
||||||
break;
|
|
||||||
SETBIT (lookaheadset, symbol);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Loop over all rules which require lookahead in this state. First
|
/* Loop over all rules which require lookahead in this state. First
|
||||||
check for shift-reduce conflict, and try to resolve using
|
check for shift-reduce conflict, and try to resolve using
|
||||||
@@ -241,8 +209,6 @@ solve_conflicts (void)
|
|||||||
shiftset = XCALLOC (unsigned, tokensetsize);
|
shiftset = XCALLOC (unsigned, tokensetsize);
|
||||||
lookaheadset = XCALLOC (unsigned, tokensetsize);
|
lookaheadset = XCALLOC (unsigned, tokensetsize);
|
||||||
|
|
||||||
err_table = XCALLOC (errs *, nstates);
|
|
||||||
|
|
||||||
for (i = 0; i < nstates; i++)
|
for (i = 0; i < nstates; i++)
|
||||||
set_conflicts (i);
|
set_conflicts (i);
|
||||||
}
|
}
|
||||||
@@ -255,18 +221,10 @@ solve_conflicts (void)
|
|||||||
static int
|
static int
|
||||||
count_sr_conflicts (int state)
|
count_sr_conflicts (int state)
|
||||||
{
|
{
|
||||||
int i;
|
int i, k;
|
||||||
int k;
|
|
||||||
int mask;
|
|
||||||
shifts *shiftp;
|
|
||||||
unsigned *fp1;
|
|
||||||
unsigned *fp2;
|
|
||||||
unsigned *fp3;
|
|
||||||
int symbol;
|
|
||||||
|
|
||||||
int src_count = 0;
|
int src_count = 0;
|
||||||
|
shifts *shiftp = state_table[state].shifts;
|
||||||
|
|
||||||
shiftp = state_table[state].shift_table;
|
|
||||||
if (!shiftp)
|
if (!shiftp)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@@ -276,49 +234,22 @@ count_sr_conflicts (int state)
|
|||||||
lookaheadset[i] = 0;
|
lookaheadset[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
k = shiftp->nshifts;
|
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
|
||||||
for (i = 0; i < k; i++)
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
{
|
SETBIT (shiftset, SHIFT_SYMBOL (shiftp, i));
|
||||||
if (!shiftp->shifts[i])
|
|
||||||
continue;
|
|
||||||
symbol = state_table[shiftp->shifts[i]].accessing_symbol;
|
|
||||||
if (ISVAR (symbol))
|
|
||||||
break;
|
|
||||||
SETBIT (shiftset, symbol);
|
|
||||||
}
|
|
||||||
|
|
||||||
k = state_table[state + 1].lookaheads;
|
for (i = state_table[state].lookaheads;
|
||||||
fp3 = lookaheadset + tokensetsize;
|
i < state_table[state + 1].lookaheads;
|
||||||
|
++i)
|
||||||
|
for (k = 0; k < tokensetsize; ++k)
|
||||||
|
lookaheadset[k] |= LA (i)[k];
|
||||||
|
|
||||||
for (i = state_table[state].lookaheads; i < k; i++)
|
for (k = 0; k < tokensetsize; ++k)
|
||||||
{
|
lookaheadset[k] &= shiftset[k];
|
||||||
fp1 = LA (i);
|
|
||||||
fp2 = lookaheadset;
|
|
||||||
|
|
||||||
while (fp2 < fp3)
|
|
||||||
*fp2++ |= *fp1++;
|
|
||||||
}
|
|
||||||
|
|
||||||
fp1 = shiftset;
|
|
||||||
fp2 = lookaheadset;
|
|
||||||
|
|
||||||
while (fp2 < fp3)
|
|
||||||
*fp2++ &= *fp1++;
|
|
||||||
|
|
||||||
mask = 1;
|
|
||||||
fp2 = lookaheadset;
|
|
||||||
for (i = 0; i < ntokens; i++)
|
for (i = 0; i < ntokens; i++)
|
||||||
{
|
if (BITISSET (lookaheadset, i))
|
||||||
if (mask & *fp2)
|
src_count++;
|
||||||
src_count++;
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
fp2++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return src_count;
|
return src_count;
|
||||||
}
|
}
|
||||||
@@ -332,9 +263,6 @@ static int
|
|||||||
count_rr_conflicts (int state)
|
count_rr_conflicts (int state)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
unsigned mask;
|
|
||||||
unsigned *baseword;
|
|
||||||
|
|
||||||
int rrc_count = 0;
|
int rrc_count = 0;
|
||||||
|
|
||||||
int m = state_table[state].lookaheads;
|
int m = state_table[state].lookaheads;
|
||||||
@@ -343,31 +271,16 @@ count_rr_conflicts (int state)
|
|||||||
if (n - m < 2)
|
if (n - m < 2)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
mask = 1;
|
|
||||||
baseword = LA (m);
|
|
||||||
for (i = 0; i < ntokens; i++)
|
for (i = 0; i < ntokens; i++)
|
||||||
{
|
{
|
||||||
unsigned *wordp = baseword;
|
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int j;
|
int j;
|
||||||
for (j = m; j < n; j++)
|
for (j = m; j < n; j++)
|
||||||
{
|
if (BITISSET (LA (m), j))
|
||||||
if (mask & *wordp)
|
count++;
|
||||||
count++;
|
|
||||||
|
|
||||||
wordp += tokensetsize;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count >= 2)
|
if (count >= 2)
|
||||||
rrc_count++;
|
rrc_count++;
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
baseword++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rrc_count;
|
return rrc_count;
|
||||||
@@ -419,6 +332,7 @@ conflict_report (int src_num, int rrc_num)
|
|||||||
void
|
void
|
||||||
conflicts_output (FILE *out)
|
conflicts_output (FILE *out)
|
||||||
{
|
{
|
||||||
|
bool printed_sth = FALSE;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < nstates; i++)
|
for (i = 0; i < nstates; i++)
|
||||||
if (conflicts[i])
|
if (conflicts[i])
|
||||||
@@ -426,7 +340,10 @@ conflicts_output (FILE *out)
|
|||||||
fprintf (out, _("State %d contains "), i);
|
fprintf (out, _("State %d contains "), i);
|
||||||
fputs (conflict_report (count_sr_conflicts (i),
|
fputs (conflict_report (count_sr_conflicts (i),
|
||||||
count_rr_conflicts (i)), out);
|
count_rr_conflicts (i)), out);
|
||||||
|
printed_sth = TRUE;
|
||||||
}
|
}
|
||||||
|
if (printed_sth)
|
||||||
|
fputs ("\n\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -498,20 +415,8 @@ print_reductions (FILE *out, int state)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
int k;
|
|
||||||
unsigned *fp1;
|
|
||||||
unsigned *fp2;
|
|
||||||
unsigned *fp3;
|
|
||||||
unsigned *fp4;
|
|
||||||
int rule;
|
|
||||||
int symbol;
|
|
||||||
unsigned mask;
|
|
||||||
int m;
|
int m;
|
||||||
int n;
|
int n;
|
||||||
int default_LA;
|
|
||||||
int default_rule = 0;
|
|
||||||
int cmax;
|
|
||||||
int count;
|
|
||||||
shifts *shiftp;
|
shifts *shiftp;
|
||||||
errs *errp;
|
errs *errp;
|
||||||
int nodefault = 0;
|
int nodefault = 0;
|
||||||
@@ -519,105 +424,62 @@ print_reductions (FILE *out, int state)
|
|||||||
for (i = 0; i < tokensetsize; i++)
|
for (i = 0; i < tokensetsize; i++)
|
||||||
shiftset[i] = 0;
|
shiftset[i] = 0;
|
||||||
|
|
||||||
shiftp = state_table[state].shift_table;
|
shiftp = state_table[state].shifts;
|
||||||
if (shiftp)
|
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
|
||||||
{
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
k = shiftp->nshifts;
|
{
|
||||||
for (i = 0; i < k; i++)
|
/* if this state has a shift for the error token, don't use a
|
||||||
{
|
default rule. */
|
||||||
if (!shiftp->shifts[i])
|
if (SHIFT_IS_ERROR (shiftp, i))
|
||||||
continue;
|
nodefault = 1;
|
||||||
symbol = state_table[shiftp->shifts[i]].accessing_symbol;
|
SETBIT (shiftset, SHIFT_SYMBOL (shiftp, i));
|
||||||
if (ISVAR (symbol))
|
}
|
||||||
break;
|
|
||||||
/* if this state has a shift for the error token,
|
|
||||||
don't use a default rule. */
|
|
||||||
if (symbol == error_token_number)
|
|
||||||
nodefault = 1;
|
|
||||||
SETBIT (shiftset, symbol);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
errp = err_table[state];
|
errp = state_table[state].errs;
|
||||||
if (errp)
|
if (errp)
|
||||||
{
|
for (i = 0; i < errp->nerrs; i++)
|
||||||
k = errp->nerrs;
|
if (errp->errs[i])
|
||||||
for (i = 0; i < k; i++)
|
SETBIT (shiftset, errp->errs[i]);
|
||||||
{
|
|
||||||
if (!errp->errs[i])
|
|
||||||
continue;
|
|
||||||
symbol = errp->errs[i];
|
|
||||||
SETBIT (shiftset, symbol);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m = state_table[state].lookaheads;
|
m = state_table[state].lookaheads;
|
||||||
n = state_table[state + 1].lookaheads;
|
n = state_table[state + 1].lookaheads;
|
||||||
|
|
||||||
if (n - m == 1 && !nodefault)
|
if (n - m == 1 && !nodefault)
|
||||||
{
|
{
|
||||||
default_rule = LAruleno[m];
|
int k;
|
||||||
|
int default_rule = LAruleno[m];
|
||||||
|
|
||||||
fp1 = LA (m);
|
for (k = 0; k < tokensetsize; ++k)
|
||||||
fp2 = shiftset;
|
lookaheadset[k] = LA (m)[k] & shiftset[k];
|
||||||
fp3 = lookaheadset;
|
|
||||||
fp4 = lookaheadset + tokensetsize;
|
|
||||||
|
|
||||||
while (fp3 < fp4)
|
|
||||||
*fp3++ = *fp1++ & *fp2++;
|
|
||||||
|
|
||||||
mask = 1;
|
|
||||||
fp3 = lookaheadset;
|
|
||||||
|
|
||||||
for (i = 0; i < ntokens; i++)
|
for (i = 0; i < ntokens; i++)
|
||||||
{
|
if (BITISSET (lookaheadset, i))
|
||||||
if (mask & *fp3)
|
fprintf (out, _(" %-4s\t[reduce using rule %d (%s)]\n"),
|
||||||
fprintf (out, _(" %-4s\t[reduce using rule %d (%s)]\n"),
|
tags[i], default_rule,
|
||||||
tags[i], default_rule,
|
tags[rule_table[default_rule].lhs]);
|
||||||
tags[rule_table[default_rule].lhs]);
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
fp3++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fprintf (out, _(" $default\treduce using rule %d (%s)\n\n"),
|
fprintf (out, _(" $default\treduce using rule %d (%s)\n\n"),
|
||||||
default_rule, tags[rule_table[default_rule].lhs]);
|
default_rule, tags[rule_table[default_rule].lhs]);
|
||||||
}
|
}
|
||||||
else if (n - m >= 1)
|
else if (n - m >= 1)
|
||||||
{
|
{
|
||||||
cmax = 0;
|
int k;
|
||||||
default_LA = -1;
|
|
||||||
fp4 = lookaheadset + tokensetsize;
|
int cmax = 0;
|
||||||
|
int default_LA = -1;
|
||||||
|
int default_rule = 0;
|
||||||
|
|
||||||
if (!nodefault)
|
if (!nodefault)
|
||||||
for (i = m; i < n; i++)
|
for (i = m; i < n; i++)
|
||||||
{
|
{
|
||||||
fp1 = LA (i);
|
int count = 0;
|
||||||
fp2 = shiftset;
|
|
||||||
fp3 = lookaheadset;
|
|
||||||
|
|
||||||
while (fp3 < fp4)
|
for (k = 0; k < tokensetsize; ++k)
|
||||||
*fp3++ = *fp1++ & (~(*fp2++));
|
lookaheadset[k] = LA (i)[k] & ~shiftset[k];
|
||||||
|
|
||||||
count = 0;
|
|
||||||
mask = 1;
|
|
||||||
fp3 = lookaheadset;
|
|
||||||
for (j = 0; j < ntokens; j++)
|
for (j = 0; j < ntokens; j++)
|
||||||
{
|
if (BITISSET (lookaheadset, j))
|
||||||
if (mask & *fp3)
|
count++;
|
||||||
count++;
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
fp3++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count > cmax)
|
if (count > cmax)
|
||||||
{
|
{
|
||||||
@@ -626,56 +488,34 @@ print_reductions (FILE *out, int state)
|
|||||||
default_rule = LAruleno[i];
|
default_rule = LAruleno[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
fp2 = shiftset;
|
for (k = 0; k < tokensetsize; ++k)
|
||||||
fp3 = lookaheadset;
|
shiftset[k] |= lookaheadset[k];
|
||||||
|
|
||||||
while (fp3 < fp4)
|
|
||||||
*fp2++ |= *fp3++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < tokensetsize; i++)
|
for (i = 0; i < tokensetsize; i++)
|
||||||
shiftset[i] = 0;
|
shiftset[i] = 0;
|
||||||
|
|
||||||
if (shiftp)
|
for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
|
||||||
{
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
k = shiftp->nshifts;
|
SETBIT (shiftset, SHIFT_SYMBOL (shiftp, i));
|
||||||
for (i = 0; i < k; i++)
|
|
||||||
{
|
|
||||||
if (!shiftp->shifts[i])
|
|
||||||
continue;
|
|
||||||
symbol = state_table[shiftp->shifts[i]].accessing_symbol;
|
|
||||||
if (ISVAR (symbol))
|
|
||||||
break;
|
|
||||||
SETBIT (shiftset, symbol);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mask = 1;
|
|
||||||
fp1 = LA (m);
|
|
||||||
fp2 = shiftset;
|
|
||||||
for (i = 0; i < ntokens; i++)
|
for (i = 0; i < ntokens; i++)
|
||||||
{
|
{
|
||||||
int defaulted = 0;
|
int defaulted = 0;
|
||||||
|
int count = BITISSET (shiftset, i);
|
||||||
|
|
||||||
if (mask & *fp2)
|
|
||||||
count = 1;
|
|
||||||
else
|
|
||||||
count = 0;
|
|
||||||
|
|
||||||
fp3 = fp1;
|
|
||||||
for (j = m; j < n; j++)
|
for (j = m; j < n; j++)
|
||||||
{
|
{
|
||||||
if (mask & *fp3)
|
if (BITISSET (LA (m), j))
|
||||||
{
|
{
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
{
|
{
|
||||||
if (j != default_LA)
|
if (j != default_LA)
|
||||||
{
|
fprintf (out,
|
||||||
rule = LAruleno[j];
|
_(" %-4s\treduce using rule %d (%s)\n"),
|
||||||
fprintf (out,
|
tags[i],
|
||||||
_(" %-4s\treduce using rule %d (%s)\n"),
|
LAruleno[j],
|
||||||
tags[i], rule, tags[rule_table[rule].lhs]);
|
tags[rule_table[LAruleno[j]].lhs]);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
defaulted = 1;
|
defaulted = 1;
|
||||||
|
|
||||||
@@ -684,31 +524,19 @@ print_reductions (FILE *out, int state)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (defaulted)
|
if (defaulted)
|
||||||
{
|
fprintf (out,
|
||||||
rule = LAruleno[default_LA];
|
_(" %-4s\treduce using rule %d (%s)\n"),
|
||||||
fprintf (out,
|
tags[i],
|
||||||
_(" %-4s\treduce using rule %d (%s)\n"),
|
LAruleno[default_LA],
|
||||||
tags[i], rule, tags[rule_table[rule].lhs]);
|
tags[rule_table[LAruleno[default_LA]].lhs]);
|
||||||
defaulted = 0;
|
defaulted = 0;
|
||||||
}
|
|
||||||
rule = LAruleno[j];
|
|
||||||
fprintf (out,
|
fprintf (out,
|
||||||
_(" %-4s\t[reduce using rule %d (%s)]\n"),
|
_(" %-4s\t[reduce using rule %d (%s)]\n"),
|
||||||
tags[i], rule, tags[rule_table[rule].lhs]);
|
tags[i],
|
||||||
|
LAruleno[j],
|
||||||
|
tags[rule_table[LAruleno[j]].lhs]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fp3 += tokensetsize;
|
|
||||||
}
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
/* We tried incrementing just fp1, and just fp2; both seem wrong.
|
|
||||||
It seems necessary to increment both in sync. */
|
|
||||||
fp1++;
|
|
||||||
fp2++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -1,5 +1,5 @@
|
|||||||
/* Find and resolve or report look-ahead conflicts for bison,
|
/* Find and resolve or report look-ahead conflicts for bison,
|
||||||
Copyright 2000 Free Software Foundation, Inc.
|
Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -29,6 +29,5 @@ void print_reductions PARAMS ((FILE*out, int state));
|
|||||||
void free_conflicts PARAMS ((void));
|
void free_conflicts PARAMS ((void));
|
||||||
|
|
||||||
/* Were there conflicts? */
|
/* Were there conflicts? */
|
||||||
extern errs **err_table;
|
|
||||||
extern int expected_conflicts;
|
extern int expected_conflicts;
|
||||||
#endif /* !CONFLICTS_H_ */
|
#endif /* !CONFLICTS_H_ */
|
||||||
|
|||||||
+10
-19
@@ -19,11 +19,6 @@
|
|||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
|
||||||
/* set_derives finds, for each variable (nonterminal), which rules can
|
|
||||||
derive it. It sets up the value of derives so that derives[i -
|
|
||||||
ntokens] points to a vector of rule numbers, terminated with -1.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "getargs.h"
|
#include "getargs.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
@@ -31,8 +26,7 @@
|
|||||||
#include "gram.h"
|
#include "gram.h"
|
||||||
#include "derives.h"
|
#include "derives.h"
|
||||||
|
|
||||||
short **derives;
|
short **derives = NULL;
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_derives (void)
|
print_derives (void)
|
||||||
@@ -51,7 +45,7 @@ print_derives (void)
|
|||||||
fprintf (stderr, "\t\t%d:", *sp);
|
fprintf (stderr, "\t\t%d:", *sp);
|
||||||
for (rhsp = ritem + rule_table[*sp].rhs; *rhsp > 0; ++rhsp)
|
for (rhsp = ritem + rule_table[*sp].rhs; *rhsp > 0; ++rhsp)
|
||||||
fprintf (stderr, " %s", tags[*rhsp]);
|
fprintf (stderr, " %s", tags[*rhsp]);
|
||||||
fputc ('\n', stderr);
|
fprintf (stderr, " (rule %d)\n", -*rhsp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,7 +57,6 @@ void
|
|||||||
set_derives (void)
|
set_derives (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int lhs;
|
|
||||||
shorts *p;
|
shorts *p;
|
||||||
short *q;
|
short *q;
|
||||||
shorts **dset;
|
shorts **dset;
|
||||||
@@ -74,16 +67,14 @@ set_derives (void)
|
|||||||
|
|
||||||
p = delts;
|
p = delts;
|
||||||
for (i = nrules; i > 0; i--)
|
for (i = nrules; i > 0; i--)
|
||||||
{
|
if (rule_table[i].useful)
|
||||||
lhs = rule_table[i].lhs;
|
{
|
||||||
if (lhs >= 0)
|
int lhs = rule_table[i].lhs;
|
||||||
{
|
p->next = dset[lhs];
|
||||||
p->next = dset[lhs];
|
p->value = i;
|
||||||
p->value = i;
|
dset[lhs] = p;
|
||||||
dset[lhs] = p;
|
p++;
|
||||||
p++;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
derives = XCALLOC (short *, nvars) - ntokens;
|
derives = XCALLOC (short *, nvars) - ntokens;
|
||||||
q = XCALLOC (short, nvars + nrules);
|
q = XCALLOC (short, nvars + nrules);
|
||||||
|
|||||||
+4
-5
@@ -1,5 +1,5 @@
|
|||||||
/* Match rules with nonterminals for bison,
|
/* Match rules with nonterminals for bison,
|
||||||
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
|
Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -21,12 +21,11 @@
|
|||||||
#ifndef DERIVES_H_
|
#ifndef DERIVES_H_
|
||||||
# define DERIVES_H_
|
# define DERIVES_H_
|
||||||
|
|
||||||
|
/* DERIVES[SYMBOL - NTOKENS] points to a vector of the number of the
|
||||||
|
rules that SYMBOL derives, terminated with -1. */
|
||||||
extern short **derives;
|
extern short **derives;
|
||||||
|
|
||||||
/* set_derives finds, for each variable (nonterminal), which rules can
|
/* Compute DERIVES. */
|
||||||
derive it. It sets up the value of derives so that derives[i -
|
|
||||||
ntokens] points to a vector of rule numbers, terminated with -1.
|
|
||||||
*/
|
|
||||||
|
|
||||||
void set_derives PARAMS((void));
|
void set_derives PARAMS((void));
|
||||||
void free_derives PARAMS((void));
|
void free_derives PARAMS((void));
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "getargs.h"
|
#include "getargs.h"
|
||||||
#include "files.h"
|
#include "files.h"
|
||||||
#include "gram.h"
|
#include "gram.h"
|
||||||
|
#include "error.h"
|
||||||
#include "complain.h"
|
#include "complain.h"
|
||||||
|
|
||||||
FILE *finput = NULL;
|
FILE *finput = NULL;
|
||||||
|
|||||||
+56
-19
@@ -1,28 +1,27 @@
|
|||||||
/* Allocate input grammar variables for bison,
|
/* Allocate input grammar variables for bison,
|
||||||
Copyright 1984, 1986, 1989, 2001 Free Software Foundation, Inc.
|
Copyright 1984, 1986, 1989, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
Bison is free software; you can redistribute it and/or modify
|
Bison is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2, or (at your option)
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
any later version.
|
any later version.
|
||||||
|
|
||||||
Bison is distributed in the hope that it will be useful,
|
Bison is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with Bison; see the file COPYING. If not, write to
|
along with Bison; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "gram.h"
|
#include "gram.h"
|
||||||
|
#include "reader.h"
|
||||||
void dummy PARAMS((void));
|
|
||||||
|
|
||||||
/* comments for these variables are in gram.h */
|
/* comments for these variables are in gram.h */
|
||||||
|
|
||||||
@@ -40,7 +39,6 @@ short *sprec = NULL;
|
|||||||
short *rassoc = NULL;
|
short *rassoc = NULL;
|
||||||
short *sassoc = NULL;
|
short *sassoc = NULL;
|
||||||
short *token_translations = NULL;
|
short *token_translations = NULL;
|
||||||
short *rline = NULL;
|
|
||||||
|
|
||||||
int start_symbol;
|
int start_symbol;
|
||||||
|
|
||||||
@@ -52,10 +50,49 @@ int pure_parser;
|
|||||||
|
|
||||||
int error_token_number;
|
int error_token_number;
|
||||||
|
|
||||||
/* This is to avoid linker problems which occur on VMS when using GCC,
|
|
||||||
when the file in question contains data definitions only. */
|
/*------------------------.
|
||||||
|
| Dump RITEM for traces. |
|
||||||
|
`------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
dummy (void)
|
ritem_print (FILE *out)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
fputs ("RITEM\n", out);
|
||||||
|
for (i = 0; ritem[i]; ++i)
|
||||||
|
if (ritem[i] > 0)
|
||||||
|
fprintf (out, " %s", tags[ritem[i]]);
|
||||||
|
else
|
||||||
|
fprintf (out, " (rule %d)\n", -ritem[i]);
|
||||||
|
fputs ("\n\n", out);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------.
|
||||||
|
| Return the size of the longest rule RHS. |
|
||||||
|
`------------------------------------------*/
|
||||||
|
|
||||||
|
size_t
|
||||||
|
ritem_longest_rhs (void)
|
||||||
|
{
|
||||||
|
short *itemp;
|
||||||
|
int length;
|
||||||
|
int max;
|
||||||
|
|
||||||
|
length = 0;
|
||||||
|
max = 0;
|
||||||
|
for (itemp = ritem; *itemp; itemp++)
|
||||||
|
if (*itemp > 0)
|
||||||
|
{
|
||||||
|
length++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (length > max)
|
||||||
|
max = length;
|
||||||
|
length = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return max;
|
||||||
}
|
}
|
||||||
|
|||||||
+11
@@ -59,6 +59,8 @@
|
|||||||
|
|
||||||
RULE_TABLE[R].line -- the line where R was defined.
|
RULE_TABLE[R].line -- the line where R was defined.
|
||||||
|
|
||||||
|
RULE_TABLE[R].useful -- TRUE iff the rule is used.
|
||||||
|
|
||||||
The right hand side is stored as symbol numbers in a portion of
|
The right hand side is stored as symbol numbers in a portion of
|
||||||
RITEM.
|
RITEM.
|
||||||
|
|
||||||
@@ -119,6 +121,7 @@ typedef struct rule_s
|
|||||||
short precsym;
|
short precsym;
|
||||||
short assoc;
|
short assoc;
|
||||||
short line;
|
short line;
|
||||||
|
bool useful;
|
||||||
} rule_t;
|
} rule_t;
|
||||||
|
|
||||||
extern struct rule_s *rule_table;
|
extern struct rule_s *rule_table;
|
||||||
@@ -144,4 +147,12 @@ extern int pure_parser;
|
|||||||
/* ERROR_TOKEN_NUMBER is the token number of the error token. */
|
/* ERROR_TOKEN_NUMBER is the token number of the error token. */
|
||||||
|
|
||||||
extern int error_token_number;
|
extern int error_token_number;
|
||||||
|
|
||||||
|
|
||||||
|
/* Dump RITEM for traces. */
|
||||||
|
void ritem_print PARAMS ((FILE *out));
|
||||||
|
|
||||||
|
/* Return the size of the longest rule RHS. */
|
||||||
|
size_t ritem_longest_rhs PARAMS ((void));
|
||||||
|
|
||||||
#endif /* !GRAM_H_ */
|
#endif /* !GRAM_H_ */
|
||||||
|
|||||||
+185
-240
@@ -31,6 +31,7 @@
|
|||||||
#include "lalr.h"
|
#include "lalr.h"
|
||||||
#include "nullable.h"
|
#include "nullable.h"
|
||||||
#include "derives.h"
|
#include "derives.h"
|
||||||
|
#include "getargs.h"
|
||||||
|
|
||||||
/* All the decorated states, indexed by the state number. Warning:
|
/* All the decorated states, indexed by the state number. Warning:
|
||||||
there is a state_TABLE in LR0.c, but it is different and static.
|
there is a state_TABLE in LR0.c, but it is different and static.
|
||||||
@@ -41,82 +42,69 @@ int tokensetsize;
|
|||||||
short *LAruleno;
|
short *LAruleno;
|
||||||
unsigned *LA;
|
unsigned *LA;
|
||||||
|
|
||||||
|
static int ngotos;
|
||||||
short *goto_map;
|
short *goto_map;
|
||||||
short *from_state;
|
short *from_state;
|
||||||
short *to_state;
|
short *to_state;
|
||||||
|
|
||||||
extern void berror PARAMS ((const char *));
|
/* And for the famous F variable, which name is so descriptive that a
|
||||||
|
|
||||||
static int infinity;
|
|
||||||
static int ngotos;
|
|
||||||
|
|
||||||
/* And for the famous F variable, which named is so descriptive that a
|
|
||||||
comment is hardly needed. <grin>. */
|
comment is hardly needed. <grin>. */
|
||||||
static unsigned *F = NULL;
|
static unsigned *F = NULL;
|
||||||
#define F(Rule) (F + (Rule) * tokensetsize)
|
#define F(Rule) (F + (Rule) * tokensetsize)
|
||||||
|
|
||||||
static short **includes;
|
static short **includes;
|
||||||
static shorts **lookback;
|
static shorts **lookback;
|
||||||
|
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------.
|
||||||
|
| digraph & traverse. |
|
||||||
|
| |
|
||||||
|
| The following variables are used as common storage between the |
|
||||||
|
| two. |
|
||||||
|
`---------------------------------------------------------------*/
|
||||||
|
|
||||||
static short **R;
|
static short **R;
|
||||||
static short *INDEX;
|
static short *INDEX;
|
||||||
static short *VERTICES;
|
static short *VERTICES;
|
||||||
static int top;
|
static int top;
|
||||||
|
static int infinity;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
traverse (int i)
|
traverse (int i)
|
||||||
{
|
{
|
||||||
unsigned *fp1;
|
|
||||||
unsigned *fp2;
|
|
||||||
unsigned *fp3;
|
|
||||||
int j;
|
int j;
|
||||||
short *rp;
|
size_t k;
|
||||||
|
|
||||||
int height;
|
int height;
|
||||||
unsigned *base;
|
size_t size = F (i + 1) - F(i);
|
||||||
|
|
||||||
VERTICES[++top] = i;
|
VERTICES[++top] = i;
|
||||||
INDEX[i] = height = top;
|
INDEX[i] = height = top;
|
||||||
|
|
||||||
base = F (i);
|
if (R[i])
|
||||||
fp3 = F (i + 1);
|
for (j = 0; R[i][j] >= 0; ++j)
|
||||||
|
{
|
||||||
|
if (INDEX[R[i][j]] == 0)
|
||||||
|
traverse (R[i][j]);
|
||||||
|
|
||||||
rp = R[i];
|
if (INDEX[i] > INDEX[R[i][j]])
|
||||||
if (rp)
|
INDEX[i] = INDEX[R[i][j]];
|
||||||
{
|
|
||||||
while ((j = *rp++) >= 0)
|
|
||||||
{
|
|
||||||
if (INDEX[j] == 0)
|
|
||||||
traverse (j);
|
|
||||||
|
|
||||||
if (INDEX[i] > INDEX[j])
|
for (k = 0; k < size; ++k)
|
||||||
INDEX[i] = INDEX[j];
|
F (i)[k] |= F (R[i][j])[k];
|
||||||
|
}
|
||||||
fp1 = base;
|
|
||||||
fp2 = F (j);
|
|
||||||
|
|
||||||
while (fp1 < fp3)
|
|
||||||
*fp1++ |= *fp2++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (INDEX[i] == height)
|
if (INDEX[i] == height)
|
||||||
{
|
for (;;)
|
||||||
for (;;)
|
{
|
||||||
{
|
j = VERTICES[top--];
|
||||||
j = VERTICES[top--];
|
INDEX[j] = infinity;
|
||||||
INDEX[j] = infinity;
|
|
||||||
|
|
||||||
if (i == j)
|
if (i == j)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
fp1 = base;
|
for (k = 0; k < size; ++k)
|
||||||
fp2 = F (j);
|
F (i)[k] = F (j)[k];
|
||||||
|
}
|
||||||
while (fp1 < fp3)
|
|
||||||
*fp2++ = *fp1++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -168,13 +156,22 @@ set_state_table (void)
|
|||||||
{
|
{
|
||||||
shifts *sp;
|
shifts *sp;
|
||||||
for (sp = first_shift; sp; sp = sp->next)
|
for (sp = first_shift; sp; sp = sp->next)
|
||||||
state_table[sp->number].shift_table = sp;
|
state_table[sp->number].shifts = sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
reductions *rp;
|
reductions *rp;
|
||||||
for (rp = first_reduction; rp; rp = rp->next)
|
for (rp = first_reduction; rp; rp = rp->next)
|
||||||
state_table[rp->number].reduction_table = rp;
|
state_table[rp->number].reductions = rp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pessimization, but simplification of the code: make sense all the
|
||||||
|
states have a shifts, even if reduced to 0 shifts. */
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < nstates; i++)
|
||||||
|
if (!state_table[i].shifts)
|
||||||
|
state_table[i].shifts = shifts_new (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initializing the lookaheads members. Please note that it must be
|
/* Initializing the lookaheads members. Please note that it must be
|
||||||
@@ -186,60 +183,29 @@ set_state_table (void)
|
|||||||
for (i = 0; i < nstates; i++)
|
for (i = 0; i < nstates; i++)
|
||||||
{
|
{
|
||||||
int k;
|
int k;
|
||||||
reductions *rp = state_table[i].reduction_table;
|
reductions *rp = state_table[i].reductions;
|
||||||
shifts *sp = state_table[i].shift_table;
|
shifts *sp = state_table[i].shifts;
|
||||||
|
|
||||||
state_table[i].lookaheads = count;
|
state_table[i].lookaheads = count;
|
||||||
|
|
||||||
if (rp
|
if (rp
|
||||||
&& (rp->nreds > 1
|
&& (rp->nreds > 1 || (sp->nshifts && SHIFT_IS_SHIFT (sp, 0))))
|
||||||
|| (sp && !ISVAR (state_table[sp->shifts[0]].accessing_symbol))))
|
|
||||||
count += rp->nreds;
|
count += rp->nreds;
|
||||||
else
|
else
|
||||||
state_table[i].consistent = 1;
|
state_table[i].consistent = 1;
|
||||||
|
|
||||||
if (sp)
|
for (k = 0; k < sp->nshifts; k++)
|
||||||
for (k = 0; k < sp->nshifts; k++)
|
if (SHIFT_IS_ERROR (sp, k))
|
||||||
if (state_table[sp->shifts[k]].accessing_symbol
|
{
|
||||||
== error_token_number)
|
state_table[i].consistent = 0;
|
||||||
{
|
break;
|
||||||
state_table[i].consistent = 0;
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
state_table[nstates].lookaheads = count;
|
state_table[nstates].lookaheads = count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Return the size of the longest ride hand side of the rules. */
|
|
||||||
static size_t
|
|
||||||
maxrhs (void)
|
|
||||||
{
|
|
||||||
short *itemp;
|
|
||||||
int length;
|
|
||||||
int max;
|
|
||||||
|
|
||||||
length = 0;
|
|
||||||
max = 0;
|
|
||||||
for (itemp = ritem; *itemp; itemp++)
|
|
||||||
{
|
|
||||||
if (*itemp > 0)
|
|
||||||
{
|
|
||||||
length++;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (length > max)
|
|
||||||
max = length;
|
|
||||||
length = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return max;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
initialize_LA (void)
|
initialize_LA (void)
|
||||||
{
|
{
|
||||||
@@ -259,7 +225,7 @@ initialize_LA (void)
|
|||||||
np = LAruleno;
|
np = LAruleno;
|
||||||
for (i = 0; i < nstates; i++)
|
for (i = 0; i < nstates; i++)
|
||||||
if (!state_table[i].consistent)
|
if (!state_table[i].consistent)
|
||||||
if ((rp = state_table[i].reduction_table))
|
if ((rp = state_table[i].reductions))
|
||||||
for (j = 0; j < rp->nreds; j++)
|
for (j = 0; j < rp->nreds; j++)
|
||||||
*np++ = rp->rules[j];
|
*np++ = rp->rules[j];
|
||||||
}
|
}
|
||||||
@@ -281,21 +247,17 @@ set_goto_map (void)
|
|||||||
|
|
||||||
ngotos = 0;
|
ngotos = 0;
|
||||||
for (sp = first_shift; sp; sp = sp->next)
|
for (sp = first_shift; sp; sp = sp->next)
|
||||||
{
|
if (sp->nshifts)
|
||||||
for (i = sp->nshifts - 1; i >= 0; i--)
|
for (i = sp->nshifts - 1; i >= 0 && SHIFT_IS_GOTO (sp, i); --i)
|
||||||
{
|
{
|
||||||
symbol = state_table[sp->shifts[i]].accessing_symbol;
|
symbol = state_table[sp->shifts[i]].accessing_symbol;
|
||||||
|
|
||||||
if (ISTOKEN (symbol))
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (ngotos == MAXSHORT)
|
if (ngotos == MAXSHORT)
|
||||||
fatal (_("too many gotos (max %d)"), MAXSHORT);
|
fatal (_("too many gotos (max %d)"), MAXSHORT);
|
||||||
|
|
||||||
ngotos++;
|
ngotos++;
|
||||||
goto_map[symbol]++;
|
goto_map[symbol]++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
k = 0;
|
k = 0;
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = ntokens; i < nsyms; i++)
|
||||||
@@ -316,18 +278,16 @@ set_goto_map (void)
|
|||||||
for (sp = first_shift; sp; sp = sp->next)
|
for (sp = first_shift; sp; sp = sp->next)
|
||||||
{
|
{
|
||||||
state1 = sp->number;
|
state1 = sp->number;
|
||||||
for (i = sp->nshifts - 1; i >= 0; i--)
|
if (sp->nshifts)
|
||||||
{
|
for (i = sp->nshifts - 1; i >= 0 && SHIFT_IS_GOTO (sp, i); --i)
|
||||||
state2 = sp->shifts[i];
|
{
|
||||||
symbol = state_table[state2].accessing_symbol;
|
state2 = sp->shifts[i];
|
||||||
|
symbol = state_table[state2].accessing_symbol;
|
||||||
|
|
||||||
if (ISTOKEN (symbol))
|
k = temp_map[symbol]++;
|
||||||
break;
|
from_state[k] = state1;
|
||||||
|
to_state[k] = state2;
|
||||||
k = temp_map[symbol]++;
|
}
|
||||||
from_state[k] = state1;
|
|
||||||
to_state[k] = state2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XFREE (temp_map + ntokens);
|
XFREE (temp_map + ntokens);
|
||||||
@@ -371,64 +331,40 @@ map_goto (int state, int symbol)
|
|||||||
static void
|
static void
|
||||||
initialize_F (void)
|
initialize_F (void)
|
||||||
{
|
{
|
||||||
|
short **reads = XCALLOC (short *, ngotos);
|
||||||
|
short *edge = XCALLOC (short, ngotos + 1);
|
||||||
|
int nedges = 0;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int j;
|
|
||||||
int k;
|
|
||||||
shifts *sp;
|
|
||||||
short *edge;
|
|
||||||
unsigned *rowp;
|
|
||||||
short *rp;
|
|
||||||
short **reads;
|
|
||||||
int nedges;
|
|
||||||
int stateno;
|
|
||||||
int symbol;
|
|
||||||
int nwords;
|
|
||||||
|
|
||||||
nwords = ngotos * tokensetsize;
|
F = XCALLOC (unsigned, ngotos * tokensetsize);
|
||||||
F = XCALLOC (unsigned, nwords);
|
|
||||||
|
|
||||||
reads = XCALLOC (short *, ngotos);
|
|
||||||
edge = XCALLOC (short, ngotos + 1);
|
|
||||||
nedges = 0;
|
|
||||||
|
|
||||||
rowp = F;
|
|
||||||
for (i = 0; i < ngotos; i++)
|
for (i = 0; i < ngotos; i++)
|
||||||
{
|
{
|
||||||
stateno = to_state[i];
|
int stateno = to_state[i];
|
||||||
sp = state_table[stateno].shift_table;
|
shifts *sp = state_table[stateno].shifts;
|
||||||
|
|
||||||
if (sp)
|
int j;
|
||||||
|
for (j = 0; j < sp->nshifts && SHIFT_IS_SHIFT (sp, j); j++)
|
||||||
{
|
{
|
||||||
k = sp->nshifts;
|
int symbol = state_table[sp->shifts[j]].accessing_symbol;
|
||||||
|
SETBIT (F (i), symbol);
|
||||||
for (j = 0; j < k; j++)
|
|
||||||
{
|
|
||||||
symbol = state_table[sp->shifts[j]].accessing_symbol;
|
|
||||||
if (ISVAR (symbol))
|
|
||||||
break;
|
|
||||||
SETBIT (rowp, symbol);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (; j < k; j++)
|
|
||||||
{
|
|
||||||
symbol = state_table[sp->shifts[j]].accessing_symbol;
|
|
||||||
if (nullable[symbol])
|
|
||||||
edge[nedges++] = map_goto (stateno, symbol);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nedges)
|
|
||||||
{
|
|
||||||
reads[i] = rp = XCALLOC (short, nedges + 1);
|
|
||||||
|
|
||||||
for (j = 0; j < nedges; j++)
|
|
||||||
rp[j] = edge[j];
|
|
||||||
|
|
||||||
rp[nedges] = -1;
|
|
||||||
nedges = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rowp += tokensetsize;
|
for (; j < sp->nshifts; j++)
|
||||||
|
{
|
||||||
|
int symbol = state_table[sp->shifts[j]].accessing_symbol;
|
||||||
|
if (nullable[symbol])
|
||||||
|
edge[nedges++] = map_goto (stateno, symbol);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nedges)
|
||||||
|
{
|
||||||
|
reads[i] = XCALLOC (short, nedges + 1);
|
||||||
|
shortcpy (reads[i], edge, nedges);
|
||||||
|
reads[i][nedges] = -1;
|
||||||
|
nedges = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
digraph (reads);
|
digraph (reads);
|
||||||
@@ -469,56 +405,87 @@ add_lookback_edge (int stateno, int ruleno, int gotono)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void
|
||||||
|
matrix_print (FILE *out, short **matrix, int n)
|
||||||
|
{
|
||||||
|
int i, j;
|
||||||
|
|
||||||
|
for (i = 0; i < n; ++i)
|
||||||
|
{
|
||||||
|
fprintf (out, "%3d: ", i);
|
||||||
|
if (matrix[i])
|
||||||
|
for (j = 0; matrix[i][j] != -1; ++j)
|
||||||
|
fprintf (out, "%3d ", matrix[i][j]);
|
||||||
|
fputc ('\n', out);
|
||||||
|
}
|
||||||
|
fputc ('\n', out);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------.
|
||||||
|
| Return the transpose of R_ARG, of size N. Destroy R_ARG, as it is |
|
||||||
|
| replaced with the result. |
|
||||||
|
| |
|
||||||
|
| R_ARG[I] is NULL or a -1 terminated list of numbers. |
|
||||||
|
| |
|
||||||
|
| RESULT[NUM] is NULL or the -1 terminated list of the I such as NUM |
|
||||||
|
| is in R_ARG[I]. |
|
||||||
|
`-------------------------------------------------------------------*/
|
||||||
|
|
||||||
static short **
|
static short **
|
||||||
transpose (short **R_arg, int n)
|
transpose (short **R_arg, int n)
|
||||||
{
|
{
|
||||||
short **new_R;
|
/* The result. */
|
||||||
short **temp_R;
|
short **new_R = XCALLOC (short *, n);
|
||||||
short *nedges;
|
/* END_R[I] -- next entry of NEW_R[I]. */
|
||||||
short *sp;
|
short **end_R = XCALLOC (short *, n);
|
||||||
int i;
|
/* NEDGES[I] -- total size of NEW_R[I]. */
|
||||||
int k;
|
short *nedges = XCALLOC (short, n);
|
||||||
|
int i, j;
|
||||||
|
|
||||||
nedges = XCALLOC (short, n);
|
if (trace_flag)
|
||||||
|
|
||||||
for (i = 0; i < n; i++)
|
|
||||||
{
|
{
|
||||||
sp = R_arg[i];
|
fputs ("transpose: input\n", stderr);
|
||||||
if (sp)
|
matrix_print (stderr, R_arg, n);
|
||||||
{
|
|
||||||
while (*sp >= 0)
|
|
||||||
nedges[*sp++]++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
new_R = XCALLOC (short *, n);
|
/* Count. */
|
||||||
temp_R = XCALLOC (short *, n);
|
|
||||||
|
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
{
|
if (R_arg[i])
|
||||||
k = nedges[i];
|
for (j = 0; R_arg[i][j] >= 0; ++j)
|
||||||
if (k > 0)
|
++nedges[R_arg[i][j]];
|
||||||
{
|
|
||||||
sp = XCALLOC (short, k + 1);
|
|
||||||
new_R[i] = sp;
|
|
||||||
temp_R[i] = sp;
|
|
||||||
sp[k] = -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
XFREE (nedges);
|
|
||||||
|
|
||||||
|
/* Allocate. */
|
||||||
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
||||||
{
|
if (nedges[i] > 0)
|
||||||
sp = R_arg[i];
|
{
|
||||||
if (sp)
|
short *sp = XCALLOC (short, nedges[i] + 1);
|
||||||
{
|
sp[nedges[i]] = -1;
|
||||||
while (*sp >= 0)
|
new_R[i] = sp;
|
||||||
*temp_R[*sp++]++ = i;
|
end_R[i] = sp;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
XFREE (temp_R);
|
/* Store. */
|
||||||
|
for (i = 0; i < n; i++)
|
||||||
|
if (R_arg[i])
|
||||||
|
for (j = 0; R_arg[i][j] >= 0; ++j)
|
||||||
|
{
|
||||||
|
*end_R[R_arg[i][j]] = i;
|
||||||
|
++end_R[R_arg[i][j]];
|
||||||
|
}
|
||||||
|
|
||||||
|
free (nedges);
|
||||||
|
free (end_R);
|
||||||
|
|
||||||
|
/* Free the input: it is replaced with the result. */
|
||||||
|
for (i = 0; i < n; i++)
|
||||||
|
XFREE (R_arg[i]);
|
||||||
|
free (R_arg);
|
||||||
|
|
||||||
|
if (trace_flag)
|
||||||
|
{
|
||||||
|
fputs ("transpose: output\n", stderr);
|
||||||
|
matrix_print (stderr, new_R, n);
|
||||||
|
}
|
||||||
|
|
||||||
return new_R;
|
return new_R;
|
||||||
}
|
}
|
||||||
@@ -527,50 +494,35 @@ transpose (short **R_arg, int n)
|
|||||||
static void
|
static void
|
||||||
build_relations (void)
|
build_relations (void)
|
||||||
{
|
{
|
||||||
|
short *edge = XCALLOC (short, ngotos + 1);
|
||||||
|
short *states = XCALLOC (short, ritem_longest_rhs () + 1);
|
||||||
int i;
|
int i;
|
||||||
int j;
|
|
||||||
int k;
|
|
||||||
short *rulep;
|
|
||||||
short *rp;
|
|
||||||
shifts *sp;
|
|
||||||
int length;
|
|
||||||
int nedges;
|
|
||||||
int done;
|
|
||||||
int state1;
|
|
||||||
int stateno;
|
|
||||||
int symbol1;
|
|
||||||
int symbol2;
|
|
||||||
short *shortp;
|
|
||||||
short *edge;
|
|
||||||
short *states;
|
|
||||||
short **new_includes;
|
|
||||||
|
|
||||||
includes = XCALLOC (short *, ngotos);
|
includes = XCALLOC (short *, ngotos);
|
||||||
edge = XCALLOC (short, ngotos + 1);
|
|
||||||
states = XCALLOC (short, maxrhs () + 1);
|
|
||||||
|
|
||||||
for (i = 0; i < ngotos; i++)
|
for (i = 0; i < ngotos; i++)
|
||||||
{
|
{
|
||||||
nedges = 0;
|
int nedges = 0;
|
||||||
state1 = from_state[i];
|
int state1 = from_state[i];
|
||||||
symbol1 = state_table[to_state[i]].accessing_symbol;
|
int symbol1 = state_table[to_state[i]].accessing_symbol;
|
||||||
|
short *rulep;
|
||||||
|
|
||||||
for (rulep = derives[symbol1]; *rulep > 0; rulep++)
|
for (rulep = derives[symbol1]; *rulep > 0; rulep++)
|
||||||
{
|
{
|
||||||
length = 1;
|
int done;
|
||||||
|
int length = 1;
|
||||||
|
int stateno = state1;
|
||||||
|
short *rp;
|
||||||
states[0] = state1;
|
states[0] = state1;
|
||||||
stateno = state1;
|
|
||||||
|
|
||||||
for (rp = ritem + rule_table[*rulep].rhs; *rp > 0; rp++)
|
for (rp = ritem + rule_table[*rulep].rhs; *rp > 0; rp++)
|
||||||
{
|
{
|
||||||
symbol2 = *rp;
|
shifts *sp = state_table[stateno].shifts;
|
||||||
sp = state_table[stateno].shift_table;
|
int j;
|
||||||
k = sp->nshifts;
|
for (j = 0; j < sp->nshifts; j++)
|
||||||
|
|
||||||
for (j = 0; j < k; j++)
|
|
||||||
{
|
{
|
||||||
stateno = sp->shifts[j];
|
stateno = sp->shifts[j];
|
||||||
if (state_table[stateno].accessing_symbol == symbol2)
|
if (state_table[stateno].accessing_symbol == *rp)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -599,25 +551,18 @@ build_relations (void)
|
|||||||
|
|
||||||
if (nedges)
|
if (nedges)
|
||||||
{
|
{
|
||||||
includes[i] = shortp = XCALLOC (short, nedges + 1);
|
int j;
|
||||||
|
includes[i] = XCALLOC (short, nedges + 1);
|
||||||
for (j = 0; j < nedges; j++)
|
for (j = 0; j < nedges; j++)
|
||||||
shortp[j] = edge[j];
|
includes[i][j] = edge[j];
|
||||||
shortp[nedges] = -1;
|
includes[i][nedges] = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
new_includes = transpose (includes, ngotos);
|
|
||||||
|
|
||||||
for (i = 0; i < ngotos; i++)
|
|
||||||
if (includes[i])
|
|
||||||
XFREE (includes[i]);
|
|
||||||
|
|
||||||
XFREE (includes);
|
|
||||||
|
|
||||||
includes = new_includes;
|
|
||||||
|
|
||||||
XFREE (edge);
|
XFREE (edge);
|
||||||
XFREE (states);
|
XFREE (states);
|
||||||
|
|
||||||
|
includes = transpose (includes, ngotos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -645,10 +590,10 @@ compute_lookaheads (void)
|
|||||||
for (i = 0; i < state_table[nstates].lookaheads; i++)
|
for (i = 0; i < state_table[nstates].lookaheads; i++)
|
||||||
for (sp = lookback[i]; sp; sp = sp->next)
|
for (sp = lookback[i]; sp; sp = sp->next)
|
||||||
{
|
{
|
||||||
unsigned *fp1 = LA (i);
|
int size = LA (i + 1) - LA (i);
|
||||||
unsigned *fp2 = F (sp->value);
|
int j;
|
||||||
while (fp1 < LA (i + 1))
|
for (j = 0; j < size; ++j)
|
||||||
*fp1++ |= *fp2++;
|
LA (i)[j] |= F (sp->value)[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free LOOKBACK. */
|
/* Free LOOKBACK. */
|
||||||
|
|||||||
+3
-2
@@ -78,8 +78,9 @@ typedef struct state_s
|
|||||||
/* Its accessing symbol. */
|
/* Its accessing symbol. */
|
||||||
short accessing_symbol;
|
short accessing_symbol;
|
||||||
|
|
||||||
shifts *shift_table;
|
shifts *shifts;
|
||||||
reductions *reduction_table;
|
reductions *reductions;
|
||||||
|
errs *errs;
|
||||||
|
|
||||||
/* Nonzero if no lookahead is needed to decide what to do in state
|
/* Nonzero if no lookahead is needed to decide what to do in state
|
||||||
S. */
|
S. */
|
||||||
|
|||||||
+2
-13
@@ -1,5 +1,5 @@
|
|||||||
/* Top level entry point of bison,
|
/* Top level entry point of bison,
|
||||||
Copyright 1984, 1986, 1989, 1992, 1995, 2000
|
Copyright 1984, 1986, 1989, 1992, 1995, 2000, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
@@ -40,7 +40,6 @@
|
|||||||
/* The name this program was run with, for messages. */
|
/* The name this program was run with, for messages. */
|
||||||
char *program_name;
|
char *program_name;
|
||||||
|
|
||||||
extern void berror PARAMS((const char *));
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
@@ -62,8 +61,7 @@ main (int argc, char *argv[])
|
|||||||
if (complain_message_count)
|
if (complain_message_count)
|
||||||
exit (1);
|
exit (1);
|
||||||
|
|
||||||
/* Find useless nonterminals and productions and reduce the grammar.
|
/* Find useless nonterminals and productions and reduce the grammar. */
|
||||||
In file reduce.c. */
|
|
||||||
reduce_grammar ();
|
reduce_grammar ();
|
||||||
|
|
||||||
/* Record other info about the grammar. In files derives and
|
/* Record other info about the grammar. In files derives and
|
||||||
@@ -125,12 +123,3 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
|
return complain_message_count ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Abort for an internal error denoted by string S. */
|
|
||||||
|
|
||||||
void
|
|
||||||
berror (const char *s)
|
|
||||||
{
|
|
||||||
fprintf (stderr, _("%s: internal error: %s\n"), program_name, s);
|
|
||||||
abort ();
|
|
||||||
}
|
|
||||||
|
|||||||
+47
-61
@@ -28,6 +28,7 @@
|
|||||||
#include "reader.h"
|
#include "reader.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "gram.h"
|
#include "gram.h"
|
||||||
|
#include "reduce.h"
|
||||||
#include "nullable.h"
|
#include "nullable.h"
|
||||||
|
|
||||||
char *nullable = NULL;
|
char *nullable = NULL;
|
||||||
@@ -45,87 +46,72 @@ nullable_print (FILE *out)
|
|||||||
void
|
void
|
||||||
set_nullable (void)
|
set_nullable (void)
|
||||||
{
|
{
|
||||||
short *r;
|
int ruleno;
|
||||||
short *s1;
|
short *s1;
|
||||||
short *s2;
|
short *s2;
|
||||||
shorts *p;
|
shorts *p;
|
||||||
|
|
||||||
short *squeue;
|
short *squeue = XCALLOC (short, nvars);
|
||||||
short *rcount;
|
short *rcount = XCALLOC (short, nrules + 1);
|
||||||
shorts **rsets;
|
/* RITEM contains all the rules, including useless productions.
|
||||||
shorts *relts;
|
Hence we must allocate room for useless nonterminals too. */
|
||||||
|
shorts **rsets = XCALLOC (shorts *, nvars) - ntokens;
|
||||||
|
/* This is said to be more elements than we actually use.
|
||||||
|
Supposedly nitems - nrules is enough. But why take the risk? */
|
||||||
|
shorts *relts = XCALLOC (shorts, nitems + nvars + 1);
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
fprintf (stderr, "Entering set_nullable\n");
|
fprintf (stderr, "Entering set_nullable\n");
|
||||||
|
|
||||||
nullable = XCALLOC (char, nvars) - ntokens;
|
nullable = XCALLOC (char, nvars) - ntokens;
|
||||||
|
|
||||||
squeue = XCALLOC (short, nvars);
|
|
||||||
s1 = s2 = squeue;
|
s1 = s2 = squeue;
|
||||||
|
|
||||||
rcount = XCALLOC (short, nrules + 1);
|
|
||||||
rsets = XCALLOC (shorts *, nvars) - ntokens;
|
|
||||||
/* This is said to be more elements than we actually use.
|
|
||||||
Supposedly nitems - nrules is enough.
|
|
||||||
But why take the risk? */
|
|
||||||
relts = XCALLOC (shorts, nitems + nvars + 1);
|
|
||||||
p = relts;
|
p = relts;
|
||||||
|
|
||||||
r = ritem;
|
for (ruleno = 1; ruleno < nrules + 1; ++ruleno)
|
||||||
while (*r)
|
if (ritem[rule_table[ruleno].rhs] > 0)
|
||||||
{
|
{
|
||||||
if (*r < 0)
|
/* This rule has a non empty RHS. */
|
||||||
{
|
short *r;
|
||||||
int symbol = rule_table[-(*r++)].lhs;
|
int any_tokens = 0;
|
||||||
if (symbol >= 0 && !nullable[symbol])
|
for (r = ritem + rule_table[ruleno].rhs; *r > 0; ++r)
|
||||||
{
|
if (ISTOKEN (*r))
|
||||||
nullable[symbol] = 1;
|
any_tokens = 1;
|
||||||
*s2++ = symbol;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
int any_tokens = 0;
|
|
||||||
int symbol;
|
|
||||||
short *r1 = r;
|
|
||||||
for (symbol = *r++; symbol > 0; symbol = *r++)
|
|
||||||
if (ISTOKEN (symbol))
|
|
||||||
any_tokens = 1;
|
|
||||||
|
|
||||||
if (!any_tokens)
|
/* This rule has only nonterminals: schedule it for the second
|
||||||
|
pass. */
|
||||||
|
if (!any_tokens)
|
||||||
|
for (r = ritem + rule_table[ruleno].rhs; *r > 0; ++r)
|
||||||
{
|
{
|
||||||
int ruleno = -symbol;
|
rcount[ruleno]++;
|
||||||
r = r1;
|
p->next = rsets[*r];
|
||||||
for (symbol = *r++; symbol > 0; symbol = *r++)
|
p->value = ruleno;
|
||||||
{
|
rsets[*r] = p;
|
||||||
rcount[ruleno]++;
|
p++;
|
||||||
p->next = rsets[symbol];
|
|
||||||
p->value = ruleno;
|
|
||||||
rsets[symbol] = p;
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
/* This rule has an empty RHS. */
|
||||||
|
assert (ritem[rule_table[ruleno].rhs] == -ruleno);
|
||||||
|
if (rule_table[ruleno].useful && !nullable[rule_table[ruleno].lhs])
|
||||||
|
{
|
||||||
|
nullable[rule_table[ruleno].lhs] = 1;
|
||||||
|
*s2++ = rule_table[ruleno].lhs;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while (s1 < s2)
|
while (s1 < s2)
|
||||||
{
|
for (p = rsets[*s1++]; p; p = p->next)
|
||||||
p = rsets[*s1++];
|
{
|
||||||
while (p)
|
ruleno = p->value;
|
||||||
{
|
if (--rcount[ruleno] == 0)
|
||||||
int ruleno = p->value;
|
if (rule_table[ruleno].useful && !nullable[rule_table[ruleno].lhs])
|
||||||
p = p->next;
|
|
||||||
if (--rcount[ruleno] == 0)
|
|
||||||
{
|
{
|
||||||
int symbol = rule_table[ruleno].lhs;
|
nullable[rule_table[ruleno].lhs] = 1;
|
||||||
if (symbol >= 0 && !nullable[symbol])
|
*s2++ = rule_table[ruleno].lhs;
|
||||||
{
|
|
||||||
nullable[symbol] = 1;
|
|
||||||
*s2++ = symbol;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
XFREE (squeue);
|
XFREE (squeue);
|
||||||
XFREE (rcount);
|
XFREE (rcount);
|
||||||
|
|||||||
+29
-60
@@ -1,5 +1,7 @@
|
|||||||
/* Output the generated parsing program for bison,
|
/* Output the generated parsing program for bison,
|
||||||
Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.
|
|
||||||
|
Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001 Free Software
|
||||||
|
Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -103,9 +105,6 @@
|
|||||||
#include "reader.h"
|
#include "reader.h"
|
||||||
#include "conflicts.h"
|
#include "conflicts.h"
|
||||||
|
|
||||||
extern void berror PARAMS((const char *));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static int nvectors;
|
static int nvectors;
|
||||||
static int nentries;
|
static int nentries;
|
||||||
@@ -529,15 +528,11 @@ action_row (int state)
|
|||||||
int k;
|
int k;
|
||||||
int m = 0;
|
int m = 0;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
int count;
|
|
||||||
int default_rule;
|
int default_rule;
|
||||||
int nreds;
|
int nreds;
|
||||||
int max;
|
|
||||||
int rule;
|
int rule;
|
||||||
int shift_state;
|
int shift_state;
|
||||||
int symbol;
|
int symbol;
|
||||||
unsigned mask;
|
|
||||||
unsigned *wordp;
|
|
||||||
reductions *redp;
|
reductions *redp;
|
||||||
shifts *shiftp;
|
shifts *shiftp;
|
||||||
errs *errp;
|
errs *errp;
|
||||||
@@ -548,7 +543,7 @@ action_row (int state)
|
|||||||
|
|
||||||
default_rule = 0;
|
default_rule = 0;
|
||||||
nreds = 0;
|
nreds = 0;
|
||||||
redp = state_table[state].reduction_table;
|
redp = state_table[state].reductions;
|
||||||
|
|
||||||
if (redp)
|
if (redp)
|
||||||
{
|
{
|
||||||
@@ -562,65 +557,42 @@ action_row (int state)
|
|||||||
n = state_table[state + 1].lookaheads;
|
n = state_table[state + 1].lookaheads;
|
||||||
|
|
||||||
for (i = n - 1; i >= m; i--)
|
for (i = n - 1; i >= m; i--)
|
||||||
{
|
/* and find each token which the rule finds acceptable
|
||||||
rule = -LAruleno[i];
|
to come next */
|
||||||
wordp = LA (i);
|
for (j = 0; j < ntokens; j++)
|
||||||
mask = 1;
|
/* and record this rule as the rule to use if that
|
||||||
|
token follows. */
|
||||||
/* and find each token which the rule finds acceptable
|
if (BITISSET (LA (i), j))
|
||||||
to come next */
|
actrow[j] = -LAruleno[i];
|
||||||
for (j = 0; j < ntokens; j++)
|
|
||||||
{
|
|
||||||
/* and record this rule as the rule to use if that
|
|
||||||
token follows. */
|
|
||||||
if (mask & *wordp)
|
|
||||||
actrow[j] = rule;
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
wordp++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shiftp = state_table[state].shift_table;
|
|
||||||
|
|
||||||
/* Now see which tokens are allowed for shifts in this state. For
|
/* Now see which tokens are allowed for shifts in this state. For
|
||||||
them, record the shift as the thing to do. So shift is preferred
|
them, record the shift as the thing to do. So shift is preferred
|
||||||
to reduce. */
|
to reduce. */
|
||||||
|
shiftp = state_table[state].shifts;
|
||||||
if (shiftp)
|
for (i = 0; i < shiftp->nshifts; i++)
|
||||||
{
|
{
|
||||||
k = shiftp->nshifts;
|
shift_state = shiftp->shifts[i];
|
||||||
|
if (!shift_state)
|
||||||
|
continue;
|
||||||
|
|
||||||
for (i = 0; i < k; i++)
|
symbol = state_table[shift_state].accessing_symbol;
|
||||||
{
|
|
||||||
shift_state = shiftp->shifts[i];
|
|
||||||
if (!shift_state)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
symbol = state_table[shift_state].accessing_symbol;
|
if (ISVAR (symbol))
|
||||||
|
break;
|
||||||
|
|
||||||
if (ISVAR (symbol))
|
actrow[symbol] = shift_state;
|
||||||
break;
|
|
||||||
|
|
||||||
actrow[symbol] = shift_state;
|
/* Do not use any default reduction if there is a shift for
|
||||||
|
error */
|
||||||
/* Do not use any default reduction if there is a shift for
|
if (symbol == error_token_number)
|
||||||
error */
|
nodefault = 1;
|
||||||
if (symbol == error_token_number)
|
|
||||||
nodefault = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
errp = err_table[state];
|
|
||||||
|
|
||||||
/* See which tokens are an explicit error in this state (due to
|
/* See which tokens are an explicit error in this state (due to
|
||||||
%nonassoc). For them, record MINSHORT as the action. */
|
%nonassoc). For them, record MINSHORT as the action. */
|
||||||
|
errp = state_table[state].errs;
|
||||||
|
|
||||||
if (errp)
|
if (errp)
|
||||||
{
|
{
|
||||||
@@ -642,10 +614,10 @@ action_row (int state)
|
|||||||
default_rule = redp->rules[0];
|
default_rule = redp->rules[0];
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
max = 0;
|
int max = 0;
|
||||||
for (i = m; i < n; i++)
|
for (i = m; i < n; i++)
|
||||||
{
|
{
|
||||||
count = 0;
|
int count = 0;
|
||||||
rule = -LAruleno[i];
|
rule = -LAruleno[i];
|
||||||
|
|
||||||
for (j = 0; j < ntokens; j++)
|
for (j = 0; j < ntokens; j++)
|
||||||
@@ -1007,8 +979,8 @@ pack_vector (int vector)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
berror ("pack_vector");
|
assert (!"pack_vector");
|
||||||
return 0; /* JF keep lint happy */
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1307,9 +1279,6 @@ output (void)
|
|||||||
obstack_fgrow1 (&table_obstack, "#include %s\n",
|
obstack_fgrow1 (&table_obstack, "#include %s\n",
|
||||||
quotearg_style (c_quoting_style, attrsfile));
|
quotearg_style (c_quoting_style, attrsfile));
|
||||||
|
|
||||||
if (!no_parser_flag)
|
|
||||||
obstack_sgrow (&table_obstack, "#include <stdio.h>\n\n");
|
|
||||||
|
|
||||||
LIST_FREE (core, first_state);
|
LIST_FREE (core, first_state);
|
||||||
output_defines ();
|
output_defines ();
|
||||||
output_token_translations ();
|
output_token_translations ();
|
||||||
|
|||||||
+89
-80
@@ -30,6 +30,7 @@
|
|||||||
#include "reader.h"
|
#include "reader.h"
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "reduce.h"
|
#include "reduce.h"
|
||||||
|
#include "closure.h"
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static void
|
static void
|
||||||
@@ -48,51 +49,60 @@ static void
|
|||||||
print_core (FILE *out, int state)
|
print_core (FILE *out, int state)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
core *statep = state_table[state].state;
|
short *sitems = state_table[state].state->items;
|
||||||
|
int snitems = state_table[state].state->nitems;
|
||||||
|
|
||||||
if (!statep->nitems)
|
/* New experimental feature: if TRACE_FLAGS output all the items of
|
||||||
return;
|
a state, not only its kernel. */
|
||||||
|
if (trace_flag)
|
||||||
for (i = 0; i < statep->nitems; i++)
|
|
||||||
{
|
{
|
||||||
short *sp;
|
closure (sitems, snitems);
|
||||||
short *sp1;
|
sitems = itemset;
|
||||||
int rule;
|
snitems = nitemset;
|
||||||
|
|
||||||
sp1 = sp = ritem + statep->items[i];
|
|
||||||
|
|
||||||
while (*sp > 0)
|
|
||||||
sp++;
|
|
||||||
|
|
||||||
rule = -(*sp);
|
|
||||||
fprintf (out, " %s -> ", tags[rule_table[rule].lhs]);
|
|
||||||
|
|
||||||
for (sp = ritem + rule_table[rule].rhs; sp < sp1; sp++)
|
|
||||||
fprintf (out, "%s ", tags[*sp]);
|
|
||||||
|
|
||||||
fputc ('.', out);
|
|
||||||
|
|
||||||
for (/* Nothing */; *sp > 0; ++sp)
|
|
||||||
fprintf (out, " %s", tags[*sp]);
|
|
||||||
|
|
||||||
fprintf (out, _(" (rule %d)"), rule);
|
|
||||||
fputc ('\n', out);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fputc ('\n', out);
|
if (snitems)
|
||||||
|
{
|
||||||
|
for (i = 0; i < snitems; i++)
|
||||||
|
{
|
||||||
|
short *sp;
|
||||||
|
short *sp1;
|
||||||
|
int rule;
|
||||||
|
|
||||||
|
sp1 = sp = ritem + sitems[i];
|
||||||
|
|
||||||
|
while (*sp > 0)
|
||||||
|
sp++;
|
||||||
|
|
||||||
|
rule = -(*sp);
|
||||||
|
fprintf (out, " %s -> ", tags[rule_table[rule].lhs]);
|
||||||
|
|
||||||
|
for (sp = ritem + rule_table[rule].rhs; sp < sp1; sp++)
|
||||||
|
fprintf (out, "%s ", tags[*sp]);
|
||||||
|
|
||||||
|
fputc ('.', out);
|
||||||
|
|
||||||
|
for (/* Nothing */; *sp > 0; ++sp)
|
||||||
|
fprintf (out, " %s", tags[*sp]);
|
||||||
|
|
||||||
|
fprintf (out, _(" (rule %d)"), rule);
|
||||||
|
fputc ('\n', out);
|
||||||
|
}
|
||||||
|
|
||||||
|
fputc ('\n', out);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_actions (FILE *out, int state)
|
print_actions (FILE *out, int state)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int k;
|
|
||||||
|
|
||||||
shifts *shiftp = state_table[state].shift_table;
|
shifts *shiftp = state_table[state].shifts;
|
||||||
reductions *redp = state_table[state].reduction_table;
|
reductions *redp = state_table[state].reductions;
|
||||||
errs *errp = err_table[state];
|
errs *errp = state_table[state].errs;
|
||||||
|
|
||||||
if (!shiftp && !redp)
|
if (!shiftp->nshifts && !redp)
|
||||||
{
|
{
|
||||||
if (final_state == state)
|
if (final_state == state)
|
||||||
fprintf (out, _(" $default\taccept\n"));
|
fprintf (out, _(" $default\taccept\n"));
|
||||||
@@ -101,37 +111,25 @@ print_actions (FILE *out, int state)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shiftp)
|
for (i = 0; i < shiftp->nshifts; i++)
|
||||||
{
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
k = shiftp->nshifts;
|
{
|
||||||
|
int state1 = shiftp->shifts[i];
|
||||||
|
int symbol = state_table[state1].accessing_symbol;
|
||||||
|
/* The following line used to be turned off. */
|
||||||
|
if (ISVAR (symbol))
|
||||||
|
break;
|
||||||
|
if (symbol == 0) /* I.e. strcmp(tags[symbol],"$")==0 */
|
||||||
|
fprintf (out,
|
||||||
|
_(" $ \tgo to state %d\n"), state1);
|
||||||
|
else
|
||||||
|
fprintf (out,
|
||||||
|
_(" %-4s\tshift, and go to state %d\n"),
|
||||||
|
tags[symbol], state1);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < k; i++)
|
if (i > 0)
|
||||||
{
|
fputc ('\n', out);
|
||||||
int symbol;
|
|
||||||
int state1 = shiftp->shifts[i];
|
|
||||||
if (!state1)
|
|
||||||
continue;
|
|
||||||
symbol = state_table[state1].accessing_symbol;
|
|
||||||
/* The following line used to be turned off. */
|
|
||||||
if (ISVAR (symbol))
|
|
||||||
break;
|
|
||||||
if (symbol == 0) /* I.e. strcmp(tags[symbol],"$")==0 */
|
|
||||||
fprintf (out,
|
|
||||||
_(" $ \tgo to state %d\n"), state1);
|
|
||||||
else
|
|
||||||
fprintf (out,
|
|
||||||
_(" %-4s\tshift, and go to state %d\n"),
|
|
||||||
tags[symbol], state1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i > 0)
|
|
||||||
fputc ('\n', out);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
i = 0;
|
|
||||||
k = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (errp)
|
if (errp)
|
||||||
{
|
{
|
||||||
@@ -161,18 +159,16 @@ print_actions (FILE *out, int state)
|
|||||||
print_reductions (out, state);
|
print_reductions (out, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i < k)
|
if (i < shiftp->nshifts)
|
||||||
{
|
{
|
||||||
for (; i < k; i++)
|
for (; i < shiftp->nshifts; i++)
|
||||||
{
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
int symbol;
|
{
|
||||||
int state1 = shiftp->shifts[i];
|
int state1 = shiftp->shifts[i];
|
||||||
if (!state1)
|
int symbol = state_table[state1].accessing_symbol;
|
||||||
continue;
|
fprintf (out, _(" %-4s\tgo to state %d\n"),
|
||||||
symbol = state_table[state1].accessing_symbol;
|
tags[symbol], state1);
|
||||||
fprintf (out, _(" %-4s\tgo to state %d\n"),
|
}
|
||||||
tags[symbol], state1);
|
|
||||||
}
|
|
||||||
|
|
||||||
fputc ('\n', out);
|
fputc ('\n', out);
|
||||||
}
|
}
|
||||||
@@ -181,11 +177,11 @@ print_actions (FILE *out, int state)
|
|||||||
static void
|
static void
|
||||||
print_state (FILE *out, int state)
|
print_state (FILE *out, int state)
|
||||||
{
|
{
|
||||||
fputs ("\n\n", out);
|
|
||||||
fprintf (out, _("state %d"), state);
|
fprintf (out, _("state %d"), state);
|
||||||
fputs ("\n\n", out);
|
fputs ("\n\n", out);
|
||||||
print_core (out, state);
|
print_core (out, state);
|
||||||
print_actions (out, state);
|
print_actions (out, state);
|
||||||
|
fputs ("\n\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-----------------------------------------.
|
/*-----------------------------------------.
|
||||||
@@ -212,11 +208,11 @@ print_grammar (FILE *out)
|
|||||||
int column = 0;
|
int column = 0;
|
||||||
|
|
||||||
/* rule # : LHS -> RHS */
|
/* rule # : LHS -> RHS */
|
||||||
fprintf (out, "\n%s\n\n", _("Grammar"));
|
fprintf (out, "%s\n\n", _("Grammar"));
|
||||||
fprintf (out, " %s\n", _("Number, Line, Rule"));
|
fprintf (out, " %s\n", _("Number, Line, Rule"));
|
||||||
for (i = 1; i <= nrules; i++)
|
for (i = 1; i <= nrules; i++)
|
||||||
/* Don't print rules disabled in reduce_grammar_tables. */
|
/* Don't print rules disabled in reduce_grammar_tables. */
|
||||||
if (rule_table[i].lhs >= 0)
|
if (rule_table[i].useful)
|
||||||
{
|
{
|
||||||
fprintf (out, _(" %3d %3d %s ->"),
|
fprintf (out, _(" %3d %3d %s ->"),
|
||||||
i, rule_table[i].line, tags[rule_table[i].lhs]);
|
i, rule_table[i].line, tags[rule_table[i].lhs]);
|
||||||
@@ -228,9 +224,11 @@ print_grammar (FILE *out)
|
|||||||
fprintf (out, " /* %s */", _("empty"));
|
fprintf (out, " /* %s */", _("empty"));
|
||||||
fputc ('\n', out);
|
fputc ('\n', out);
|
||||||
}
|
}
|
||||||
|
fputs ("\n\n", out);
|
||||||
|
|
||||||
|
|
||||||
/* TERMINAL (type #) : rule #s terminal is on RHS */
|
/* TERMINAL (type #) : rule #s terminal is on RHS */
|
||||||
fprintf (out, "\n%s\n\n", _("Terminals, with rules where they appear"));
|
fprintf (out, "%s\n\n", _("Terminals, with rules where they appear"));
|
||||||
fprintf (out, "%s (-1)\n", tags[0]);
|
fprintf (out, "%s (-1)\n", tags[0]);
|
||||||
|
|
||||||
for (i = 0; i <= max_user_token_number; i++)
|
for (i = 0; i <= max_user_token_number; i++)
|
||||||
@@ -252,9 +250,10 @@ print_grammar (FILE *out)
|
|||||||
}
|
}
|
||||||
fprintf (out, "%s\n", buffer);
|
fprintf (out, "%s\n", buffer);
|
||||||
}
|
}
|
||||||
|
fputs ("\n\n", out);
|
||||||
|
|
||||||
fprintf (out, "\n%s\n\n",
|
|
||||||
_("Nonterminals, with rules where they appear"));
|
fprintf (out, "%s\n\n", _("Nonterminals, with rules where they appear"));
|
||||||
for (i = ntokens; i <= nsyms - 1; i++)
|
for (i = ntokens; i <= nsyms - 1; i++)
|
||||||
{
|
{
|
||||||
int left_count = 0, right_count = 0;
|
int left_count = 0, right_count = 0;
|
||||||
@@ -309,6 +308,7 @@ print_grammar (FILE *out)
|
|||||||
}
|
}
|
||||||
fprintf (out, "%s\n", buffer);
|
fprintf (out, "%s\n", buffer);
|
||||||
}
|
}
|
||||||
|
fputs ("\n\n", out);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -324,14 +324,23 @@ print_results (void)
|
|||||||
|
|
||||||
size_t size = obstack_object_size (&output_obstack);
|
size_t size = obstack_object_size (&output_obstack);
|
||||||
fwrite (obstack_finish (&output_obstack), 1, size, out);
|
fwrite (obstack_finish (&output_obstack), 1, size, out);
|
||||||
|
if (size)
|
||||||
|
fputs ("\n\n", out);
|
||||||
|
|
||||||
reduce_output (out);
|
reduce_output (out);
|
||||||
conflicts_output (out);
|
conflicts_output (out);
|
||||||
|
|
||||||
print_grammar (out);
|
print_grammar (out);
|
||||||
|
|
||||||
|
/* New experimental feature: output all the items of a state,
|
||||||
|
not only its kernel. Requires to run closure, which need
|
||||||
|
memory allocation/deallocation. */
|
||||||
|
if (trace_flag)
|
||||||
|
new_closure (nitems);
|
||||||
for (i = 0; i < nstates; i++)
|
for (i = 0; i < nstates; i++)
|
||||||
print_state (out, i);
|
print_state (out, i);
|
||||||
|
if (trace_flag)
|
||||||
|
free_closure ();
|
||||||
|
|
||||||
xfclose (out);
|
xfclose (out);
|
||||||
}
|
}
|
||||||
|
|||||||
+31
-53
@@ -84,20 +84,17 @@ static void
|
|||||||
print_actions (int state, const char *node_name)
|
print_actions (int state, const char *node_name)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int k;
|
|
||||||
int state1;
|
shifts *shiftp = state_table[state].shifts;
|
||||||
int symbol;
|
reductions *redp = state_table[state].reductions;
|
||||||
shifts *shiftp;
|
#if 0
|
||||||
errs *errp;
|
errs *errp = err_table[state];
|
||||||
reductions *redp;
|
#endif
|
||||||
|
|
||||||
static char buff[10];
|
static char buff[10];
|
||||||
edge_t edge;
|
edge_t edge;
|
||||||
|
|
||||||
shiftp = state_table[state].shift_table;
|
if (!shiftp->nshifts && !redp)
|
||||||
redp = state_table[state].reduction_table;
|
|
||||||
errp = err_table[state];
|
|
||||||
|
|
||||||
if (!shiftp && !redp)
|
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
if (final_state == state)
|
if (final_state == state)
|
||||||
@@ -108,42 +105,26 @@ print_actions (int state, const char *node_name)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shiftp)
|
for (i = 0; i < shiftp->nshifts; i++)
|
||||||
{
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
k = shiftp->nshifts;
|
{
|
||||||
|
int state1 = shiftp->shifts[i];
|
||||||
|
int symbol = state_table[state1].accessing_symbol;
|
||||||
|
|
||||||
for (i = 0; i < k; i++)
|
new_edge (&edge);
|
||||||
{
|
|
||||||
if (!shiftp->shifts[i])
|
|
||||||
continue;
|
|
||||||
state1 = shiftp->shifts[i];
|
|
||||||
symbol = state_table[state1].accessing_symbol;
|
|
||||||
|
|
||||||
if (ISVAR (symbol))
|
if (state > state1)
|
||||||
break;
|
edge.type = back_edge;
|
||||||
|
open_edge (&edge, fgraph);
|
||||||
{
|
/* The edge source is the current node. */
|
||||||
new_edge (&edge);
|
edge.sourcename = node_name;
|
||||||
|
sprintf (buff, "%d", state1);
|
||||||
if (state > state1)
|
edge.targetname = buff;
|
||||||
edge.type = back_edge;
|
edge.color = (symbol == 0) ? red : blue;
|
||||||
open_edge (&edge, fgraph);
|
edge.label = tags[symbol];
|
||||||
/* The edge source is the current node. */
|
output_edge (&edge, fgraph);
|
||||||
edge.sourcename = node_name;
|
close_edge (fgraph);
|
||||||
sprintf (buff, "%d", state1);
|
}
|
||||||
edge.targetname = buff;
|
|
||||||
edge.color = (symbol == 0) ? red : blue;
|
|
||||||
edge.label = tags[symbol];
|
|
||||||
output_edge (&edge, fgraph);
|
|
||||||
close_edge (fgraph);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
i = 0;
|
|
||||||
k = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (errp)
|
if (errp)
|
||||||
@@ -182,14 +163,12 @@ print_actions (int state, const char *node_name)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (i < k)
|
if (i < shiftp->nshifts)
|
||||||
{
|
for (; i < shiftp->nshifts; i++)
|
||||||
for (; i < k; i++)
|
if (!SHIFT_IS_DISABLED (shiftp, i))
|
||||||
{
|
{
|
||||||
if (!shiftp->shifts[i])
|
int state1 = shiftp->shifts[i];
|
||||||
continue;
|
int symbol = state_table[state1].accessing_symbol;
|
||||||
state1 = shiftp->shifts[i];
|
|
||||||
symbol = state_table[state1].accessing_symbol;
|
|
||||||
|
|
||||||
new_edge (&edge);
|
new_edge (&edge);
|
||||||
open_edge (&edge, fgraph);
|
open_edge (&edge, fgraph);
|
||||||
@@ -201,7 +180,6 @@ print_actions (int state, const char *node_name)
|
|||||||
output_edge (&edge, fgraph);
|
output_edge (&edge, fgraph);
|
||||||
close_edge (fgraph);
|
close_edge (fgraph);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1877,6 +1877,7 @@ packgram (void)
|
|||||||
rule_table[ruleno].lhs = p->sym->value;
|
rule_table[ruleno].lhs = p->sym->value;
|
||||||
rule_table[ruleno].rhs = itemno;
|
rule_table[ruleno].rhs = itemno;
|
||||||
rule_table[ruleno].line = p->line;
|
rule_table[ruleno].line = p->line;
|
||||||
|
rule_table[ruleno].useful = TRUE;
|
||||||
|
|
||||||
p = p->next;
|
p = p->next;
|
||||||
while (p && p->sym)
|
while (p && p->sym)
|
||||||
@@ -1910,6 +1911,9 @@ packgram (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ritem[itemno] = 0;
|
ritem[itemno] = 0;
|
||||||
|
|
||||||
|
if (trace_flag)
|
||||||
|
ritem_print (stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------------------------.
|
/*-------------------------------------------------------------------.
|
||||||
|
|||||||
+172
-155
@@ -38,16 +38,23 @@ typedef unsigned *BSet;
|
|||||||
typedef short *rule;
|
typedef short *rule;
|
||||||
|
|
||||||
|
|
||||||
/* N is set of all nonterminals which are not useless. P is set of
|
/* Set of all nonterminals which are not useless. */
|
||||||
all rules which have no useless nonterminals in their RHS. V is
|
static BSet N;
|
||||||
the set of all accessible symbols. */
|
|
||||||
|
|
||||||
static BSet N, P, V, V1;
|
/* Set of all rules which have no useless nonterminals in their RHS. */
|
||||||
|
static BSet P;
|
||||||
|
|
||||||
|
/* Set of all accessible symbols. */
|
||||||
|
static BSet V;
|
||||||
|
|
||||||
|
/* Set of symbols used to define rule precedence (so they are
|
||||||
|
`useless', but no warning should be issued). */
|
||||||
|
static BSet V1;
|
||||||
|
|
||||||
static int nuseful_productions;
|
static int nuseful_productions;
|
||||||
static int nuseless_productions;
|
static int nuseless_productions;
|
||||||
static int nuseful_nonterminals;
|
static int nuseful_nonterminals;
|
||||||
static int nuseless_nonterminals;
|
int nuseless_nonterminals;
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
bits_equal (BSet L, BSet R, int n)
|
bits_equal (BSet L, BSet R, int n)
|
||||||
@@ -257,28 +264,35 @@ inaccessable_symbols (void)
|
|||||||
static void
|
static void
|
||||||
reduce_grammar_tables (void)
|
reduce_grammar_tables (void)
|
||||||
{
|
{
|
||||||
/* This is turned off because we would need to change the numbers
|
/* This is turned off because we would need to change the numbers in
|
||||||
in the case statements in the actions file. */
|
the case statements in the actions file.
|
||||||
#if 0
|
|
||||||
/* remove useless productions */
|
|
||||||
if (nuseless_productions > 0)
|
|
||||||
{
|
|
||||||
short np, pn, ni, pi;
|
|
||||||
|
|
||||||
np = 0;
|
We don't disable it via CPP so that it is still checked with the
|
||||||
ni = 0;
|
rest of the code, to avoid its becoming completely obsolete.
|
||||||
for (pn = 1; pn <= nrules; pn++)
|
|
||||||
{
|
FIXME: I think the comment above demonstrates this code must be
|
||||||
|
turned off for *semantic* parser, not in the general case. Try
|
||||||
|
to understand this better --akim. */
|
||||||
|
|
||||||
|
if (0)
|
||||||
|
/* remove useless productions */
|
||||||
|
if (nuseless_productions > 0)
|
||||||
|
{
|
||||||
|
short np, pn, ni, pi;
|
||||||
|
|
||||||
|
np = 0;
|
||||||
|
ni = 0;
|
||||||
|
for (pn = 1; pn <= nrules; pn++)
|
||||||
if (BITISSET (P, pn))
|
if (BITISSET (P, pn))
|
||||||
{
|
{
|
||||||
np++;
|
np++;
|
||||||
if (pn != np)
|
if (pn != np)
|
||||||
{
|
{
|
||||||
rule_table[np].lhs = rule_table[pn].lhs;
|
rule_table[np].lhs = rule_table[pn].lhs;
|
||||||
rline[np] = rline[pn];
|
rule_table[np].line = rule_table[pn].line;
|
||||||
rule_table[np].prec = rule_table[pn].prec;
|
rule_table[np].prec = rule_table[pn].prec;
|
||||||
rule_table[np].assoc = rule_table[pn].assoc;
|
rule_table[np].assoc = rule_table[pn].assoc;
|
||||||
rule_table[np].rhs = rule_table[pn].rhs;
|
rule_table[np].rhs = rule_table[pn].rhs;
|
||||||
if (rule_table[np].rhs != ni)
|
if (rule_table[np].rhs != ni)
|
||||||
{
|
{
|
||||||
pi = rule_table[np].rhs;
|
pi = rule_table[np].rhs;
|
||||||
@@ -293,149 +307,142 @@ reduce_grammar_tables (void)
|
|||||||
while (ritem[ni++] >= 0);
|
while (ritem[ni++] >= 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ritem[ni] = 0;
|
|
||||||
nrules -= nuseless_productions;
|
|
||||||
nitems = ni;
|
|
||||||
|
|
||||||
/* Is it worth it to reduce the amount of memory for the
|
ritem[ni] = 0;
|
||||||
grammar? Probably not. */
|
nrules -= nuseless_productions;
|
||||||
|
nitems = ni;
|
||||||
|
|
||||||
}
|
/* Is it worth it to reduce the amount of memory for the
|
||||||
#endif /* 0 */
|
grammar? Probably not. */
|
||||||
/* Disable useless productions,
|
}
|
||||||
since they may contain useless nonterms
|
|
||||||
that would get mapped below to -1 and confuse everyone. */
|
/* Disable useless productions. */
|
||||||
if (nuseless_productions > 0)
|
if (nuseless_productions > 0)
|
||||||
{
|
{
|
||||||
int pn;
|
int pn;
|
||||||
|
|
||||||
for (pn = 1; pn <= nrules; pn++)
|
for (pn = 1; pn <= nrules; pn++)
|
||||||
{
|
rule_table[pn].useful = BITISSET (P, pn);
|
||||||
if (!BITISSET (P, pn))
|
|
||||||
{
|
|
||||||
rule_table[pn].lhs = -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* remove useless symbols */
|
|
||||||
if (nuseless_nonterminals > 0)
|
|
||||||
{
|
|
||||||
|
|
||||||
int i, n;
|
|
||||||
/* short j; JF unused */
|
|
||||||
short *nontermmap;
|
|
||||||
rule r;
|
|
||||||
|
|
||||||
/* Create a map of nonterminal number to new nonterminal
|
|
||||||
number. -1 in the map means it was useless and is being
|
|
||||||
eliminated. */
|
|
||||||
|
|
||||||
nontermmap = XCALLOC (short, nvars) - ntokens;
|
|
||||||
for (i = ntokens; i < nsyms; i++)
|
|
||||||
nontermmap[i] = -1;
|
|
||||||
|
|
||||||
n = ntokens;
|
|
||||||
for (i = ntokens; i < nsyms; i++)
|
|
||||||
if (BITISSET (V, i))
|
|
||||||
nontermmap[i] = n++;
|
|
||||||
|
|
||||||
/* Shuffle elements of tables indexed by symbol number. */
|
|
||||||
|
|
||||||
for (i = ntokens; i < nsyms; i++)
|
|
||||||
{
|
|
||||||
n = nontermmap[i];
|
|
||||||
if (n >= 0)
|
|
||||||
{
|
|
||||||
sassoc[n] = sassoc[i];
|
|
||||||
sprec[n] = sprec[i];
|
|
||||||
tags[n] = tags[i];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
free (tags[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Replace all symbol numbers in valid data structures. */
|
|
||||||
|
|
||||||
for (i = 1; i <= nrules; i++)
|
|
||||||
{
|
|
||||||
/* Ignore the rules disabled above. */
|
|
||||||
if (rule_table[i].lhs >= 0)
|
|
||||||
rule_table[i].lhs = nontermmap[rule_table[i].lhs];
|
|
||||||
if (ISVAR (rule_table[i].precsym))
|
|
||||||
/* Can this happen? */
|
|
||||||
rule_table[i].precsym = nontermmap[rule_table[i].precsym];
|
|
||||||
}
|
|
||||||
|
|
||||||
for (r = ritem; *r; r++)
|
|
||||||
if (ISVAR (*r))
|
|
||||||
*r = nontermmap[*r];
|
|
||||||
|
|
||||||
start_symbol = nontermmap[start_symbol];
|
|
||||||
|
|
||||||
nsyms -= nuseless_nonterminals;
|
|
||||||
nvars -= nuseless_nonterminals;
|
|
||||||
|
|
||||||
free (&nontermmap[ntokens]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------------.
|
/*------------------------------.
|
||||||
| Ouput the detailed results of the reductions. For FILE.output. |
|
| Remove useless nonterminals. |
|
||||||
`-----------------------------------------------------------------*/
|
`------------------------------*/
|
||||||
|
|
||||||
|
static void
|
||||||
|
nonterminals_reduce (void)
|
||||||
|
{
|
||||||
|
int i, n;
|
||||||
|
rule r;
|
||||||
|
|
||||||
|
/* Map the nonterminals to their new index: useful first, useless
|
||||||
|
afterwards. Kept for later report. */
|
||||||
|
|
||||||
|
short *nontermmap = XCALLOC (short, nvars) - ntokens;
|
||||||
|
n = ntokens;
|
||||||
|
for (i = ntokens; i < nsyms; i++)
|
||||||
|
if (BITISSET (V, i))
|
||||||
|
nontermmap[i] = n++;
|
||||||
|
for (i = ntokens; i < nsyms; i++)
|
||||||
|
if (!BITISSET (V, i))
|
||||||
|
nontermmap[i] = n++;
|
||||||
|
|
||||||
|
|
||||||
|
/* Shuffle elements of tables indexed by symbol number. */
|
||||||
|
{
|
||||||
|
short *sassoc_sorted = XMALLOC (short, nvars) - ntokens;
|
||||||
|
short *sprec_sorted = XMALLOC (short, nvars) - ntokens;
|
||||||
|
char **tags_sorted = XMALLOC (char *, nvars) - ntokens;
|
||||||
|
|
||||||
|
for (i = ntokens; i < nsyms; i++)
|
||||||
|
{
|
||||||
|
n = nontermmap[i];
|
||||||
|
sassoc_sorted[n] = sassoc[i];
|
||||||
|
sprec_sorted[n] = sprec[i];
|
||||||
|
tags_sorted[n] = tags[i];
|
||||||
|
}
|
||||||
|
for (i = ntokens; i < nsyms; i++)
|
||||||
|
{
|
||||||
|
sassoc[i] = sassoc_sorted[i];
|
||||||
|
sprec[i] = sprec_sorted[i];
|
||||||
|
tags[i] = tags_sorted[i];
|
||||||
|
}
|
||||||
|
free (sassoc_sorted + ntokens);
|
||||||
|
free (sprec_sorted + ntokens);
|
||||||
|
free (tags_sorted + ntokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Replace all symbol numbers in valid data structures. */
|
||||||
|
|
||||||
|
for (i = 1; i <= nrules; i++)
|
||||||
|
{
|
||||||
|
rule_table[i].lhs = nontermmap[rule_table[i].lhs];
|
||||||
|
if (ISVAR (rule_table[i].precsym))
|
||||||
|
/* Can this happen? */
|
||||||
|
rule_table[i].precsym = nontermmap[rule_table[i].precsym];
|
||||||
|
}
|
||||||
|
|
||||||
|
for (r = ritem; *r; r++)
|
||||||
|
if (ISVAR (*r))
|
||||||
|
*r = nontermmap[*r];
|
||||||
|
|
||||||
|
start_symbol = nontermmap[start_symbol];
|
||||||
|
|
||||||
|
nsyms -= nuseless_nonterminals;
|
||||||
|
nvars -= nuseless_nonterminals;
|
||||||
|
|
||||||
|
free (nontermmap + ntokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------.
|
||||||
|
| Output the detailed results of the reductions. For FILE.output. |
|
||||||
|
`------------------------------------------------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
reduce_output (FILE *out)
|
reduce_output (FILE *out)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
rule r;
|
|
||||||
bool b;
|
|
||||||
|
|
||||||
if (nuseless_nonterminals > 0)
|
if (nuseless_nonterminals > 0)
|
||||||
{
|
{
|
||||||
fprintf (out, _("Useless nonterminals:"));
|
int i;
|
||||||
fprintf (out, "\n\n");
|
fprintf (out, "%s\n\n", _("Useless nonterminals:"));
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = 0; i < nuseless_nonterminals; ++i)
|
||||||
if (!BITISSET (V, i))
|
fprintf (out, " %s\n", tags[nsyms + i]);
|
||||||
fprintf (out, " %s\n", tags[i]);
|
fputs ("\n\n", out);
|
||||||
}
|
}
|
||||||
b = FALSE;
|
|
||||||
for (i = 0; i < ntokens; i++)
|
{
|
||||||
{
|
bool b = FALSE;
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < ntokens; i++)
|
||||||
if (!BITISSET (V, i) && !BITISSET (V1, i))
|
if (!BITISSET (V, i) && !BITISSET (V1, i))
|
||||||
{
|
{
|
||||||
if (!b)
|
if (!b)
|
||||||
{
|
fprintf (out, "%s\n\n", _("Terminals which are not used:"));
|
||||||
fprintf (out, "\n\n");
|
b = TRUE;
|
||||||
fprintf (out, _("Terminals which are not used:"));
|
|
||||||
fprintf (out, "\n\n");
|
|
||||||
b = TRUE;
|
|
||||||
}
|
|
||||||
fprintf (out, " %s\n", tags[i]);
|
fprintf (out, " %s\n", tags[i]);
|
||||||
}
|
}
|
||||||
}
|
if (b)
|
||||||
|
fputs ("\n\n", out);
|
||||||
|
}
|
||||||
|
|
||||||
if (nuseless_productions > 0)
|
if (nuseless_productions > 0)
|
||||||
{
|
{
|
||||||
fprintf (out, "\n\n");
|
int i;
|
||||||
fprintf (out, _("Useless rules:"));
|
fprintf (out, "%s\n\n", _("Useless rules:"));
|
||||||
fprintf (out, "\n\n");
|
|
||||||
for (i = 1; i <= nrules; i++)
|
for (i = 1; i <= nrules; i++)
|
||||||
if (!BITISSET (P, i))
|
if (!rule_table[i].useful)
|
||||||
{
|
{
|
||||||
|
rule r;
|
||||||
fprintf (out, "#%-4d ", i);
|
fprintf (out, "#%-4d ", i);
|
||||||
fprintf (out, "%s :\t", tags[rule_table[i].lhs]);
|
fprintf (out, "%s:", tags[rule_table[i].lhs]);
|
||||||
for (r = &ritem[rule_table[i].rhs]; *r >= 0; r++)
|
for (r = &ritem[rule_table[i].rhs]; *r >= 0; r++)
|
||||||
fprintf (out, " %s", tags[*r]);
|
fprintf (out, " %s", tags[*r]);
|
||||||
fprintf (out, ";\n");
|
fputs (";\n", out);
|
||||||
}
|
}
|
||||||
|
fputs ("\n\n", out);
|
||||||
}
|
}
|
||||||
if (nuseless_nonterminals > 0 || nuseless_productions > 0 || b)
|
|
||||||
fprintf (out, "\n\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -446,28 +453,33 @@ dump_grammar (FILE *out)
|
|||||||
|
|
||||||
fprintf (out, "REDUCED GRAMMAR\n\n");
|
fprintf (out, "REDUCED GRAMMAR\n\n");
|
||||||
fprintf (out,
|
fprintf (out,
|
||||||
"ntokens = %d, nvars = %d, nsyms = %d, nrules = %d, nitems = %d\n\n",
|
"ntokens = %d, nvars = %d, nsyms = %d, nrules = %d, nitems = %d\n\n",
|
||||||
ntokens, nvars, nsyms, nrules, nitems);
|
ntokens, nvars, nsyms, nrules, nitems);
|
||||||
fprintf (out, _("Variables\n---------\n\n"));
|
fprintf (out, "Variables\n---------\n\n");
|
||||||
fprintf (out, _("Value Sprec Sassoc Tag\n"));
|
fprintf (out, "Value Sprec Sassoc Tag\n");
|
||||||
for (i = ntokens; i < nsyms; i++)
|
for (i = ntokens; i < nsyms; i++)
|
||||||
fprintf (out, "%5d %5d %5d %s\n", i, sprec[i], sassoc[i], tags[i]);
|
fprintf (out, "%5d %5d %5d %s\n", i, sprec[i], sassoc[i], tags[i]);
|
||||||
fprintf (out, "\n\n");
|
fprintf (out, "\n\n");
|
||||||
fprintf (out, _("Rules\n-----\n\n"));
|
fprintf (out, "Rules\n-----\n\n");
|
||||||
|
fprintf (out, "Num (Prec, Assoc, Useful, Ritem Range) Lhs -> Rhs (Ritem range) [Num]\n");
|
||||||
for (i = 1; i <= nrules; i++)
|
for (i = 1; i <= nrules; i++)
|
||||||
{
|
{
|
||||||
fprintf (out, "%-5d(%5d%5d)%5d : (@%-5d)",
|
int rhs_count = 0;
|
||||||
|
/* Find the last RHS index in ritems. */
|
||||||
|
for (r = &ritem[rule_table[i].rhs]; *r > 0; ++r)
|
||||||
|
++rhs_count;
|
||||||
|
fprintf (out, "%3d (%2d, %2d, %2d, %2d-%2d) %2d ->",
|
||||||
i,
|
i,
|
||||||
rule_table[i].prec,
|
rule_table[i].prec, rule_table[i].assoc, rule_table[i].useful,
|
||||||
rule_table[i].assoc,
|
rule_table[i].rhs, rule_table[i].rhs + rhs_count - 1,
|
||||||
rule_table[i].lhs,
|
rule_table[i].lhs);
|
||||||
rule_table[i].rhs);
|
/* Dumped the RHS. */
|
||||||
for (r = &ritem[rule_table[i].rhs]; *r > 0; r++)
|
for (r = &ritem[rule_table[i].rhs]; *r > 0; r++)
|
||||||
fprintf (out, "%5d", *r);
|
fprintf (out, "%3d", *r);
|
||||||
fprintf (out, " [%d]\n", -(*r));
|
fprintf (out, " [%d]\n", -(*r));
|
||||||
}
|
}
|
||||||
fprintf (out, "\n\n");
|
fprintf (out, "\n\n");
|
||||||
fprintf (out, _("Rules interpreted\n-----------------\n\n"));
|
fprintf (out, "Rules interpreted\n-----------------\n\n");
|
||||||
for (i = 1; i <= nrules; i++)
|
for (i = 1; i <= nrules; i++)
|
||||||
{
|
{
|
||||||
fprintf (out, "%-5d %s :", i, tags[rule_table[i].lhs]);
|
fprintf (out, "%-5d %s :", i, tags[rule_table[i].lhs]);
|
||||||
@@ -488,24 +500,27 @@ static void
|
|||||||
reduce_print (void)
|
reduce_print (void)
|
||||||
{
|
{
|
||||||
if (yacc_flag && nuseless_productions)
|
if (yacc_flag && nuseless_productions)
|
||||||
fprintf (stderr, _("%d rules never reduced\n"), nuseless_productions);
|
fprintf (stderr, ngettext ("%d rule never reduced\n",
|
||||||
|
"%d rules never reduced\n",
|
||||||
|
nuseless_productions),
|
||||||
|
nuseless_productions);
|
||||||
|
|
||||||
fprintf (stderr, _("%s contains "), infile);
|
fprintf (stderr, _("%s contains "), infile);
|
||||||
|
|
||||||
if (nuseless_nonterminals > 0)
|
if (nuseless_nonterminals > 0)
|
||||||
{
|
fprintf (stderr, ngettext ("%d useless nonterminal",
|
||||||
fprintf (stderr, _("%d useless nonterminal%s"),
|
"%d useless nonterminals",
|
||||||
nuseless_nonterminals,
|
nuseless_nonterminals),
|
||||||
(nuseless_nonterminals == 1 ? "" : "s"));
|
nuseless_nonterminals);
|
||||||
}
|
|
||||||
if (nuseless_nonterminals > 0 && nuseless_productions > 0)
|
if (nuseless_nonterminals > 0 && nuseless_productions > 0)
|
||||||
fprintf (stderr, _(" and "));
|
fprintf (stderr, _(" and "));
|
||||||
|
|
||||||
if (nuseless_productions > 0)
|
if (nuseless_productions > 0)
|
||||||
{
|
fprintf (stderr, ngettext ("%d useless rule",
|
||||||
fprintf (stderr, _("%d useless rule%s"),
|
"%d useless rules",
|
||||||
nuseless_productions, (nuseless_productions == 1 ? "" : "s"));
|
nuseless_productions),
|
||||||
}
|
nuseless_productions);
|
||||||
fprintf (stderr, "\n");
|
fprintf (stderr, "\n");
|
||||||
fflush (stderr);
|
fflush (stderr);
|
||||||
}
|
}
|
||||||
@@ -537,6 +552,8 @@ reduce_grammar (void)
|
|||||||
tags[start_symbol]);
|
tags[start_symbol]);
|
||||||
|
|
||||||
reduce_grammar_tables ();
|
reduce_grammar_tables ();
|
||||||
|
if (nuseless_nonterminals > 0)
|
||||||
|
nonterminals_reduce ();
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,4 +24,6 @@
|
|||||||
void reduce_grammar PARAMS ((void));
|
void reduce_grammar PARAMS ((void));
|
||||||
void reduce_output PARAMS ((FILE *out));
|
void reduce_output PARAMS ((FILE *out));
|
||||||
void reduce_free PARAMS ((void));
|
void reduce_free PARAMS ((void));
|
||||||
|
|
||||||
|
extern int nuseless_nonterminals;
|
||||||
#endif /* !REDUCE_H_ */
|
#endif /* !REDUCE_H_ */
|
||||||
|
|||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
/* Type definitions for nondeterministic finite state machine for bison,
|
||||||
|
Copyright 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
|
Bison is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
Bison is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with Bison; see the file COPYING. If not, write to
|
||||||
|
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
|
||||||
|
#include "system.h"
|
||||||
|
#include "state.h"
|
||||||
|
|
||||||
|
/*---------------------------------.
|
||||||
|
| Create a new array of N shitfs. |
|
||||||
|
`---------------------------------*/
|
||||||
|
|
||||||
|
shifts *
|
||||||
|
shifts_new (int n)
|
||||||
|
{
|
||||||
|
shifts *res = SHIFTS_ALLOC (n);
|
||||||
|
res->nshifts = n;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
+56
-9
@@ -1,5 +1,5 @@
|
|||||||
/* Type definitions for nondeterministic finite state machine for bison,
|
/* Type definitions for nondeterministic finite state machine for bison,
|
||||||
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
|
Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -88,6 +88,11 @@
|
|||||||
#ifndef STATE_H_
|
#ifndef STATE_H_
|
||||||
# define STATE_H_
|
# define STATE_H_
|
||||||
|
|
||||||
|
|
||||||
|
/*-------.
|
||||||
|
| Core. |
|
||||||
|
`-------*/
|
||||||
|
|
||||||
typedef struct core
|
typedef struct core
|
||||||
{
|
{
|
||||||
struct core *next;
|
struct core *next;
|
||||||
@@ -96,39 +101,82 @@ typedef struct core
|
|||||||
short accessing_symbol;
|
short accessing_symbol;
|
||||||
short nitems;
|
short nitems;
|
||||||
short items[1];
|
short items[1];
|
||||||
}
|
} core;
|
||||||
core;
|
|
||||||
|
|
||||||
#define CORE_ALLOC(Nitems) \
|
#define CORE_ALLOC(Nitems) \
|
||||||
(core *) xcalloc ((unsigned) (sizeof (core) \
|
(core *) xcalloc ((unsigned) (sizeof (core) \
|
||||||
+ (Nitems - 1) * sizeof (short)), 1)
|
+ (Nitems - 1) * sizeof (short)), 1)
|
||||||
|
|
||||||
|
/*---------.
|
||||||
|
| Shifts. |
|
||||||
|
`---------*/
|
||||||
|
|
||||||
typedef struct shifts
|
typedef struct shifts
|
||||||
{
|
{
|
||||||
struct shifts *next;
|
struct shifts *next;
|
||||||
short number;
|
short number;
|
||||||
short nshifts;
|
short nshifts;
|
||||||
short shifts[1];
|
short shifts[1];
|
||||||
}
|
} shifts;
|
||||||
shifts;
|
|
||||||
|
|
||||||
#define SHIFTS_ALLOC(Nshifts) \
|
#define SHIFTS_ALLOC(Nshifts) \
|
||||||
(shifts *) xcalloc ((unsigned) (sizeof (shifts) \
|
(shifts *) xcalloc ((unsigned) (sizeof (shifts) \
|
||||||
+ (Nshifts - 1) * sizeof (short)), 1)
|
+ (Nshifts - 1) * sizeof (short)), 1)
|
||||||
|
|
||||||
|
shifts * shifts_new PARAMS ((int n));
|
||||||
|
|
||||||
|
|
||||||
|
/* What is the symbol which is shifted by SHIFTS->shifts[Shift]? Can
|
||||||
|
be a token (amongst which the error token), or non terminals in
|
||||||
|
case of gotos. */
|
||||||
|
|
||||||
|
#define SHIFT_SYMBOL(Shifts, Shift) \
|
||||||
|
(state_table[Shifts->shifts[Shift]].accessing_symbol)
|
||||||
|
|
||||||
|
/* Is the SHIFTS->shifts[Shift] a real shift? (as opposed to gotos.) */
|
||||||
|
|
||||||
|
#define SHIFT_IS_SHIFT(Shifts, Shift) \
|
||||||
|
(ISTOKEN (SHIFT_SYMBOL (Shifts, Shift)))
|
||||||
|
|
||||||
|
/* Is the SHIFTS->shifts[Shift] a goto?. */
|
||||||
|
|
||||||
|
#define SHIFT_IS_GOTO(Shifts, Shift) \
|
||||||
|
(!SHIFT_IS_SHIFT (Shifts, Shift))
|
||||||
|
|
||||||
|
/* Is the SHIFTS->shifts[Shift] then handling of the error token?. */
|
||||||
|
|
||||||
|
#define SHIFT_IS_ERROR(Shifts, Shift) \
|
||||||
|
(SHIFT_SYMBOL (Shifts, Shift) == error_token_number)
|
||||||
|
|
||||||
|
/* When resolving a SR conflicts, if the reduction wins, the shift is
|
||||||
|
disabled. */
|
||||||
|
|
||||||
|
#define SHIFT_DISABLE(Shifts, Shift) \
|
||||||
|
(Shifts->shifts[Shift] = 0)
|
||||||
|
|
||||||
|
#define SHIFT_IS_DISABLED(Shifts, Shift) \
|
||||||
|
(Shifts->shifts[Shift] == 0)
|
||||||
|
|
||||||
|
|
||||||
|
/*-------.
|
||||||
|
| Errs. |
|
||||||
|
`-------*/
|
||||||
|
|
||||||
typedef struct errs
|
typedef struct errs
|
||||||
{
|
{
|
||||||
short nerrs;
|
short nerrs;
|
||||||
short errs[1];
|
short errs[1];
|
||||||
}
|
} errs;
|
||||||
errs;
|
|
||||||
|
|
||||||
#define ERRS_ALLOC(Nerrs) \
|
#define ERRS_ALLOC(Nerrs) \
|
||||||
(errs *) xcalloc ((unsigned) (sizeof (errs) \
|
(errs *) xcalloc ((unsigned) (sizeof (errs) \
|
||||||
+ (Nerrs - 1) * sizeof (short)), 1)
|
+ (Nerrs - 1) * sizeof (short)), 1)
|
||||||
|
|
||||||
|
|
||||||
|
/*-------------.
|
||||||
|
| Reductions. |
|
||||||
|
`-------------*/
|
||||||
|
|
||||||
typedef struct reductions
|
typedef struct reductions
|
||||||
{
|
{
|
||||||
@@ -136,8 +184,7 @@ typedef struct reductions
|
|||||||
short number;
|
short number;
|
||||||
short nreds;
|
short nreds;
|
||||||
short rules[1];
|
short rules[1];
|
||||||
}
|
} reductions;
|
||||||
reductions;
|
|
||||||
|
|
||||||
#define REDUCTIONS_ALLOC(Nreductions) \
|
#define REDUCTIONS_ALLOC(Nreductions) \
|
||||||
(reductions *) xcalloc ((unsigned) (sizeof (reductions) \
|
(reductions *) xcalloc ((unsigned) (sizeof (reductions) \
|
||||||
|
|||||||
+3
-14
@@ -149,20 +149,9 @@ size_t strnlen PARAMS ((const char *s, size_t maxlen));
|
|||||||
# define setlocale(Category, Locale)
|
# define setlocale(Category, Locale)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
#include "libgettext.h"
|
||||||
# include <libintl.h>
|
#define _(Msgid) gettext (Msgid)
|
||||||
# define _(Text) gettext (Text)
|
#define N_(Msgid) (Msgid)
|
||||||
#else
|
|
||||||
# undef bindtextdomain
|
|
||||||
# define bindtextdomain(Domain, Directory)
|
|
||||||
# undef textdomain
|
|
||||||
# define textdomain(Domain)
|
|
||||||
# undef ngettext
|
|
||||||
# define ngettext(Singular, Plural, Number) \
|
|
||||||
((Number == 1) ? Singular : Plural)
|
|
||||||
# define _(Text) Text
|
|
||||||
#endif
|
|
||||||
#define N_(Text) Text
|
|
||||||
|
|
||||||
|
|
||||||
/*-------------------------------.
|
/*-------------------------------.
|
||||||
|
|||||||
+76
-74
@@ -1,5 +1,5 @@
|
|||||||
/* Generate transitive closure of a matrix,
|
/* Generate transitive closure of a matrix,
|
||||||
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
|
Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -20,95 +20,97 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
#include "getargs.h"
|
||||||
#include "warshall.h"
|
#include "warshall.h"
|
||||||
|
|
||||||
/* Given n by n matrix of bits R, modify its contents to be the
|
/*-------------------------------------------------------------.
|
||||||
transive closure of what was given. */
|
| Given n by n matrix of bits R, modify its contents to be the |
|
||||||
|
| transive closure of what was given. |
|
||||||
|
`-------------------------------------------------------------*/
|
||||||
|
|
||||||
|
static void
|
||||||
|
bitmatrix_print (const char *title, unsigned *matrix, size_t size)
|
||||||
|
{
|
||||||
|
size_t i, j;
|
||||||
|
size_t rowsize = WORDSIZE (size) * sizeof (unsigned);
|
||||||
|
#define ROW(Num) ((unsigned *) ((char *) matrix + ((Num) * rowsize)))
|
||||||
|
|
||||||
|
/* Title. */
|
||||||
|
fprintf (stderr, "%s BEGIN\n", title);
|
||||||
|
|
||||||
|
/* Column numbers. */
|
||||||
|
fputs (" ", stderr);
|
||||||
|
for (i = 0; i < size; ++i)
|
||||||
|
putc (i / 10 ? '0' + i / 10 : ' ', stderr);
|
||||||
|
putc ('\n', stderr);
|
||||||
|
fputs (" ", stderr);
|
||||||
|
for (i = 0; i < size; ++i)
|
||||||
|
fprintf (stderr, "%d", i % 10);
|
||||||
|
putc ('\n', stderr);
|
||||||
|
|
||||||
|
/* Bar. */
|
||||||
|
fputs (" .", stderr);
|
||||||
|
for (i = 0; i < size; ++i)
|
||||||
|
putc ('-', stderr);
|
||||||
|
fputs (".\n", stderr);
|
||||||
|
|
||||||
|
/* Contents. */
|
||||||
|
for (i = 0; i < size; ++i)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "%2d|", i);
|
||||||
|
for (j = 0; j < size; ++j)
|
||||||
|
fputs (BITISSET (ROW (i), j) ? "1" : " ", stderr);
|
||||||
|
fputs ("|\n", stderr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bar. */
|
||||||
|
fputs (" `", stderr);
|
||||||
|
for (i = 0; i < size; ++i)
|
||||||
|
putc ('-', stderr);
|
||||||
|
fputs ("'\n", stderr);
|
||||||
|
|
||||||
|
/* End title. */
|
||||||
|
fprintf (stderr, "%s END\n\n", title);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define R(Num) (unsigned *) ((char *) R + ((Num) * rowsize))
|
||||||
|
|
||||||
static void
|
static void
|
||||||
TC (unsigned *R, int n)
|
TC (unsigned *R, int n)
|
||||||
{
|
{
|
||||||
int rowsize;
|
int rowsize = WORDSIZE (n) * sizeof (unsigned);
|
||||||
unsigned mask;
|
int i, j, k;
|
||||||
unsigned *rowj;
|
|
||||||
unsigned *rp;
|
|
||||||
unsigned *rend;
|
|
||||||
unsigned *ccol;
|
|
||||||
|
|
||||||
unsigned *relend;
|
if (trace_flag)
|
||||||
unsigned *cword;
|
bitmatrix_print ("TC: Input", R, n);
|
||||||
unsigned *rowi;
|
|
||||||
|
|
||||||
rowsize = WORDSIZE(n) * sizeof(unsigned);
|
/* R (J, I) && R (I, K) => R (J, K).
|
||||||
relend = (unsigned *) ((char *) R + (n * rowsize));
|
I *must* be the outter loop. */
|
||||||
|
|
||||||
cword = R;
|
for (i = 0; i < n; ++i)
|
||||||
mask = 1;
|
for (j = 0; j < n; ++j)
|
||||||
rowi = R;
|
if (BITISSET (R (j), i))
|
||||||
while (rowi < relend)
|
for (k = 0; k < n; ++k)
|
||||||
{
|
if (BITISSET (R (i), k))
|
||||||
ccol = cword;
|
SETBIT (R (j), k);
|
||||||
rowj = R;
|
|
||||||
|
|
||||||
while (rowj < relend)
|
if (trace_flag)
|
||||||
{
|
bitmatrix_print ("TC: Output", R, n);
|
||||||
if (*ccol & mask)
|
|
||||||
{
|
|
||||||
rp = rowi;
|
|
||||||
rend = (unsigned *) ((char *) rowj + rowsize);
|
|
||||||
|
|
||||||
while (rowj < rend)
|
|
||||||
*rowj++ |= *rp++;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rowj = (unsigned *) ((char *) rowj + rowsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
ccol = (unsigned *) ((char *) ccol + rowsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
cword++;
|
|
||||||
}
|
|
||||||
|
|
||||||
rowi = (unsigned *) ((char *) rowi + rowsize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Reflexive Transitive Closure. Same as TC
|
/*---------------------------------------------------------------.
|
||||||
and then set all the bits on the diagonal of R. */
|
| Reflexive Transitive Closure. Same as TC and then set all the |
|
||||||
|
| bits on the diagonal of R. |
|
||||||
|
`---------------------------------------------------------------*/
|
||||||
|
|
||||||
void
|
void
|
||||||
RTC (unsigned *R, int n)
|
RTC (unsigned *R, int n)
|
||||||
{
|
{
|
||||||
int rowsize;
|
int rowsize = WORDSIZE (n) * sizeof (unsigned);
|
||||||
unsigned mask;
|
int i;
|
||||||
unsigned *rp;
|
|
||||||
unsigned *relend;
|
|
||||||
|
|
||||||
TC(R, n);
|
TC (R, n);
|
||||||
|
for (i = 0; i < n; ++i)
|
||||||
rowsize = WORDSIZE(n) * sizeof(unsigned);
|
SETBIT (R (i), i);
|
||||||
relend = (unsigned *) ((char *) R + n*rowsize);
|
|
||||||
|
|
||||||
mask = 1;
|
|
||||||
rp = R;
|
|
||||||
while (rp < relend)
|
|
||||||
{
|
|
||||||
*rp |= mask;
|
|
||||||
|
|
||||||
mask <<= 1;
|
|
||||||
if (mask == 0)
|
|
||||||
{
|
|
||||||
mask = 1;
|
|
||||||
rp++;
|
|
||||||
}
|
|
||||||
|
|
||||||
rp = (unsigned *) ((char *) rp + rowsize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-26
@@ -1,30 +1,5 @@
|
|||||||
/* Generate transitive closure of a matrix,
|
/* Generate transitive closure of a matrix,
|
||||||
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
|
Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
|
||||||
|
|
||||||
Bison is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
any later version.
|
|
||||||
|
|
||||||
Bison is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with Bison; see the file COPYING. If not, write to
|
|
||||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
||||||
Boston, MA 02111-1307, USA. */
|
|
||||||
|
|
||||||
#ifndef WARSHALL_H_
|
|
||||||
# define WARSHALL_H_
|
|
||||||
|
|
||||||
void RTC PARAMS ((unsigned *, int));
|
|
||||||
#endif /* !WARSHALL_H_ */
|
|
||||||
/* Generate transitive closure of a matrix,
|
|
||||||
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
|
|||||||
|
|
||||||
TESTSUITE_AT = \
|
TESTSUITE_AT = \
|
||||||
testsuite.at \
|
testsuite.at \
|
||||||
output.at calc.at torture.at regression.at
|
output.at sets.at reduce.at calc.at torture.at regression.at
|
||||||
TESTSUITE = $(srcdir)/testsuite
|
TESTSUITE = $(srcdir)/testsuite
|
||||||
|
|
||||||
AUTOTEST = $(AUTOM4TE) --language=autotest
|
AUTOTEST = $(AUTOM4TE) --language=autotest
|
||||||
|
|||||||
+1
-1
@@ -108,7 +108,7 @@ MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
|
|||||||
|
|
||||||
TESTSUITE_AT = \
|
TESTSUITE_AT = \
|
||||||
testsuite.at \
|
testsuite.at \
|
||||||
output.at calc.at torture.at regression.at
|
output.at sets.at reduce.at calc.at torture.at regression.at
|
||||||
|
|
||||||
TESTSUITE = $(srcdir)/testsuite
|
TESTSUITE = $(srcdir)/testsuite
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
# We need a C compiler.
|
# We need a C compiler.
|
||||||
CC='@CC@'
|
CC='@CC@'
|
||||||
CFLAGS='@CFLAGS@'
|
CFLAGS='@CFLAGS@ @WARNING_CFLAGS@'
|
||||||
|
|
||||||
# We need to know if the compiler is GCC.
|
# We need to know if the compiler is GCC.
|
||||||
GCC='@GCC@'
|
GCC='@GCC@'
|
||||||
|
|
||||||
# We need `config.h'.
|
# We need `config.h'.
|
||||||
CPPFLAGS="-I $top_buildpath @CPPFLAGS@"
|
CPPFLAGS="-I$top_buildpath @CPPFLAGS@"
|
||||||
|
|||||||
+206
@@ -0,0 +1,206 @@
|
|||||||
|
# Exercising Bison Grammar Reduction. -*- Autotest -*-
|
||||||
|
# Copyright 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
AT_BANNER([[Grammar Reduction.]])
|
||||||
|
|
||||||
|
|
||||||
|
## ------------------- ##
|
||||||
|
## Useless Terminals. ##
|
||||||
|
## ------------------- ##
|
||||||
|
|
||||||
|
AT_SETUP([Useless Terminals])
|
||||||
|
|
||||||
|
AT_DATA([[input.y]],
|
||||||
|
[[%verbose
|
||||||
|
%output="input.c"
|
||||||
|
|
||||||
|
%token useless1
|
||||||
|
%token useless2
|
||||||
|
%token useless3
|
||||||
|
%token useless4
|
||||||
|
%token useless5
|
||||||
|
%token useless6
|
||||||
|
%token useless7
|
||||||
|
%token useless8
|
||||||
|
%token useless9
|
||||||
|
|
||||||
|
%token useful
|
||||||
|
%%
|
||||||
|
exp: useful;
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[bison input.y]])
|
||||||
|
|
||||||
|
AT_CHECK([[sed -n '/^Grammar/q;/^$/!p' input.output]], 0,
|
||||||
|
[[Terminals which are not used:
|
||||||
|
useless1
|
||||||
|
useless2
|
||||||
|
useless3
|
||||||
|
useless4
|
||||||
|
useless5
|
||||||
|
useless6
|
||||||
|
useless7
|
||||||
|
useless8
|
||||||
|
useless9
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## ---------------------- ##
|
||||||
|
## Useless Nonterminals. ##
|
||||||
|
## ---------------------- ##
|
||||||
|
|
||||||
|
AT_SETUP([Useless Nonterminals])
|
||||||
|
|
||||||
|
AT_DATA([[input.y]],
|
||||||
|
[[%verbose
|
||||||
|
%output="input.c"
|
||||||
|
|
||||||
|
%nterm useless1
|
||||||
|
%nterm useless2
|
||||||
|
%nterm useless3
|
||||||
|
%nterm useless4
|
||||||
|
%nterm useless5
|
||||||
|
%nterm useless6
|
||||||
|
%nterm useless7
|
||||||
|
%nterm useless8
|
||||||
|
%nterm useless9
|
||||||
|
|
||||||
|
%token useful
|
||||||
|
%%
|
||||||
|
exp: useful;
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[bison input.y]], 0, [],
|
||||||
|
[[input.y contains 9 useless nonterminals
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[sed -n '/^Grammar/q;/^$/!p' input.output]], 0,
|
||||||
|
[[Useless nonterminals:
|
||||||
|
useless1
|
||||||
|
useless2
|
||||||
|
useless3
|
||||||
|
useless4
|
||||||
|
useless5
|
||||||
|
useless6
|
||||||
|
useless7
|
||||||
|
useless8
|
||||||
|
useless9
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## --------------- ##
|
||||||
|
## Useless Rules. ##
|
||||||
|
## --------------- ##
|
||||||
|
|
||||||
|
AT_SETUP([Useless Rules])
|
||||||
|
|
||||||
|
AT_DATA([[input.y]],
|
||||||
|
[[%verbose
|
||||||
|
%output="input.c"
|
||||||
|
%token useful
|
||||||
|
%%
|
||||||
|
exp: useful;
|
||||||
|
useless1: '1';
|
||||||
|
useless2: '2';
|
||||||
|
useless3: '3';
|
||||||
|
useless4: '4';
|
||||||
|
useless5: '5';
|
||||||
|
useless6: '6';
|
||||||
|
useless7: '7';
|
||||||
|
useless8: '8';
|
||||||
|
useless9: '9';
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[bison input.y]], 0, [],
|
||||||
|
[[input.y contains 9 useless nonterminals and 9 useless rules
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[sed -n '/^Grammar/q;/^$/!p' input.output]], 0,
|
||||||
|
[[Useless nonterminals:
|
||||||
|
useless1
|
||||||
|
useless2
|
||||||
|
useless3
|
||||||
|
useless4
|
||||||
|
useless5
|
||||||
|
useless6
|
||||||
|
useless7
|
||||||
|
useless8
|
||||||
|
useless9
|
||||||
|
Terminals which are not used:
|
||||||
|
'1'
|
||||||
|
'2'
|
||||||
|
'3'
|
||||||
|
'4'
|
||||||
|
'5'
|
||||||
|
'6'
|
||||||
|
'7'
|
||||||
|
'8'
|
||||||
|
'9'
|
||||||
|
Useless rules:
|
||||||
|
#2 useless1: '1';
|
||||||
|
#3 useless2: '2';
|
||||||
|
#4 useless3: '3';
|
||||||
|
#5 useless4: '4';
|
||||||
|
#6 useless5: '5';
|
||||||
|
#7 useless6: '6';
|
||||||
|
#8 useless7: '7';
|
||||||
|
#9 useless8: '8';
|
||||||
|
#10 useless9: '9';
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## ------------------- ##
|
||||||
|
## Underivable Rules. ##
|
||||||
|
## ------------------- ##
|
||||||
|
|
||||||
|
AT_SETUP([Underivable Rules])
|
||||||
|
|
||||||
|
AT_DATA([[input.y]],
|
||||||
|
[[%verbose
|
||||||
|
%output="input.c"
|
||||||
|
%token useful
|
||||||
|
%%
|
||||||
|
exp: useful | underivable;
|
||||||
|
underivable: indirection;
|
||||||
|
indirection: underivable;
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[bison input.y]], 0, [],
|
||||||
|
[[input.y contains 2 useless nonterminals and 3 useless rules
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[sed -n '/^Grammar/q;/^$/!p' input.output]], 0,
|
||||||
|
[[Useless nonterminals:
|
||||||
|
underivable
|
||||||
|
indirection
|
||||||
|
Useless rules:
|
||||||
|
#2 exp: underivable;
|
||||||
|
#3 underivable: indirection;
|
||||||
|
#4 indirection: underivable;
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
+15
-2
@@ -63,12 +63,14 @@ AT_CHECK([bison input.y -o input.c -v], 0, [],
|
|||||||
AT_CHECK([cat input.output], [],
|
AT_CHECK([cat input.output], [],
|
||||||
[[State 4 contains 1 shift/reduce conflict.
|
[[State 4 contains 1 shift/reduce conflict.
|
||||||
|
|
||||||
|
|
||||||
Grammar
|
Grammar
|
||||||
|
|
||||||
Number, Line, Rule
|
Number, Line, Rule
|
||||||
1 3 exp -> exp OP exp
|
1 3 exp -> exp OP exp
|
||||||
2 3 exp -> NUM
|
2 3 exp -> NUM
|
||||||
|
|
||||||
|
|
||||||
Terminals, with rules where they appear
|
Terminals, with rules where they appear
|
||||||
|
|
||||||
$ (-1)
|
$ (-1)
|
||||||
@@ -76,6 +78,7 @@ error (256)
|
|||||||
NUM (257) 2
|
NUM (257) 2
|
||||||
OP (258) 1
|
OP (258) 1
|
||||||
|
|
||||||
|
|
||||||
Nonterminals, with rules where they appear
|
Nonterminals, with rules where they appear
|
||||||
|
|
||||||
exp (5)
|
exp (5)
|
||||||
@@ -138,6 +141,8 @@ state 5
|
|||||||
state 6
|
state 6
|
||||||
|
|
||||||
$default accept
|
$default accept
|
||||||
|
|
||||||
|
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
@@ -162,12 +167,14 @@ AT_CHECK([bison input.y -o input.c -v], 0, [], [])
|
|||||||
AT_CHECK([cat input.output], [],
|
AT_CHECK([cat input.output], [],
|
||||||
[[Conflict in state 4 between rule 1 and token OP resolved as shift.
|
[[Conflict in state 4 between rule 1 and token OP resolved as shift.
|
||||||
|
|
||||||
|
|
||||||
Grammar
|
Grammar
|
||||||
|
|
||||||
Number, Line, Rule
|
Number, Line, Rule
|
||||||
1 4 exp -> exp OP exp
|
1 4 exp -> exp OP exp
|
||||||
2 4 exp -> NUM
|
2 4 exp -> NUM
|
||||||
|
|
||||||
|
|
||||||
Terminals, with rules where they appear
|
Terminals, with rules where they appear
|
||||||
|
|
||||||
$ (-1)
|
$ (-1)
|
||||||
@@ -175,6 +182,7 @@ error (256)
|
|||||||
NUM (257) 2
|
NUM (257) 2
|
||||||
OP (258) 1
|
OP (258) 1
|
||||||
|
|
||||||
|
|
||||||
Nonterminals, with rules where they appear
|
Nonterminals, with rules where they appear
|
||||||
|
|
||||||
exp (5)
|
exp (5)
|
||||||
@@ -236,6 +244,8 @@ state 5
|
|||||||
state 6
|
state 6
|
||||||
|
|
||||||
$default accept
|
$default accept
|
||||||
|
|
||||||
|
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
@@ -283,8 +293,7 @@ AT_CHECK([bison input.y -o input.c -v], 0, [], [])
|
|||||||
|
|
||||||
# Check the contents of the report.
|
# Check the contents of the report.
|
||||||
AT_CHECK([cat input.output], [],
|
AT_CHECK([cat input.output], [],
|
||||||
[[
|
[[Grammar
|
||||||
Grammar
|
|
||||||
|
|
||||||
Number, Line, Rule
|
Number, Line, Rule
|
||||||
1 2 @1 -> /* empty */
|
1 2 @1 -> /* empty */
|
||||||
@@ -292,6 +301,7 @@ Grammar
|
|||||||
3 15 @2 -> /* empty */
|
3 15 @2 -> /* empty */
|
||||||
4 15 expr -> @2 'c'
|
4 15 expr -> @2 'c'
|
||||||
|
|
||||||
|
|
||||||
Terminals, with rules where they appear
|
Terminals, with rules where they appear
|
||||||
|
|
||||||
$ (-1)
|
$ (-1)
|
||||||
@@ -300,6 +310,7 @@ $ (-1)
|
|||||||
'c' (99) 4
|
'c' (99) 4
|
||||||
error (256)
|
error (256)
|
||||||
|
|
||||||
|
|
||||||
Nonterminals, with rules where they appear
|
Nonterminals, with rules where they appear
|
||||||
|
|
||||||
expr (6)
|
expr (6)
|
||||||
@@ -378,6 +389,8 @@ state 7
|
|||||||
state 8
|
state 8
|
||||||
|
|
||||||
$default accept
|
$default accept
|
||||||
|
|
||||||
|
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
|||||||
+193
@@ -0,0 +1,193 @@
|
|||||||
|
# Exercising Bison Grammar Sets. -*- Autotest -*-
|
||||||
|
# Copyright 2001 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
# This program is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
# any later version.
|
||||||
|
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
# 02111-1307, USA.
|
||||||
|
|
||||||
|
AT_BANNER([[Grammar Sets (Firsts etc.).]])
|
||||||
|
|
||||||
|
|
||||||
|
## ---------- ##
|
||||||
|
## Nullable. ##
|
||||||
|
## ---------- ##
|
||||||
|
|
||||||
|
AT_SETUP([Nullable])
|
||||||
|
|
||||||
|
# At some point, nullable had been smoking grass, and managed to say:
|
||||||
|
#
|
||||||
|
# Entering set_nullable
|
||||||
|
# NULLABLE
|
||||||
|
# 'e': yes
|
||||||
|
# (null): no
|
||||||
|
# ...
|
||||||
|
|
||||||
|
AT_DATA([[input.y]],
|
||||||
|
[[%%
|
||||||
|
e: 'e' | /* Nothing */;
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([[bison --trace input.y]], [], [],
|
||||||
|
[[RITEM
|
||||||
|
'e' (rule 1)
|
||||||
|
(rule 2)
|
||||||
|
|
||||||
|
|
||||||
|
DERIVES
|
||||||
|
e derives
|
||||||
|
1: 'e' (rule 1)
|
||||||
|
2: (rule 2)
|
||||||
|
|
||||||
|
|
||||||
|
Entering set_nullable
|
||||||
|
NULLABLE
|
||||||
|
e: yes
|
||||||
|
|
||||||
|
|
||||||
|
TC: Input BEGIN
|
||||||
|
@&t@
|
||||||
|
0
|
||||||
|
.-.
|
||||||
|
0| |
|
||||||
|
`-'
|
||||||
|
TC: Input END
|
||||||
|
|
||||||
|
TC: Output BEGIN
|
||||||
|
@&t@
|
||||||
|
0
|
||||||
|
.-.
|
||||||
|
0| |
|
||||||
|
`-'
|
||||||
|
TC: Output END
|
||||||
|
|
||||||
|
FIRSTS
|
||||||
|
e firsts
|
||||||
|
4 (e)
|
||||||
|
|
||||||
|
|
||||||
|
FDERIVES
|
||||||
|
e derives
|
||||||
|
1: 'e'
|
||||||
|
2:
|
||||||
|
|
||||||
|
|
||||||
|
Processing state 0 (reached by $)
|
||||||
|
Closure: input
|
||||||
|
|
||||||
|
|
||||||
|
Closure: output
|
||||||
|
0: . 'e' (rule 1)
|
||||||
|
2: . (rule 2)
|
||||||
|
|
||||||
|
|
||||||
|
Entering new_itemsets, state = 0
|
||||||
|
Entering append_states, state = 0
|
||||||
|
Entering get_state, state = 0, symbol = 3 ('e')
|
||||||
|
Entering new_state, state = 0, symbol = 3 ('e')
|
||||||
|
Exiting get_state => 1
|
||||||
|
Processing state 1 (reached by 'e')
|
||||||
|
Closure: input
|
||||||
|
1: . (rule 1)
|
||||||
|
|
||||||
|
|
||||||
|
Closure: output
|
||||||
|
1: . (rule 1)
|
||||||
|
|
||||||
|
|
||||||
|
Entering new_itemsets, state = 1
|
||||||
|
Entering append_states, state = 1
|
||||||
|
transpose: input
|
||||||
|
0: @&t@
|
||||||
|
|
||||||
|
transpose: output
|
||||||
|
0: @&t@
|
||||||
|
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|
||||||
|
## ---------------- ##
|
||||||
|
## Broken Closure. ##
|
||||||
|
## ---------------- ##
|
||||||
|
|
||||||
|
# TC was once broken during a massive `simplification' of the code.
|
||||||
|
# It resulted in bison dumping core on the following grammar (the
|
||||||
|
# computation of FIRSTS uses TC). It managed to produce a pretty
|
||||||
|
# exotic closure:
|
||||||
|
#
|
||||||
|
# TC: Input
|
||||||
|
#
|
||||||
|
# 01234567
|
||||||
|
# +--------+
|
||||||
|
# 0| 1 |
|
||||||
|
# 1| 1 |
|
||||||
|
# 2| 1 |
|
||||||
|
# 3| 1 |
|
||||||
|
# 4| 1 |
|
||||||
|
# 5| 1 |
|
||||||
|
# 6| 1|
|
||||||
|
# 7| |
|
||||||
|
# +--------+
|
||||||
|
#
|
||||||
|
# TC: Output
|
||||||
|
#
|
||||||
|
# 01234567
|
||||||
|
# +--------+
|
||||||
|
# 0| 1 |
|
||||||
|
# 1| 111 |
|
||||||
|
# 2| 111 |
|
||||||
|
# 3| 1111 |
|
||||||
|
# 4| 111 1 |
|
||||||
|
# 5| 111 1 |
|
||||||
|
# 6| 111 1|
|
||||||
|
# 7| 111 |
|
||||||
|
# +--------+
|
||||||
|
#
|
||||||
|
# instead of that below.
|
||||||
|
|
||||||
|
AT_SETUP([Broken Closure])
|
||||||
|
|
||||||
|
AT_DATA([input.y],
|
||||||
|
[[%%
|
||||||
|
a: b
|
||||||
|
b: c
|
||||||
|
c: d
|
||||||
|
d: e
|
||||||
|
e: f
|
||||||
|
f: g
|
||||||
|
g: h
|
||||||
|
h: 'h'
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([bison --trace input.y 2>&1 |
|
||||||
|
sed -n '/^TC: Output BEGIN/,/^TC: Output END/p'],
|
||||||
|
[0],
|
||||||
|
[[TC: Output BEGIN
|
||||||
|
@&t@
|
||||||
|
01234567
|
||||||
|
.--------.
|
||||||
|
0| 1111111|
|
||||||
|
1| 111111|
|
||||||
|
2| 11111|
|
||||||
|
3| 1111|
|
||||||
|
4| 111|
|
||||||
|
5| 11|
|
||||||
|
6| 1|
|
||||||
|
7| |
|
||||||
|
`--------'
|
||||||
|
TC: Output END
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
@@ -26,6 +26,8 @@ AT_INIT
|
|||||||
AT_TESTED([bison])
|
AT_TESTED([bison])
|
||||||
|
|
||||||
m4_include([output.at])
|
m4_include([output.at])
|
||||||
|
m4_include([sets.at])
|
||||||
|
m4_include([reduce.at])
|
||||||
m4_include([calc.at])
|
m4_include([calc.at])
|
||||||
m4_include([torture.at])
|
m4_include([torture.at])
|
||||||
m4_include([regression.at])
|
m4_include([regression.at])
|
||||||
|
|||||||
+341
-1
@@ -103,7 +103,7 @@ AT_CLEANUP
|
|||||||
|
|
||||||
AT_SETUP([Exploding the Stack Size with Malloc])
|
AT_SETUP([Exploding the Stack Size with Malloc])
|
||||||
|
|
||||||
AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA_ALLOCA 0]])
|
AT_DATA_STACK_TORTURE([[#define YYSTACK_USE_ALLOCA 0]])
|
||||||
|
|
||||||
# Below the limit of 200.
|
# Below the limit of 200.
|
||||||
AT_CHECK([input 20], 0, [], [ignore])
|
AT_CHECK([input 20], 0, [], [ignore])
|
||||||
@@ -114,3 +114,343 @@ AT_CHECK([input 900], 0, [], [ignore])
|
|||||||
AT_CHECK([input 10000], 1, [], [ignore])
|
AT_CHECK([input 10000], 1, [], [ignore])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
|
||||||
|
|
||||||
|
## ----------------- ##
|
||||||
|
## GNU AWK Grammar. ##
|
||||||
|
## ----------------- ##
|
||||||
|
|
||||||
|
AT_SETUP([GNU AWK Grammar])
|
||||||
|
|
||||||
|
# We have been careful to strip all the actions excepts the
|
||||||
|
# mid-rule actions. We rely on %expect to check that there are
|
||||||
|
# indeed 65 SR conflicts.
|
||||||
|
#
|
||||||
|
# Bison was once wrong, due to an incorrect computation of nullable.
|
||||||
|
# It reported 485 SR conflicts!
|
||||||
|
|
||||||
|
AT_DATA([[input.y]],
|
||||||
|
[[%expect 65
|
||||||
|
|
||||||
|
%token FUNC_CALL NAME REGEXP
|
||||||
|
%token ERROR
|
||||||
|
%token YNUMBER YSTRING
|
||||||
|
%token RELOP APPEND_OP
|
||||||
|
%token ASSIGNOP MATCHOP NEWLINE CONCAT_OP
|
||||||
|
%token LEX_BEGIN LEX_END LEX_IF LEX_ELSE LEX_RETURN LEX_DELETE
|
||||||
|
%token LEX_WHILE LEX_DO LEX_FOR LEX_BREAK LEX_CONTINUE
|
||||||
|
%token LEX_PRINT LEX_PRINTF LEX_NEXT LEX_EXIT LEX_FUNCTION
|
||||||
|
%token LEX_GETLINE LEX_NEXTFILE
|
||||||
|
%token LEX_IN
|
||||||
|
%token LEX_AND LEX_OR INCREMENT DECREMENT
|
||||||
|
%token LEX_BUILTIN LEX_LENGTH
|
||||||
|
|
||||||
|
/* Lowest to highest */
|
||||||
|
%right ASSIGNOP
|
||||||
|
%right '?' ':'
|
||||||
|
%left LEX_OR
|
||||||
|
%left LEX_AND
|
||||||
|
%left LEX_GETLINE
|
||||||
|
%nonassoc LEX_IN
|
||||||
|
%left FUNC_CALL LEX_BUILTIN LEX_LENGTH
|
||||||
|
%nonassoc ','
|
||||||
|
%nonassoc MATCHOP
|
||||||
|
%nonassoc RELOP '<' '>' '|' APPEND_OP TWOWAYIO
|
||||||
|
%left CONCAT_OP
|
||||||
|
%left YSTRING YNUMBER
|
||||||
|
%left '+' '-'
|
||||||
|
%left '*' '/' '%'
|
||||||
|
%right '!' UNARY
|
||||||
|
%right '^'
|
||||||
|
%left INCREMENT DECREMENT
|
||||||
|
%left '$'
|
||||||
|
%left '(' ')'
|
||||||
|
%%
|
||||||
|
|
||||||
|
start
|
||||||
|
: opt_nls program opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
program
|
||||||
|
: rule
|
||||||
|
| program rule
|
||||||
|
| error
|
||||||
|
| program error
|
||||||
|
| /* empty */
|
||||||
|
;
|
||||||
|
|
||||||
|
rule
|
||||||
|
: LEX_BEGIN {} action
|
||||||
|
| LEX_END {} action
|
||||||
|
| LEX_BEGIN statement_term
|
||||||
|
| LEX_END statement_term
|
||||||
|
| pattern action
|
||||||
|
| action
|
||||||
|
| pattern statement_term
|
||||||
|
| function_prologue function_body
|
||||||
|
;
|
||||||
|
|
||||||
|
func_name
|
||||||
|
: NAME
|
||||||
|
| FUNC_CALL
|
||||||
|
| lex_builtin
|
||||||
|
;
|
||||||
|
|
||||||
|
lex_builtin
|
||||||
|
: LEX_BUILTIN
|
||||||
|
| LEX_LENGTH
|
||||||
|
;
|
||||||
|
|
||||||
|
function_prologue
|
||||||
|
: LEX_FUNCTION {} func_name '(' opt_param_list r_paren opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
function_body
|
||||||
|
: l_brace statements r_brace opt_semi opt_nls
|
||||||
|
| l_brace r_brace opt_semi opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
pattern
|
||||||
|
: exp
|
||||||
|
| exp ',' exp
|
||||||
|
;
|
||||||
|
|
||||||
|
regexp
|
||||||
|
/*
|
||||||
|
* In this rule, want_regexp tells yylex that the next thing
|
||||||
|
* is a regexp so it should read up to the closing slash.
|
||||||
|
*/
|
||||||
|
: '/' {} REGEXP '/'
|
||||||
|
;
|
||||||
|
|
||||||
|
action
|
||||||
|
: l_brace statements r_brace opt_semi opt_nls
|
||||||
|
| l_brace r_brace opt_semi opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
statements
|
||||||
|
: statement
|
||||||
|
| statements statement
|
||||||
|
| error
|
||||||
|
| statements error
|
||||||
|
;
|
||||||
|
|
||||||
|
statement_term
|
||||||
|
: nls
|
||||||
|
| semi opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
statement
|
||||||
|
: semi opt_nls
|
||||||
|
| l_brace r_brace
|
||||||
|
| l_brace statements r_brace
|
||||||
|
| if_statement
|
||||||
|
| LEX_WHILE '(' exp r_paren opt_nls statement
|
||||||
|
| LEX_DO opt_nls statement LEX_WHILE '(' exp r_paren opt_nls
|
||||||
|
| LEX_FOR '(' NAME LEX_IN NAME r_paren opt_nls statement
|
||||||
|
| LEX_FOR '(' opt_exp semi opt_nls exp semi opt_nls opt_exp r_paren opt_nls statement
|
||||||
|
| LEX_FOR '(' opt_exp semi opt_nls semi opt_nls opt_exp r_paren opt_nls statement
|
||||||
|
| LEX_BREAK statement_term
|
||||||
|
| LEX_CONTINUE statement_term
|
||||||
|
| print '(' expression_list r_paren output_redir statement_term
|
||||||
|
| print opt_rexpression_list output_redir statement_term
|
||||||
|
| LEX_NEXT statement_term
|
||||||
|
| LEX_NEXTFILE statement_term
|
||||||
|
| LEX_EXIT opt_exp statement_term
|
||||||
|
| LEX_RETURN {} opt_exp statement_term
|
||||||
|
| LEX_DELETE NAME '[' expression_list ']' statement_term
|
||||||
|
| LEX_DELETE NAME statement_term
|
||||||
|
| exp statement_term
|
||||||
|
;
|
||||||
|
|
||||||
|
print
|
||||||
|
: LEX_PRINT
|
||||||
|
| LEX_PRINTF
|
||||||
|
;
|
||||||
|
|
||||||
|
if_statement
|
||||||
|
: LEX_IF '(' exp r_paren opt_nls statement
|
||||||
|
| LEX_IF '(' exp r_paren opt_nls statement
|
||||||
|
LEX_ELSE opt_nls statement
|
||||||
|
;
|
||||||
|
|
||||||
|
nls
|
||||||
|
: NEWLINE
|
||||||
|
| nls NEWLINE
|
||||||
|
;
|
||||||
|
|
||||||
|
opt_nls
|
||||||
|
: /* empty */
|
||||||
|
| nls
|
||||||
|
;
|
||||||
|
|
||||||
|
input_redir
|
||||||
|
: /* empty */
|
||||||
|
| '<' simp_exp
|
||||||
|
;
|
||||||
|
|
||||||
|
output_redir
|
||||||
|
: /* empty */
|
||||||
|
| '>' exp
|
||||||
|
| APPEND_OP exp
|
||||||
|
| '|' exp
|
||||||
|
| TWOWAYIO exp
|
||||||
|
;
|
||||||
|
|
||||||
|
opt_param_list
|
||||||
|
: /* empty */
|
||||||
|
| param_list
|
||||||
|
;
|
||||||
|
|
||||||
|
param_list
|
||||||
|
: NAME
|
||||||
|
| param_list comma NAME
|
||||||
|
| error
|
||||||
|
| param_list error
|
||||||
|
| param_list comma error
|
||||||
|
;
|
||||||
|
|
||||||
|
/* optional expression, as in for loop */
|
||||||
|
opt_exp
|
||||||
|
: /* empty */
|
||||||
|
| exp
|
||||||
|
;
|
||||||
|
|
||||||
|
opt_rexpression_list
|
||||||
|
: /* empty */
|
||||||
|
| rexpression_list
|
||||||
|
;
|
||||||
|
|
||||||
|
rexpression_list
|
||||||
|
: rexp
|
||||||
|
| rexpression_list comma rexp
|
||||||
|
| error
|
||||||
|
| rexpression_list error
|
||||||
|
| rexpression_list error rexp
|
||||||
|
| rexpression_list comma error
|
||||||
|
;
|
||||||
|
|
||||||
|
opt_expression_list
|
||||||
|
: /* empty */
|
||||||
|
| expression_list
|
||||||
|
;
|
||||||
|
|
||||||
|
expression_list
|
||||||
|
: exp
|
||||||
|
| expression_list comma exp
|
||||||
|
| error
|
||||||
|
| expression_list error
|
||||||
|
| expression_list error exp
|
||||||
|
| expression_list comma error
|
||||||
|
;
|
||||||
|
|
||||||
|
/* Expressions, not including the comma operator. */
|
||||||
|
exp : variable ASSIGNOP {} exp
|
||||||
|
| '(' expression_list r_paren LEX_IN NAME
|
||||||
|
| exp '|' LEX_GETLINE opt_variable
|
||||||
|
| exp TWOWAYIO LEX_GETLINE opt_variable
|
||||||
|
| LEX_GETLINE opt_variable input_redir
|
||||||
|
| exp LEX_AND exp
|
||||||
|
| exp LEX_OR exp
|
||||||
|
| exp MATCHOP exp
|
||||||
|
| regexp
|
||||||
|
| '!' regexp %prec UNARY
|
||||||
|
| exp LEX_IN NAME
|
||||||
|
| exp RELOP exp
|
||||||
|
| exp '<' exp
|
||||||
|
| exp '>' exp
|
||||||
|
| exp '?' exp ':' exp
|
||||||
|
| simp_exp
|
||||||
|
| exp simp_exp %prec CONCAT_OP
|
||||||
|
;
|
||||||
|
|
||||||
|
rexp
|
||||||
|
: variable ASSIGNOP {} rexp
|
||||||
|
| rexp LEX_AND rexp
|
||||||
|
| rexp LEX_OR rexp
|
||||||
|
| LEX_GETLINE opt_variable input_redir
|
||||||
|
| regexp
|
||||||
|
| '!' regexp %prec UNARY
|
||||||
|
| rexp MATCHOP rexp
|
||||||
|
| rexp LEX_IN NAME
|
||||||
|
| rexp RELOP rexp
|
||||||
|
| rexp '?' rexp ':' rexp
|
||||||
|
| simp_exp
|
||||||
|
| rexp simp_exp %prec CONCAT_OP
|
||||||
|
;
|
||||||
|
|
||||||
|
simp_exp
|
||||||
|
: non_post_simp_exp
|
||||||
|
/* Binary operators in order of decreasing precedence. */
|
||||||
|
| simp_exp '^' simp_exp
|
||||||
|
| simp_exp '*' simp_exp
|
||||||
|
| simp_exp '/' simp_exp
|
||||||
|
| simp_exp '%' simp_exp
|
||||||
|
| simp_exp '+' simp_exp
|
||||||
|
| simp_exp '-' simp_exp
|
||||||
|
| variable INCREMENT
|
||||||
|
| variable DECREMENT
|
||||||
|
;
|
||||||
|
|
||||||
|
non_post_simp_exp
|
||||||
|
: '!' simp_exp %prec UNARY
|
||||||
|
| '(' exp r_paren
|
||||||
|
| LEX_BUILTIN
|
||||||
|
'(' opt_expression_list r_paren
|
||||||
|
| LEX_LENGTH '(' opt_expression_list r_paren
|
||||||
|
| LEX_LENGTH
|
||||||
|
| FUNC_CALL '(' opt_expression_list r_paren
|
||||||
|
| variable
|
||||||
|
| INCREMENT variable
|
||||||
|
| DECREMENT variable
|
||||||
|
| YNUMBER
|
||||||
|
| YSTRING
|
||||||
|
| '-' simp_exp %prec UNARY
|
||||||
|
| '+' simp_exp %prec UNARY
|
||||||
|
;
|
||||||
|
|
||||||
|
opt_variable
|
||||||
|
: /* empty */
|
||||||
|
| variable
|
||||||
|
;
|
||||||
|
|
||||||
|
variable
|
||||||
|
: NAME
|
||||||
|
| NAME '[' expression_list ']'
|
||||||
|
| '$' non_post_simp_exp
|
||||||
|
;
|
||||||
|
|
||||||
|
l_brace
|
||||||
|
: '{' opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
r_brace
|
||||||
|
: '}' opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
r_paren
|
||||||
|
: ')'
|
||||||
|
;
|
||||||
|
|
||||||
|
opt_semi
|
||||||
|
: /* empty */
|
||||||
|
| semi
|
||||||
|
;
|
||||||
|
|
||||||
|
semi
|
||||||
|
: ';'
|
||||||
|
;
|
||||||
|
|
||||||
|
comma : ',' opt_nls
|
||||||
|
;
|
||||||
|
|
||||||
|
%%
|
||||||
|
]])
|
||||||
|
|
||||||
|
# Pass plenty of options, to exercise plenty of code, even if we
|
||||||
|
# don't actually check the output. But SEGV is watching us, and
|
||||||
|
# so might do dmalloc.
|
||||||
|
AT_CHECK([[bison --verbose --defines input.y]])
|
||||||
|
|
||||||
|
AT_CLEANUP
|
||||||
|
|||||||
Reference in New Issue
Block a user