pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:104:   %left TOK_LSH TOK_RSH   %left '+' '-'   %left '*' '%' '/'   %right TOK_NOT '~'   %nonassoc TOK_INC TOK_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.234 2001/03/18 21:49:52 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.235 2001/03/28 15:07:39 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:1192:   type4: type4 '|' type8 { push_type(T_OR); }    | type8    ;      type2: type2 '|' type3 { push_type(T_OR); }    | type3    ;      type3: TOK_INT_ID opt_int_range {}    | TOK_FLOAT_ID { push_type(T_FLOAT); } -  | TOK_PROGRAM_ID { push_type(T_PROGRAM); } +  | TOK_PROGRAM_ID { push_object_type(0, 0); push_type(T_PROGRAM); }    | TOK_VOID_ID { push_type(T_VOID); }    | TOK_MIXED_ID { push_type(T_MIXED); }    | TOK_STRING_ID { push_type(T_STRING); }    | TOK_OBJECT_ID opt_object_type {}    | TOK_MAPPING_ID opt_mapping_type {}    | TOK_ARRAY_ID opt_array_type { push_type(T_ARRAY); }    | TOK_MULTISET_ID opt_array_type { push_type(T_MULTISET); }    | TOK_FUNCTION_ID opt_function_type {}    ;