pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:106:   %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.278 2002/05/09 14:37:45 mast Exp $"); + RCSID("$Id: language.yacc,v 1.279 2002/05/09 15:15:56 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:2630:    }    {    /* Trick to store more than one number on compiler stack - Hubbe */    $<number>$=Pike_compiler->compiler_frame->last_block_level;    Pike_compiler->compiler_frame->last_block_level=$<number>2;    }    '(' safe_comma_expr end_cond statement optional_else_part    {    int i=lex.current_line;    lex.current_line=$1; -  $$=mknode('?',$5,mknode(':',$7,$8)); -  $$=mkcastnode(void_type_string, $$); +  $$ = mknode('?', $5, +  mknode(':', +  mkcastnode(void_type_string, $7), +  mkcastnode(void_type_string, $8))); +  $$ = mkcastnode(void_type_string, $$);    lex.current_line = i;    pop_local_variables($<number>2);    Pike_compiler->compiler_frame->last_block_level=$<number>3;    }    ;      end_cond: ')'    | '}' { yyerror("Missing ')'."); }    | TOK_LEX_EOF    {