/[bison]/bison/src/parse-gram.y
ViewVC logotype

Diff of /bison/src/parse-gram.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by akim, Tue Jun 11 20:16:05 2002 UTC revision 1.2 by akim, Tue Jun 11 21:45:49 2002 UTC
# Line 24  Line 24 
24  %defines  %defines
25  %locations  %locations
26  %pure-parser  %pure-parser
27  %error-verbose  // %error-verbose
28  %defines  %defines
29  %name-prefix="gram_"  %name-prefix="gram_"
30    
# Line 38  Line 38 
38  #include "reader.h"  #include "reader.h"
39  #include "conflicts.h"  #include "conflicts.h"
40    
41    #define YYERROR_VERBOSE 1
42    
43  /* Pass the control structure to YYPARSE and YYLEX. */  /* Pass the control structure to YYPARSE and YYLEX. */
44  #define YYPARSE_PARAM gram_control  #define YYPARSE_PARAM gram_control
45  #define YYLEX_PARAM gram_control  #define YYLEX_PARAM gram_control
# Line 120  int current_prec = 0; Line 122  int current_prec = 0;
122  %token PROLOGUE EPILOGUE  %token PROLOGUE EPILOGUE
123  %token BRACED_CODE  %token BRACED_CODE
124    
125  %type <string> CHARACTER TYPE BRACED_CODE PROLOGUE EPILOGUE epilogue.opt action STRING string_content  %type <string> CHARACTER TYPE  STRING string_content
126                   BRACED_CODE PROLOGUE EPILOGUE epilogue.opt action
127  %type <integer> INT  %type <integer> INT
128  %type <symbol> ID symbol string_as_id  %type <symbol> ID symbol string_as_id
129  %type <assoc> precedence_directive  %type <assoc> precedence_directive
# Line 140  directives: Line 143  directives:
143    
144  directive:  directive:
145    grammar_directives    grammar_directives
146  | PROLOGUE                                 { prologue_augment ($1, @1.first_line); }  | PROLOGUE
147       {
148         prologue_augment ($1, @1.first_line);
149       }
150  | "%debug"                                 { debug_flag = 1; }  | "%debug"                                 { debug_flag = 1; }
151  | "%define" string_content string_content  { muscle_insert ($2, $3); }  | "%define" string_content string_content  { muscle_insert ($2, $3); }
152  | "%defines"                               { defines_flag = 1; }  | "%defines"                               { defines_flag = 1; }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26