File tokens.c

This file contains a list of all recognized tokens. More precisely, the tokens that are formalized.


Included Files


Preprocessor definitions

#define T_CATEGORY T_SECTION

#define TOTAL_KEYWORDS 52

#define MIN_WORD_LENGTH 2

#define MAX_WORD_LENGTH 12

#define MIN_HASH_VALUE 3

#define MAX_HASH_VALUE 104


Type struct tokens

struct tokens
struct tokens 
   { 
     char* name; 
     int token; 
     int value; 
   } 

Local Variables

rcsid
static const char rcsid[]

Global Function in_word_set_tokens()

inline const struct tokens* in_word_set_tokens ( const char* str, unsigned int len )
Calls: hash()hash.c
  strcmp()
Called by: lookup_token()tokens.c

Global Function lookup_token()

const struct tokens* lookup_token ( const char* str, unsigned int len, int token )
Calls: in_word_set_tokens()tokens.c

Local Function hash()

static inline unsigned int hash ( const char* str, unsigned int len )
Called by: in_word_set_tokens()tokens.c