Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

lex.c File Reference

Go to the source code of this file.

Data Structures

struct  kwtable

Defines

#define TOTAL_KEYWORDS   40
#define MIN_WORD_LENGTH   2
#define MAX_WORD_LENGTH   8
#define MIN_HASH_VALUE   6
#define MAX_HASH_VALUE   55

Functions

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


Define Documentation

#define MAX_HASH_VALUE   55
 

Definition at line 9 of file lex.c.

#define MAX_WORD_LENGTH   8
 

Definition at line 7 of file lex.c.

#define MIN_HASH_VALUE   6
 

Definition at line 8 of file lex.c.

#define MIN_WORD_LENGTH   2
 

Definition at line 6 of file lex.c.

Referenced by rb_reserved_word().

#define TOTAL_KEYWORDS   40
 

Definition at line 5 of file lex.c.


Function Documentation

unsigned int hash const char *  str,
unsigned int  len
[static]
 

Definition at line 20 of file lex.c.

Referenced by rb_reserved_word().

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

Definition at line 72 of file lex.c.

References EXPR_ARG, EXPR_BEG, EXPR_CLASS, EXPR_END, EXPR_FNAME, EXPR_MID, hash(), k__FILE__, k__LINE__, kALIAS, kAND, kBEGIN, kBREAK, kCASE, kCLASS, kDEF, kDEFINED, kDO, kELSE, kELSIF, kEND, kENSURE, kFALSE, kFOR, kIF, kIF_MOD, kIN, klBEGIN, klEND, kMODULE, kNEXT, kNIL, kNOT, kOR, kREDO, kRESCUE, kRESCUE_MOD, kRETRY, kRETURN, kSELF, kSUPER, kTHEN, kTRUE, kUNDEF, kUNLESS, kUNLESS_MOD, kUNTIL, kUNTIL_MOD, kWHEN, kWHILE, kWHILE_MOD, kYIELD, MIN_WORD_LENGTH, and kwtable::name.


Generated on Wed Jan 18 23:32:09 2006 for Ruby by doxygen 1.3.5