2009-05-16 04:30:16 +04:00
|
|
|
/* C code produced by gperf version 3.0.4 */
|
2015-07-22 03:37:09 +03:00
|
|
|
/* Command-line: gperf -C -P -p -j1 -i 1 -g -o -t -N rb_reserved_word -k'1,3,$' defs/keywords */
|
2006-06-26 18:15:49 +04:00
|
|
|
|
|
|
|
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
|
|
|
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
|
|
|
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
|
|
|
|
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
|
|
|
|
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
|
|
|
|
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
|
|
|
|
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
|
|
|
|
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
|
|
|
|
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
|
|
|
|
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
|
|
|
|
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
|
|
|
|
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
|
|
|
|
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
|
|
|
|
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
|
|
|
|
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
|
|
|
|
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
|
|
|
|
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
|
|
|
|
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
|
|
|
|
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
|
|
|
|
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
|
|
|
|
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
|
|
|
|
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
|
|
|
|
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
|
|
|
|
/* The character set is not based on ISO-646. */
|
|
|
|
error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
|
|
|
#endif
|
|
|
|
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 1 "defs/keywords"
|
2007-06-15 15:50:45 +04:00
|
|
|
|
2015-11-03 02:08:26 +03:00
|
|
|
struct kwtable {int name, id[2], state;};
|
2007-12-25 07:17:06 +03:00
|
|
|
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
2004-09-19 22:48:29 +04:00
|
|
|
#ifndef RIPPER
|
2009-05-16 04:30:16 +04:00
|
|
|
static const struct kwtable *reserved_word(const char *, unsigned int);
|
|
|
|
#define rb_reserved_word(str, len) reserved_word(str, len)
|
|
|
|
#line 9 "defs/keywords"
|
2007-06-15 15:50:45 +04:00
|
|
|
struct kwtable;
|
1998-01-16 15:19:09 +03:00
|
|
|
|
2007-12-21 06:22:22 +03:00
|
|
|
#define TOTAL_KEYWORDS 41
|
1998-01-16 15:19:09 +03:00
|
|
|
#define MIN_WORD_LENGTH 2
|
2007-12-21 06:22:22 +03:00
|
|
|
#define MAX_WORD_LENGTH 12
|
|
|
|
#define MIN_HASH_VALUE 8
|
2006-06-26 18:15:49 +04:00
|
|
|
#define MAX_HASH_VALUE 50
|
2007-12-21 06:22:22 +03:00
|
|
|
/* maximum key range = 43, duplicates = 0 */
|
1998-01-16 15:19:09 +03:00
|
|
|
|
2015-07-22 03:37:09 +03:00
|
|
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__cplusplus) || defined(__GNUC_STDC_INLINE__)
|
2001-07-02 12:46:28 +04:00
|
|
|
inline
|
2015-07-22 03:37:09 +03:00
|
|
|
#elif defined(__GNUC__)
|
|
|
|
__inline
|
1998-01-16 15:19:09 +03:00
|
|
|
#endif
|
|
|
|
static unsigned int
|
|
|
|
hash (str, len)
|
1999-08-13 09:45:20 +04:00
|
|
|
register const char *str;
|
|
|
|
register unsigned int len;
|
1998-01-16 15:19:09 +03:00
|
|
|
{
|
2005-07-13 17:44:21 +04:00
|
|
|
static const unsigned char asso_values[] =
|
1998-01-16 15:19:09 +03:00
|
|
|
{
|
2006-06-26 18:15:49 +04:00
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
2007-12-21 06:22:22 +03:00
|
|
|
51, 51, 51, 26, 51, 51, 14, 51, 16, 8,
|
|
|
|
11, 13, 51, 51, 51, 51, 10, 51, 13, 51,
|
2006-06-26 18:15:49 +04:00
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 11, 51, 13, 1, 26,
|
|
|
|
4, 1, 8, 28, 51, 23, 51, 1, 1, 27,
|
|
|
|
5, 19, 21, 51, 8, 3, 3, 11, 51, 21,
|
|
|
|
24, 16, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
|
|
|
|
51, 51, 51, 51, 51, 51
|
1998-01-16 15:19:09 +03:00
|
|
|
};
|
|
|
|
register int hval = len;
|
|
|
|
|
|
|
|
switch (hval)
|
|
|
|
{
|
|
|
|
default:
|
1999-08-13 09:45:20 +04:00
|
|
|
hval += asso_values[(unsigned char)str[2]];
|
2006-06-26 18:15:49 +04:00
|
|
|
/*FALLTHROUGH*/
|
1998-01-16 15:19:09 +03:00
|
|
|
case 2:
|
|
|
|
case 1:
|
1999-08-13 09:45:20 +04:00
|
|
|
hval += asso_values[(unsigned char)str[0]];
|
1998-01-16 15:19:09 +03:00
|
|
|
break;
|
|
|
|
}
|
1999-08-13 09:45:20 +04:00
|
|
|
return hval + asso_values[(unsigned char)str[len - 1]];
|
1998-01-16 15:19:09 +03:00
|
|
|
}
|
|
|
|
|
2015-07-22 03:37:09 +03:00
|
|
|
struct stringpool_t
|
|
|
|
{
|
|
|
|
char stringpool_str8[sizeof("break")];
|
|
|
|
char stringpool_str9[sizeof("else")];
|
|
|
|
char stringpool_str10[sizeof("nil")];
|
|
|
|
char stringpool_str11[sizeof("ensure")];
|
|
|
|
char stringpool_str12[sizeof("end")];
|
|
|
|
char stringpool_str13[sizeof("then")];
|
|
|
|
char stringpool_str14[sizeof("not")];
|
|
|
|
char stringpool_str15[sizeof("false")];
|
|
|
|
char stringpool_str16[sizeof("self")];
|
|
|
|
char stringpool_str17[sizeof("elsif")];
|
|
|
|
char stringpool_str18[sizeof("rescue")];
|
|
|
|
char stringpool_str19[sizeof("true")];
|
|
|
|
char stringpool_str20[sizeof("until")];
|
|
|
|
char stringpool_str21[sizeof("unless")];
|
|
|
|
char stringpool_str22[sizeof("return")];
|
|
|
|
char stringpool_str23[sizeof("def")];
|
|
|
|
char stringpool_str24[sizeof("and")];
|
|
|
|
char stringpool_str25[sizeof("do")];
|
|
|
|
char stringpool_str26[sizeof("yield")];
|
|
|
|
char stringpool_str27[sizeof("for")];
|
|
|
|
char stringpool_str28[sizeof("undef")];
|
|
|
|
char stringpool_str29[sizeof("or")];
|
|
|
|
char stringpool_str30[sizeof("in")];
|
|
|
|
char stringpool_str31[sizeof("when")];
|
|
|
|
char stringpool_str32[sizeof("retry")];
|
|
|
|
char stringpool_str33[sizeof("if")];
|
|
|
|
char stringpool_str34[sizeof("case")];
|
|
|
|
char stringpool_str35[sizeof("redo")];
|
|
|
|
char stringpool_str36[sizeof("next")];
|
|
|
|
char stringpool_str37[sizeof("super")];
|
|
|
|
char stringpool_str38[sizeof("module")];
|
|
|
|
char stringpool_str39[sizeof("begin")];
|
|
|
|
char stringpool_str40[sizeof("__LINE__")];
|
|
|
|
char stringpool_str41[sizeof("__FILE__")];
|
|
|
|
char stringpool_str42[sizeof("__ENCODING__")];
|
|
|
|
char stringpool_str43[sizeof("END")];
|
|
|
|
char stringpool_str44[sizeof("alias")];
|
|
|
|
char stringpool_str45[sizeof("BEGIN")];
|
|
|
|
char stringpool_str46[sizeof("defined?")];
|
|
|
|
char stringpool_str47[sizeof("class")];
|
|
|
|
char stringpool_str50[sizeof("while")];
|
|
|
|
};
|
|
|
|
static const struct stringpool_t stringpool_contents =
|
|
|
|
{
|
|
|
|
"break",
|
|
|
|
"else",
|
|
|
|
"nil",
|
|
|
|
"ensure",
|
|
|
|
"end",
|
|
|
|
"then",
|
|
|
|
"not",
|
|
|
|
"false",
|
|
|
|
"self",
|
|
|
|
"elsif",
|
|
|
|
"rescue",
|
|
|
|
"true",
|
|
|
|
"until",
|
|
|
|
"unless",
|
|
|
|
"return",
|
|
|
|
"def",
|
|
|
|
"and",
|
|
|
|
"do",
|
|
|
|
"yield",
|
|
|
|
"for",
|
|
|
|
"undef",
|
|
|
|
"or",
|
|
|
|
"in",
|
|
|
|
"when",
|
|
|
|
"retry",
|
|
|
|
"if",
|
|
|
|
"case",
|
|
|
|
"redo",
|
|
|
|
"next",
|
|
|
|
"super",
|
|
|
|
"module",
|
|
|
|
"begin",
|
|
|
|
"__LINE__",
|
|
|
|
"__FILE__",
|
|
|
|
"__ENCODING__",
|
|
|
|
"END",
|
|
|
|
"alias",
|
|
|
|
"BEGIN",
|
|
|
|
"defined?",
|
|
|
|
"class",
|
|
|
|
"while"
|
|
|
|
};
|
|
|
|
#define stringpool ((const char *) &stringpool_contents)
|
1998-01-16 15:19:09 +03:00
|
|
|
#ifdef __GNUC__
|
1999-08-13 09:45:20 +04:00
|
|
|
__inline
|
2009-05-16 04:30:16 +04:00
|
|
|
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
|
2008-06-25 16:55:47 +04:00
|
|
|
__attribute__ ((__gnu_inline__))
|
|
|
|
#endif
|
1998-01-16 15:19:09 +03:00
|
|
|
#endif
|
2005-07-13 17:44:21 +04:00
|
|
|
const struct kwtable *
|
1998-01-16 15:19:09 +03:00
|
|
|
rb_reserved_word (str, len)
|
1999-08-13 09:45:20 +04:00
|
|
|
register const char *str;
|
1998-01-16 15:19:09 +03:00
|
|
|
register unsigned int len;
|
|
|
|
{
|
2005-07-13 17:44:21 +04:00
|
|
|
static const struct kwtable wordlist[] =
|
1998-01-16 15:19:09 +03:00
|
|
|
{
|
2015-07-22 03:37:09 +03:00
|
|
|
{-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 19 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str8), {keyword_break, keyword_break}, EXPR_MID},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 25 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str9), {keyword_else, keyword_else}, EXPR_BEG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 35 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str10), {keyword_nil, keyword_nil}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 28 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str11), {keyword_ensure, keyword_ensure}, EXPR_BEG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 27 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str12), {keyword_end, keyword_end}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 44 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str13), {keyword_then, keyword_then}, EXPR_BEG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 36 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str14), {keyword_not, keyword_not}, EXPR_ARG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 29 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str15), {keyword_false, keyword_false}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 42 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str16), {keyword_self, keyword_self}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 26 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str17), {keyword_elsif, keyword_elsif}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 39 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str18), {keyword_rescue, modifier_rescue}, EXPR_MID},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 45 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str19), {keyword_true, keyword_true}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 48 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str20), {keyword_until, modifier_until}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 47 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str21), {keyword_unless, modifier_unless}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 41 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str22), {keyword_return, keyword_return}, EXPR_MID},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 22 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str23), {keyword_def, keyword_def}, EXPR_FNAME},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 17 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str24), {keyword_and, keyword_and}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 24 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str25), {keyword_do, keyword_do}, EXPR_BEG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 51 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str26), {keyword_yield, keyword_yield}, EXPR_ARG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 30 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str27), {keyword_for, keyword_for}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 46 "defs/keywords"
|
2016-03-16 17:10:27 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str28), {keyword_undef, keyword_undef}, EXPR_FNAME|EXPR_FITEM},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 37 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str29), {keyword_or, keyword_or}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 32 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str30), {keyword_in, keyword_in}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 49 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str31), {keyword_when, keyword_when}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 40 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str32), {keyword_retry, keyword_retry}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 31 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str33), {keyword_if, modifier_if}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 20 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str34), {keyword_case, keyword_case}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 38 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str35), {keyword_redo, keyword_redo}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 34 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str36), {keyword_next, keyword_next}, EXPR_MID},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 43 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str37), {keyword_super, keyword_super}, EXPR_ARG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 33 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str38), {keyword_module, keyword_module}, EXPR_VALUE},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 18 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str39), {keyword_begin, keyword_begin}, EXPR_BEG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 12 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str40), {keyword__LINE__, keyword__LINE__}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 13 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str41), {keyword__FILE__, keyword__FILE__}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 11 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str42), {keyword__ENCODING__, keyword__ENCODING__}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 15 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str43), {keyword_END, keyword_END}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 16 "defs/keywords"
|
2016-03-16 17:10:27 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str44), {keyword_alias, keyword_alias}, EXPR_FNAME|EXPR_FITEM},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 14 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str45), {keyword_BEGIN, keyword_BEGIN}, EXPR_END},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 23 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str46), {keyword_defined, keyword_defined}, EXPR_ARG},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 21 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str47), {keyword_class, keyword_class}, EXPR_CLASS},
|
2015-07-22 03:37:09 +03:00
|
|
|
{-1}, {-1},
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 50 "defs/keywords"
|
2016-02-06 15:02:09 +03:00
|
|
|
{(int)offsetof(struct stringpool_t, stringpool_str50), {keyword_while, modifier_while}, EXPR_VALUE}
|
1998-01-16 15:19:09 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
|
|
|
|
{
|
|
|
|
register int key = hash (str, len);
|
|
|
|
|
|
|
|
if (key <= MAX_HASH_VALUE && key >= 0)
|
|
|
|
{
|
2015-07-22 03:37:09 +03:00
|
|
|
register int o = wordlist[key].name;
|
|
|
|
if (o >= 0)
|
|
|
|
{
|
|
|
|
register const char *s = o + stringpool;
|
1998-01-16 15:19:09 +03:00
|
|
|
|
2015-07-22 03:37:09 +03:00
|
|
|
if (*str == *s && !strcmp (str + 1, s + 1))
|
|
|
|
return &wordlist[key];
|
|
|
|
}
|
1998-01-16 15:19:09 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2009-05-16 04:30:16 +04:00
|
|
|
#line 52 "defs/keywords"
|
2006-06-26 18:15:49 +04:00
|
|
|
|
2004-09-19 22:48:29 +04:00
|
|
|
#endif
|