Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Functions
lex.c File Reference

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 kwtablerb_reserved_word (const char *, unsigned int)
 

Macro Definition Documentation

◆ MAX_HASH_VALUE

#define MAX_HASH_VALUE   50

Definition at line 45 of file lex.c.

◆ MAX_WORD_LENGTH

#define MAX_WORD_LENGTH   12

Definition at line 43 of file lex.c.

◆ MIN_HASH_VALUE

#define MIN_HASH_VALUE   8

Definition at line 44 of file lex.c.

◆ MIN_WORD_LENGTH

#define MIN_WORD_LENGTH   2

Definition at line 42 of file lex.c.

Referenced by rb_reserved_word().

◆ rb_reserved_word

#define rb_reserved_word (   str,
  len 
)    reserved_word(str, len)

Definition at line 37 of file lex.c.

◆ stringpool

#define stringpool   ((const char *) &stringpool_contents)

Definition at line 190 of file lex.c.

◆ TOTAL_KEYWORDS

#define TOTAL_KEYWORDS   41

Definition at line 41 of file lex.c.

Function Documentation

◆ rb_reserved_word()

const struct kwtable* rb_reserved_word ( const char *  str,
unsigned int  len 
)