pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:150:   %left F_LSH F_RSH   %left '+' '-'   %left '*' '%' '/'   %right F_NOT '~'   %nonassoc F_INC F_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.52 1998/03/03 22:30:20 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.53 1998/03/04 16:38:04 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif      #include "interpret.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "las.h"   #include "interpret.h"
pike.git/src/language.yacc:1217:    else if(IS_ZERO(sp-1) && sp[-1].subtype==1)    {    my_yyerror("'%s' undefined.", $1->str);    }else{    $$=mkconstantsvaluenode(sp-1);    }    pop_stack();    }else{    my_yyerror("'%s' undefined.", $1->str);    } +  } else { +  push_int(0); +  $$=mkconstantsvaluenode(sp-1); +  pop_stack();    }    }    free_string($1);    }    | F_PREDEF F_COLON_COLON F_IDENTIFIER    {    struct svalue tmp;    node *tmp2;    tmp.type=T_MAPPING;   #ifdef __CHECKER__