Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Data Structures | |
struct | kwtable |
struct | stringpool_t |
Macros | |
#define | rb_reserved_word(str, len) reserved_word(str, len) |
#define | TOTAL_KEYWORDS 41 |
#define | MIN_WORD_LENGTH 2 |
#define | MAX_WORD_LENGTH 12 |
#define | MIN_HASH_VALUE 8 |
#define | MAX_HASH_VALUE 50 |
#define | stringpool ((const char *) &stringpool_contents) |
Functions | |
const struct kwtable * | rb_reserved_word (const char *, unsigned int) |
static const struct kwtable * | reserved_word (const char *, unsigned int) |
static unsigned int | hash (const char *str, unsigned int len) |
Variables | |
static const struct stringpool_t | stringpool_contents |
#define MAX_WORD_LENGTH 12 |
Definition at line 43 of file lex.c.
Referenced by reg_named_capture_assign_iter().
#define MIN_WORD_LENGTH 2 |
Definition at line 42 of file lex.c.
Referenced by rb_reserved_word().
#define rb_reserved_word | ( | str, | |
len | |||
) | reserved_word(str, len) |
#define stringpool ((const char *) &stringpool_contents) |
Definition at line 190 of file lex.c.
Referenced by rb_reserved_word().
|
static |
Definition at line 54 of file lex.c.
References asso_values, hval, and len.
Referenced by rb_reserved_word().
Definition at line 198 of file lex.c.
References EXPR_VALUE, hash(), key, keyword__ENCODING__, keyword__FILE__, keyword__LINE__, keyword_alias, keyword_and, keyword_begin, keyword_BEGIN, keyword_break, keyword_case, keyword_class, keyword_def, keyword_defined, keyword_do, keyword_else, keyword_elsif, keyword_end, keyword_END, keyword_ensure, keyword_false, keyword_for, keyword_if, keyword_in, keyword_module, keyword_next, keyword_nil, keyword_not, keyword_or, keyword_redo, keyword_rescue, keyword_retry, keyword_return, keyword_self, keyword_super, keyword_then, keyword_true, keyword_undef, keyword_unless, keyword_until, keyword_when, keyword_while, keyword_yield, MIN_WORD_LENGTH, modifier_if, modifier_rescue, modifier_unless, modifier_until, modifier_while, kwtable::name, offsetof, and stringpool.
Referenced by rb_reserved_word().
|
static |