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.175 2000/03/30 19:43:55 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.176 2000/03/30 20:04:14 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:1240:    if ($4)    {    if ($3) {    push_type(T_MANY);    type_stack_reverse();    } else {    /* function_type_list ends with a comma, or is empty.    * FIXME: Should this be a syntax error or not?    */    if (compiler_pass == 1) { -  yywarning("Implicit mixed type."); +  yyerror("Missing type before ... .");    }    type_stack_reverse();    push_type(T_MANY);    push_type(T_MIXED);    }    }else{    type_stack_reverse();    push_type(T_MANY);    push_type(T_VOID);    }