cvsuser     03/12/09 19:07:25

  Modified:    imcc     imcc.y
  Log:
  Oops, can't reuse the constdef rule there as it would make local consts
  global also.
  
  Revision  Changes    Path
  1.115     +2 -1      parrot/imcc/imcc.y
  
  Index: imcc.y
  ===================================================================
  RCS file: /cvs/public/parrot/imcc/imcc.y,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -w -r1.114 -r1.115
  --- imcc.y    10 Dec 2003 03:02:13 -0000      1.114
  +++ imcc.y    10 Dec 2003 03:07:25 -0000      1.115
  @@ -642,10 +642,11 @@
   labeled_inst:
        assignment
      | if_statement
  -   | constdef
      | NAMESPACE IDENTIFIER            { push_namespace($2); }
      | ENDNAMESPACE IDENTIFIER         { pop_namespace($2); }
      | LOCAL { is_def=1; } type IDENTIFIER { mk_ident($4, $3); is_def=0; }
  +   | CONST { is_def=1; } type IDENTIFIER '=' const
  +                                    { mk_const_ident($4, $3, $6, 0);is_def=0; }
      | GLOBAL_CONST { is_def=1; } type IDENTIFIER '=' const
                                       { mk_const_ident($4, $3, $6, 1);is_def=0; }
      | PARAM { is_def=1; } type IDENTIFIER { $$ = MK_I(interp, cur_unit, "restore",
  
  
  

Reply via email to