pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2001-03-18
2001-03-18 21:49:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>
76e7f9742941ccbe6b5c8a60608a0aa1deacb5cf (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Made 'enum' a reserved word.
Rev: src/language.yacc:1.234
Rev: src/lexer.h:1.30
49:
%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
110:
/* 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
1005:
| TOK_STRING_ID { $$ = "string"; } | TOK_FLOAT_ID { $$ = "float"; } | TOK_INT_ID { $$ = "int"; }
+
| TOK_ENUM { $$ = "enum"; }
; magic_identifiers3:
3386:
{ 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: