Data Structures | Defines | Functions

lex.c File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  kwtable

Defines

#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

Functions

struct kwtablerb_reserved_word (const char *, unsigned int)
static struct kwtablereserved_word (const char *, unsigned int)
static unsigned int hash (const char *str, unsigned int len)

Define Documentation

#define MAX_HASH_VALUE   50

Definition at line 45 of file lex.c.

#define MAX_WORD_LENGTH   12

Definition at line 43 of file lex.c.

#define MIN_HASH_VALUE   8

Definition at line 44 of file lex.c.

#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)

Definition at line 37 of file lex.c.

Referenced by parser_yylex(), and reg_named_capture_assign_iter().

#define TOTAL_KEYWORDS   41

Definition at line 41 of file lex.c.


Function Documentation

static unsigned int hash ( const char *  str,
unsigned int  len 
) [static]
struct kwtable* rb_reserved_word ( const char *  str,
unsigned int  len 
) [read]
static struct kwtable* reserved_word ( const char *  ,
unsigned  int 
) [static, read]

Referenced by rb_reserved_word().