pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:169:   %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.92 1998/04/27 21:04:53 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.93 1998/04/28 15:46:27 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:1047:      statement: unused2 ';'    | import { $$=0; }    | cond    | while    | do    | for    | switch    | case    | default -  | return ';' +  | return expected_semicolon    | block    | foreach -  | break ';' -  | continue ';' +  | break expected_semicolon +  | continue expected_semicolon    | error ';' { reset_type_stack(); $$=0; yyerrok; }    | error F_LEX_EOF    {    reset_type_stack();    yyerror("Missing ';'.");    yyerror("Unexpected end of file.");    $$=0;    }    | error '}'    {
pike.git/src/language.yacc:1139:    type,    ID_PRIVATE | ID_INLINE);       $$=mkidentifiernode(f);    free_string(name);    free_string(type);    pop_compiler_frame();    }    ;    - failsafe_program: '{' program '}' + failsafe_program: '{' program end_block    | error { yyerrok; }    ;      class: modifiers F_CLASS optional_identifier    {    if(!$3)    {    struct pike_string *s;    char buffer[42];    sprintf(buffer,"__class_%ld_%ld",(long)new_program->id,