/[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.7 by akim, Sat Jun 15 18:21:46 2002 UTC revision 1.8 by akim, Sat Jun 15 18:26:45 2002 UTC
# Line 102  int current_prec = 0; Line 102  int current_prec = 0;
102  %token PERCENT_NTERM "%nterm"  %token PERCENT_NTERM "%nterm"
103  %token PERCENT_TYPE  "%type"  %token PERCENT_TYPE  "%type"
104  %token PERCENT_UNION "%union"  %token PERCENT_UNION "%union"
105    %token PERCENT_LEFT     "%left"
106    %token PERCENT_RIGHT    "%right"
107    %token PERCENT_NONASSOC "%nonassoc"
108    
109  %token PERCENT_EXPECT "%expect"  %token PERCENT_EXPECT "%expect"
110  %token PERCENT_START "%start"  %token PERCENT_START "%start"
111  %token PERCENT_PREC     "%prec"  %token PERCENT_PREC     "%prec"
# Line 220  precedence_declaration: Line 224  precedence_declaration:
224      { current_assoc = non_assoc; current_type = NULL; }      { current_assoc = non_assoc; current_type = NULL; }
225  ;  ;
226    
 %token PERCENT_LEFT     "%left";  
 %token PERCENT_RIGHT    "%right";  
 %token PERCENT_NONASSOC "%nonassoc";  
227  precedence_declarator:  precedence_declarator:
228    "%left"     { $$ = left_assoc; }    "%left"     { $$ = left_assoc; }
229  | "%right"    { $$ = right_assoc; }  | "%right"    { $$ = right_assoc; }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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