Branch: Tag:

2002-03-02

2002-03-02 18:47:39 by Martin Stjernholm <mast@lysator.liu.se>

Fixed lower unbounded case labels. (It's listless to fix the upper unbounded
case but not this, I think.) Some clean up of the switch handling in
docode.c.

Rev: src/docode.c:1.140
Rev: src/language.yacc:1.272
Rev: src/las.c:1.282
Rev: src/opcodes.h:1.26
Rev: src/treeopt.in:1.68

112:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.271 2002/01/16 02:54:13 nilsson Exp $"); + RCSID("$Id: language.yacc,v 1.272 2002/03/02 18:47:39 mast Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2792:    }    | TOK_CASE safe_comma_expr expected_dot_dot optional_comma_expr expected_colon    { -  $$=mknode(F_CASE,$4?$2:0,$4?$4:$2); +  $$=mknode(F_CASE_RANGE,$2,$4);    } -  +  | TOK_CASE expected_dot_dot safe_comma_expr expected_colon +  { +  $$=mknode(F_CASE_RANGE,0,$3); +  }    ;      expected_colon: ':'