-
Notifications
You must be signed in to change notification settings - Fork 33
/
keywords.gperf
98 lines (91 loc) · 3.16 KB
/
keywords.gperf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
%{ /* -*- C -*- */
/******************************************************************************
Copyright (c) 1992, 1995, 1996 Xerox Corporation. All rights reserved.
Portions of this code were written by Stephen White, aka ghond.
Use and copying of this software and preparation of derivative works based
upon this software are permitted. Any distribution of this software or
derivative works must comply with all applicable United States export
control laws. This software is made available AS IS, and Xerox Corporation
makes no warranty about the software, its performance or its conformity to
any specification. Any person obtaining a copy of this software is requested
to send their name and post office or electronic mail address to:
Pavel Curtis
Xerox PARC
3333 Coyote Hill Rd.
Palo Alto, CA 94304
Pavel@Xerox.Com
*****************************************************************************/
#include "my-string.h"
#include "config.h"
#include "keywords.h"
#include "tokens.h"
#include "utils.h"
%}
struct keyword {}; /* bogus decl not copied into the output */
%%
if, DBV_Prehistory, tIF
else, DBV_Prehistory, tELSE
elseif, DBV_Prehistory, tELSEIF
endif, DBV_Prehistory, tENDIF
for, DBV_Prehistory, tFOR
in, DBV_Prehistory, tIN
endfor, DBV_Prehistory, tENDFOR
fork, DBV_Prehistory, tFORK
endfork, DBV_Prehistory, tENDFORK
return, DBV_Prehistory, tRETURN
while, DBV_Prehistory, tWHILE
endwhile, DBV_Prehistory, tENDWHILE
try, DBV_Exceptions, tTRY
except, DBV_Exceptions, tEXCEPT
finally, DBV_Exceptions, tFINALLY
endtry, DBV_Exceptions, tENDTRY
ANY, DBV_Exceptions, tANY
break, DBV_BreakCont, tBREAK
continue, DBV_BreakCont, tCONTINUE
E_NONE, DBV_Prehistory, tERROR, E_NONE
E_TYPE, DBV_Prehistory, tERROR, E_TYPE
E_DIV, DBV_Prehistory, tERROR, E_DIV
E_PERM, DBV_Prehistory, tERROR, E_PERM
E_PROPNF, DBV_Prehistory, tERROR, E_PROPNF
E_VERBNF, DBV_Prehistory, tERROR, E_VERBNF
E_VARNF, DBV_Prehistory, tERROR, E_VARNF
E_INVIND, DBV_Prehistory, tERROR, E_INVIND
E_RECMOVE, DBV_Prehistory, tERROR, E_RECMOVE
E_MAXREC, DBV_Prehistory, tERROR, E_MAXREC
E_RANGE, DBV_Prehistory, tERROR, E_RANGE
E_ARGS, DBV_Prehistory, tERROR, E_ARGS
E_NACC, DBV_Prehistory, tERROR, E_NACC
E_INVARG, DBV_Prehistory, tERROR, E_INVARG
E_QUOTA, DBV_Prehistory, tERROR, E_QUOTA
E_FLOAT, DBV_Float, tERROR, E_FLOAT
%%
const struct keyword *
find_keyword(const char *word)
{
return in_word_set(word, strlen(word));
}
char rcsid_keywords[] = "$Id$";
/*
* $Log$
* Revision 1.3 1998/12/14 13:17:55 nop
* Merge UNSAFE_OPTS (ref fixups); fix Log tag placement to fit CVS whims
*
* Revision 1.2 1997/03/03 04:18:45 nop
* GNU Indent normalization
*
* Revision 1.1.1.1 1997/03/03 03:45:00 nop
* LambdaMOO 1.8.0p5
*
* Revision 2.2 1996/02/08 06:33:21 pavel
* Added `break', `continue', and E_FLOAT. Updated copyright notice for 1996.
* Release 1.8.0beta1.
*
* Revision 2.1 1995/12/11 08:15:42 pavel
* Added #include "tokens.h" removed from keywords.h. Release 1.8.0alpha2.
*
* Revision 2.0 1995/11/30 05:02:56 pavel
* New baseline version, corresponding to release 1.8.0alpha1.
*
* Revision 1.1 1995/11/30 05:01:47 pavel
* Initial revision
*/