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.169 2000/03/09 15:02:26 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.170 2000/03/16 10:37:10 mast 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:392:   %type <n> local_function   %type <n> local_function2   %type <n> magic_identifier   %%      all: program { YYACCEPT; }    | program F_LEX_EOF { YYACCEPT; }   /* | error F_LEX_EOF { YYABORT; } */    ;    - program: program def optional_semi_colon + program: program def optional_semi_colons   /* | error { yyerrok; } */    | /* empty */    ;    - optional_semi_colon: /* empty */ -  | ';' + optional_semi_colons: /* empty */ +  | optional_semi_colons ';'    ;      string_constant: string    | string_constant '+' string    {    struct pike_string *a,*b;    copy_shared_string(a,$1->u.sval.u.string);    copy_shared_string(b,$3->u.sval.u.string);    free_node($1);    free_node($3);