pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:104:   %token F_COMMA   %token F_CONTINUE   %token F_DEFAULT   %token F_DIV_EQ   %token F_DO   %token F_DOT_DOT   %token F_DOT_DOT_DOT   %token F_REDEF   %token F_EFUN_CALL   %token F_ELSE + %token F_EXTERN   %token F_FLOAT_ID   %token F_FOR   %token F_FUNCTION_ID   %token F_GAUGE   %token F_IDENTIFIER   %token F_IF   %token F_IMPORT   %token F_INHERIT   %token F_INLINE   %token F_LOCAL_ID
pike.git/src/language.yacc:178:   %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.155 1999/12/27 22:45:46 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.156 1999/12/30 14:45:37 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:869:    | arguments2 ':' new_arg_name    {    yyerror("Unexpected ':' in argument list.");    $$ = $1 + 1;    }    ;      modifier: F_NO_MASK { $$ = ID_NOMASK; }    | F_FINAL_ID { $$ = ID_NOMASK; }    | F_STATIC { $$ = ID_STATIC; } +  | F_EXTERN { $$ = ID_EXTERN; }    | F_OPTIONAL { $$ = ID_OPTIONAL; }    | F_PRIVATE { $$ = ID_PRIVATE | ID_STATIC; }    | F_LOCAL_ID { $$ = ID_INLINE; }    | F_PUBLIC { $$ = ID_PUBLIC; }    | F_PROTECTED { $$ = ID_PROTECTED; }    | F_INLINE { $$ = ID_INLINE; }    ;      magic_identifiers1:    F_NO_MASK { $$ = "nomask"; }    | F_FINAL_ID { $$ = "final"; }    | F_STATIC { $$ = "static"; } -  +  | F_EXTERN { $$ = "extern"; }    | F_PRIVATE { $$ = "private"; }    | F_LOCAL_ID { $$ = "local"; }    | F_PUBLIC { $$ = "public"; }    | F_PROTECTED { $$ = "protected"; }    | F_INLINE { $$ = "inline"; }    | F_OPTIONAL { $$ = "optional"; }    ;      magic_identifiers2:    F_VOID_ID { $$ = "void"; }
pike.git/src/language.yacc:2488:    | F_PRIVATE    { yyerror("private is a reserved word."); }    | F_PROTECTED    { yyerror("protected is a reserved word."); }    | F_PUBLIC    { yyerror("public is a reserved word."); }    | F_OPTIONAL    { yyerror("optional is a reserved word."); }    | F_STATIC    { yyerror("static is a reserved word."); } +  | F_EXTERN +  { yyerror("extern is a reserved word."); }    | F_FINAL_ID    { yyerror("final is a reserved word.");}    | F_DO    { yyerror("do is a reserved word."); }    | F_ELSE    { yyerror("else without if."); }    | F_RETURN    { yyerror("return is a reserved word."); }    | F_CONSTANT    { yyerror("constant is a reserved word."); }