OSDN Git Service

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