pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:181:   %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.170 2000/03/16 10:37:10 mast Exp $"); + RCSID("$Id: language.yacc,v 1.171 2000/03/30 08:43:07 hubbe 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:2350:    int i;    struct efun *f;    if(last_identifier) free_string(last_identifier);    copy_shared_string(last_identifier, $1->u.sval.u.string);       if(($$=lexical_islocal(last_identifier)))    {    /* done, nothing to do here */    }else if((i=isidentifier(last_identifier))>=0){    $$=mkidentifiernode(i); -  }else if(!($$=find_module_identifier(last_identifier))){ +  }else if(!($$=find_module_identifier(last_identifier,1))){    if(!num_parse_error)    {    if(compiler_pass==2)    {    my_yyerror("'%s' undefined.", last_identifier->str);    $$=0;    }else{    $$=mknode(F_UNDEFINED,0,0);    }    }else{