OSDN Git Service

2005-06-28 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / java / keyword.gperf
1 %{
2 /* Keyword definition for the GNU compiler for the Java(TM) language.
3    Copyright (C) 1997, 1998, 2001, 2002, 2003
4    Free Software Foundation, Inc.
5    Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING.  If not, write to
21 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA.
23
24 Java and all Java-based marks are trademarks or registered trademarks
25 of Sun Microsystems, Inc. in the United States and other countries.
26 The Free Software Foundation is independent of Sun Microsystems, Inc.  */
27
28 %}
29 struct java_keyword { const char *const name; const int token; };
30 #ifdef __GNUC__
31 __inline
32 #endif
33 static unsigned int hash (const char *, unsigned int);
34 #ifdef __GNUC__
35 __inline
36 #endif
37 const struct java_keyword *java_keyword (const char *, unsigned int);
38 %%
39 abstract, ABSTRACT_TK
40 default, DEFAULT_TK
41 if, IF_TK
42 private, PRIVATE_TK
43 throw, THROW_TK
44 boolean, BOOLEAN_TK
45 do, DO_TK
46 implements, IMPLEMENTS_TK
47 protected, PROTECTED_TK
48 throws, THROWS_TK
49 break, BREAK_TK
50 double, DOUBLE_TK
51 import, IMPORT_TK
52 public, PUBLIC_TK
53 transient, TRANSIENT_TK
54 byte, BYTE_TK
55 else, ELSE_TK
56 instanceof, INSTANCEOF_TK
57 return, RETURN_TK
58 try, TRY_TK
59 case, CASE_TK
60 extends, EXTENDS_TK
61 int, INT_TK
62 short, SHORT_TK
63 void, VOID_TK
64 catch, CATCH_TK
65 final, FINAL_TK
66 interface, INTERFACE_TK
67 static, STATIC_TK
68 volatile, VOLATILE_TK
69 char, CHAR_TK
70 finally, FINALLY_TK
71 long, LONG_TK
72 super, SUPER_TK
73 while, WHILE_TK
74 class, CLASS_TK
75 float, FLOAT_TK
76 native, NATIVE_TK
77 switch, SWITCH_TK
78 const, CONST_TK
79 for, FOR_TK
80 new, NEW_TK
81 synchronized, SYNCHRONIZED_TK
82 continue, CONTINUE_TK
83 goto, GOTO_TK
84 package, PACKAGE_TK
85 this, THIS_TK
86 strictfp, STRICT_TK
87 # true, false and null aren't keyword. But we match them easily this way
88 true, TRUE_TK
89 false, FALSE_TK
90 null, NULL_TK
91 assert, ASSERT_TK