pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1:   /* -*- c -*-   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: language.yacc,v 1.303 2002/10/25 13:13:57 marcus Exp $ + || $Id: language.yacc,v 1.304 2002/10/29 14:02:27 nilsson Exp $   */      %pure_parser      %token TOK_ARROW      /*    * Basic value pushing    */   %token TOK_CONSTANT TOK_FLOAT TOK_STRING
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.303 2002/10/25 13:13:57 marcus Exp $"); + RCSID("$Id: language.yacc,v 1.304 2002/10/29 14:02:27 nilsson 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:3355:    $$ = e + $1;    }    }    free_node($2);    }    | inherit_specifier bad_identifier TOK_COLON_COLON { $$ = -1; }    ;      low_idents: TOK_IDENTIFIER    { -  int i; -  +     if(Pike_compiler->last_identifier) free_string(Pike_compiler->last_identifier);    copy_shared_string(Pike_compiler->last_identifier, $1->u.sval.u.string);       if(($$=lexical_islocal(Pike_compiler->last_identifier)))    {    /* done, nothing to do here */    }else if(!($$=find_module_identifier(Pike_compiler->last_identifier,1)) &&    !($$ = program_magic_identifier (Pike_compiler, 0, 0,    Pike_compiler->last_identifier, 0))) {    if(!Pike_compiler->num_parse_error)