pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:42:   %token TOK_CASE   %token TOK_CLASS   %token TOK_COLON_COLON   %token TOK_CONTINUE   %token TOK_DEFAULT   %token TOK_DIV_EQ   %token TOK_DO   %token TOK_DOT_DOT   %token TOK_DOT_DOT_DOT   %token TOK_ELSE + %token TOK_ENUM   %token TOK_EXTERN   %token TOK_FLOAT_ID   %token TOK_FOR   %token TOK_FUNCTION_ID   %token TOK_GAUGE   %token TOK_IDENTIFIER   %token TOK_IF   %token TOK_IMPORT   %token TOK_INHERIT   %token TOK_INLINE
pike.git/src/language.yacc:103:   %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.233 2001/03/17 06:25:58 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.234 2001/03/18 21:49:52 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:998:    | TOK_MIXED_ID { $$ = "mixed"; }    | TOK_ARRAY_ID { $$ = "array"; }    | TOK_MAPPING_ID { $$ = "mapping"; }    | TOK_MULTISET_ID { $$ = "multiset"; }    | TOK_OBJECT_ID { $$ = "object"; }    | TOK_FUNCTION_ID { $$ = "function"; }    | TOK_PROGRAM_ID { $$ = "program"; }    | TOK_STRING_ID { $$ = "string"; }    | TOK_FLOAT_ID { $$ = "float"; }    | TOK_INT_ID { $$ = "int"; } +  | TOK_ENUM { $$ = "enum"; }    ;      magic_identifiers3:    TOK_IF { $$ = "if"; }    | TOK_DO { $$ = "do"; }    | TOK_FOR { $$ = "for"; }    | TOK_WHILE { $$ = "while"; }    | TOK_ELSE { $$ = "else"; }    | TOK_FOREACH { $$ = "foreach"; }    | TOK_CATCH { $$ = "catch"; }
pike.git/src/language.yacc:3379:    | TOK_MULTISET_ID    { yyerror("multiset is a reserved word."); }    | TOK_OBJECT_ID    { yyerror("object is a reserved word."); }    | TOK_PROGRAM_ID    { yyerror("program is a reserved word."); }    | TOK_STRING_ID    { yyerror("string is a reserved word."); }    | TOK_VOID_ID    { yyerror("void is a reserved word."); } +  | TOK_ENUM +  { yyerror("enum is a reserved word."); }    ;      bad_expr_ident:    TOK_INLINE    { yyerror("inline is a reserved word."); }    | TOK_LOCAL_ID    { yyerror("local is a reserved word."); }    | TOK_NO_MASK    { yyerror("nomask is a reserved word."); }    | TOK_PREDEF