Branch: Tag:

1999-03-05

1999-03-05 02:15:04 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

prog::`[] should now work..

Rev: src/language.yacc:1.113
Rev: src/object.c:1.59
Rev: src/operators.c:1.50
Rev: src/pike_memory.c:1.33
Rev: src/program.c:1.114

181:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.112 1999/03/04 06:04:59 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.113 1999/03/05 02:14:57 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
1722:       $$=reference_inherited_identifier($1->u.sval.u.string,    $3->u.sval.u.string); +     if (!$$)    {    my_yyerror("Undefined identifier %s::%s",
1760:    if(ISCONSTSTR($2->u.sval.u.string,"`->") ||    ISCONSTSTR($2->u.sval.u.string,"`[]") )    { -  $$=mkapplynode(mkprgnode(magic_index_program),mkintnode(0)); +  $$=mkapplynode(mkprgnode(magic_index_program), +  mknode(F_ARG_LIST,mkintnode(0),mkintnode(0)));    }    else if(ISCONSTSTR($2->u.sval.u.string,"`->=") ||    ISCONSTSTR($2->u.sval.u.string,"`[]=") )    { -  $$=mkapplynode(mkprgnode(magic_set_index_program),mkintnode(0)); +  $$=mkapplynode(mkprgnode(magic_set_index_program), +  mknode(F_ARG_LIST,mkintnode(0),mkintnode(0)));    }    else    {