[BACK]Return to bc.y CVS log [TXT][DIR] Up to [local] / src / usr.bin / bc

Diff for /src/usr.bin/bc/bc.y between version 1.12 and 1.13

version 1.12, 2003/10/18 20:35:36 version 1.13, 2003/10/19 19:21:48
Line 138 
Line 138 
 %type <node>    function_header  %type <node>    function_header
 %type <node>    input_item  %type <node>    input_item
 %type <node>    opt_argument_list  %type <node>    opt_argument_list
   %type <node>    opt_expression
   %type <node>    opt_relational_expression
 %type <node>    opt_statement  %type <node>    opt_statement
 %type <node>    relational_expression  %type <node>    relational_expression
 %type <node>    return_expression  %type <node>    return_expression
Line 278 
Line 280 
                                 }                                  }
                                 $$ = $3;                                  $$ = $3;
                         }                          }
                 | FOR LPAR alloc_macro expression SEMICOLON                  | FOR LPAR alloc_macro opt_expression SEMICOLON
                      relational_expression SEMICOLON                       opt_relational_expression SEMICOLON
                      expression RPAR opt_statement pop_nesting                       opt_expression RPAR opt_statement pop_nesting
                         {                          {
                                 ssize_t n;                                  ssize_t n;
   
Line 443 
Line 445 
                         }                          }
                 ;                  ;
   
   opt_relational_expression
                   : /* empty */
                           {
                                   $$ = cs(" 0 0=");
                           }
                   | relational_expression
                   ;
   
 relational_expression  relational_expression
                 : expression                  : expression
Line 489 
Line 498 
                         }                          }
                 ;                  ;
   
   
   opt_expression : /* empty */
                           {
                                   $$ = cs(" 0");
                           }
                   | expression
                   ;
   
 expression      : named_expression  expression      : named_expression
                         {                          {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13