mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
(CHARACTER): Remove unused token. All uses removed.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user