(CHARACTER): Remove unused token. All uses removed.

This commit is contained in:
Paul Eggert
2002-11-08 05:19:30 +00:00
parent 959e5f515a
commit 87fbb0bffc

View File

@@ -97,7 +97,6 @@ braced_code_t current_braced_code = action_braced_code;
/* Define the tokens together with their human representation. */ /* Define the tokens together with their human representation. */
%token GRAM_EOF 0 "end of file" %token GRAM_EOF 0 "end of file"
%token STRING "string" %token STRING "string"
%token CHARACTER "character"
%token INT "integer" %token INT "integer"
%token PERCENT_TOKEN "%token" %token PERCENT_TOKEN "%token"
@@ -157,7 +156,7 @@ braced_code_t current_braced_code = action_braced_code;
%token BRACED_CODE "{...}" %token BRACED_CODE "{...}"
%type <string> CHARACTER TYPE STRING string_content %type <string> TYPE STRING string_content
BRACED_CODE PROLOGUE EPILOGUE epilogue.opt action BRACED_CODE PROLOGUE EPILOGUE epilogue.opt action
%type <integer> INT %type <integer> INT
%type <symbol> ID symbol string_as_id %type <symbol> ID symbol string_as_id
@@ -285,7 +284,7 @@ precedence_declarator:
; ;
type.opt: type.opt:
/* Nothing. */ { current_type = NULL;} /* Nothing. */ { current_type = NULL; }
| TYPE { current_type = $1; } | TYPE { current_type = $1; }
; ;
@@ -390,7 +389,6 @@ rhs:
symbol: symbol:
ID { $$ = $1; } ID { $$ = $1; }
| string_as_id { $$ = $1; } | string_as_id { $$ = $1; }
| CHARACTER { $$ = symbol_get ($1, @1); }
; ;
action: action:
@@ -443,10 +441,6 @@ yyprint (FILE *file,
fputc (' ', file); fputc (' ', file);
switch (type) switch (type)
{ {
case CHARACTER:
fprintf (file, " = '%s'", value->string);
break;
case ID: case ID:
fprintf (file, " = %s", value->symbol->tag); fprintf (file, " = %s", value->symbol->tag);
break; break;