Debian Codegraph @

tests/java.gperf

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