Blame tests/java.gperf

Packit b27855
%{
Packit b27855
/* Keyword definition for the GNU compiler for the Java(TM) language.
Packit b27855
   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Packit b27855
   Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
Packit b27855
Packit b27855
This file is part of GNU CC.
Packit b27855
Packit b27855
GNU CC is free software; you can redistribute it and/or modify
Packit b27855
it under the terms of the GNU General Public License as published by
Packit b27855
the Free Software Foundation; either version 2, or (at your option)
Packit b27855
any later version.
Packit b27855
Packit b27855
GNU CC is distributed in the hope that it will be useful,
Packit b27855
but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit b27855
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit b27855
GNU General Public License for more details.
Packit b27855
Packit b27855
You should have received a copy of the GNU General Public License
Packit b27855
along with GNU CC; see the file COPYING.  If not, write to
Packit b27855
the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
Packit b27855
MA 02110-1301, USA.
Packit b27855
Packit b27855
Java and all Java-based marks are trademarks or registered trademarks
Packit b27855
of Sun Microsystems, Inc. in the United States and other countries.
Packit b27855
The Free Software Foundation is independent of Sun Microsystems, Inc.  */
Packit b27855
Packit b27855
%}
Packit b27855
struct java_keyword { const char *name; int token; };
Packit b27855
%%
Packit b27855
abstract, ABSTRACT_TK
Packit b27855
default, DEFAULT_TK
Packit b27855
if, IF_TK
Packit b27855
private, PRIVATE_TK
Packit b27855
throw, THROW_TK
Packit b27855
boolean, BOOLEAN_TK
Packit b27855
do, DO_TK
Packit b27855
implements, IMPLEMENTS_TK
Packit b27855
protected, PROTECTED_TK
Packit b27855
throws, THROWS_TK
Packit b27855
break, BREAK_TK
Packit b27855
double, DOUBLE_TK
Packit b27855
import, IMPORT_TK
Packit b27855
public, PUBLIC_TK
Packit b27855
transient, TRANSIENT_TK
Packit b27855
byte, BYTE_TK
Packit b27855
else, ELSE_TK
Packit b27855
instanceof, INSTANCEOF_TK
Packit b27855
return, RETURN_TK
Packit b27855
try, TRY_TK
Packit b27855
case, CASE_TK
Packit b27855
extends, EXTENDS_TK
Packit b27855
int, INT_TK
Packit b27855
short, SHORT_TK
Packit b27855
void, VOID_TK
Packit b27855
catch, CATCH_TK
Packit b27855
final, FINAL_TK
Packit b27855
interface, INTERFACE_TK
Packit b27855
static, STATIC_TK
Packit b27855
volatile, VOLATILE_TK
Packit b27855
char, CHAR_TK
Packit b27855
finally, FINALLY_TK
Packit b27855
long, LONG_TK
Packit b27855
super, SUPER_TK
Packit b27855
while, WHILE_TK
Packit b27855
class, CLASS_TK
Packit b27855
float, FLOAT_TK
Packit b27855
native, NATIVE_TK
Packit b27855
switch, SWITCH_TK
Packit b27855
const, CONST_TK
Packit b27855
for, FOR_TK
Packit b27855
new, NEW_TK
Packit b27855
synchronized, SYNCHRONIZED_TK
Packit b27855
continue, CONTINUE_TK
Packit b27855
goto, GOTO_TK
Packit b27855
package, PACKAGE_TK
Packit b27855
this, THIS_TK
Packit b27855
# true, false and null aren't keyword. But we match them easily this way
Packit b27855
true, TRUE_TK
Packit b27855
false, FALSE_TK
Packit b27855
null, NULL_TK