pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:151:   %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.30 1997/03/11 03:36:40 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.31 1997/03/11 22:31:21 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:355:   program_ref: string_constant    {    reference_shared_string($1);    push_string($1);    push_string($1);    reference_shared_string(current_file);    push_string(current_file);    SAFE_APPLY_MASTER("handle_inherit", 2);       if(sp[-1].type != T_PROGRAM) -  my_yyerror("Couldn't cast program to string (%s)",$1->str); +  my_yyerror("Couldn't cast string \"%s\" to program",$1->str);    }    | idents    {    if(last_identifier)    {    push_string(last_identifier);    last_identifier->refs++;    }else{    push_text("");    }
pike.git/src/language.yacc:572:    {    if(varargs) yyerror("Can't define more arguments after ...");       if($2)    {    push_type(T_ARRAY);    varargs=1;    }    if(!$3) $3=make_shared_string("");    if(islocal($3) >= 0) -  my_yyerror("Variable '%s' appear twice in argument list.", +  my_yyerror("Variable '%s' appears twice in argument list.",    $3->str);       add_local_name($3, pop_type());    }    ;      arguments: /* empty */ optional_comma { $$=0; }    | arguments2 optional_comma { $$=$1; }    ;