[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Trunk: symbols_output
From: |
Akim Demaille |
Subject: |
FYI: Trunk: symbols_output |
Date: |
05 Nov 2001 15:17:46 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
De-correlate processing from output.
Index: ChangeLog
from Akim Demaille <address@hidden>
* src/reader.c (symbols_output): New, extracted from...
(packsymbols): here.
(reader): Adjust.
Index: src/reader.c
===================================================================
RCS file: /cvsroot/bison/bison/src/reader.c,v
retrieving revision 1.94
diff -u -u -r1.94 reader.c
--- src/reader.c 2001/11/05 09:09:19 1.94
+++ src/reader.c 2001/11/05 14:13:59
@@ -1832,6 +1832,22 @@
error_token_number = errtoken->value;
+ if (startval->class == unknown_sym)
+ fatal (_("the start symbol %s is undefined"), startval->tag);
+ else if (startval->class == token_sym)
+ fatal (_("the start symbol %s is a token"), startval->tag);
+
+ start_symbol = startval->value;
+}
+
+
+/*-----------------------------------.
+| Output definition of token names. |
+`-----------------------------------*/
+
+static void
+symbols_output (void)
+{
{
struct obstack tokendefs;
obstack_init (&tokendefs);
@@ -1846,13 +1862,6 @@
output_token_defines (&table_obstack);
#endif
- if (startval->class == unknown_sym)
- fatal (_("the start symbol %s is undefined"), startval->tag);
- else if (startval->class == token_sym)
- fatal (_("the start symbol %s is a token"), startval->tag);
-
- start_symbol = startval->value;
-
if (defines_flag)
{
output_token_defines (&defines_obstack);
@@ -2020,6 +2029,7 @@
/* Assign the symbols their symbol numbers. Write #defines for the
token symbols into FDEFINES if requested. */
packsymbols ();
+ symbols_output ();
/* Convert the grammar into the format described in gram.h. */
packgram ();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Trunk: symbols_output,
Akim Demaille <=