pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:164:   %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.72 1998/04/10 22:24:20 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.73 1998/04/10 23:23:08 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:1291:    | '-' expr2 { $$=mkopernode("`-",$2,0); }    ;      expr3: expr4    | expr4 F_INC { $$=mknode(F_POST_INC,$1,0); }    | expr4 F_DEC { $$=mknode(F_POST_DEC,$1,0); }    ;      expr4: string    | F_NUMBER { $$=mkintnode($1); } -  | F_FLOAT { $$=mkfloatnode($1); } +  | F_FLOAT { $$=mkfloatnode((FLOAT_TYPE)$1); }    | catch    | gauge    | typeof    | sscanf    | lambda    | class    | idents    | expr4 '(' expr_list ')' { $$=mkapplynode($1,$3); }    | expr4 '[' expr0 ']' { $$=mknode(F_INDEX,$1,$3); }    | expr4 '[' comma_expr_or_zero F_DOT_DOT comma_expr_or_maxint ']'