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