Skip to content

File keyword.c

FileList > cubrid > src > parser > keyword.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdlib.h>
  • #include <string.h>
  • #include "csql_grammar.h"
  • #include "parser.h"
  • #include "dbtype.h"
  • #include "string_opfunc.h"
  • #include "chartype.h"

Classes

Type Name
struct KEYWORDS_TABLE_SRCH_INFO

Public Static Attributes

Type Name
FUNCTION_MAP functions
KEYWORD_RECORD keywords

Public Functions

Type Name
T2 * find_keyword_tables (T & keywords, T2 & dummy, KEYWORDS_TABLE_SRCH_INFO & info, Func func_cmp, const char * text)
void init_keyword_tables (T & keywords, KEYWORDS_TABLE_SRCH_INFO & info, Func func_cmp)
FUNCTION_MAP * pt_find_function_name (const char * text)
KEYWORD_RECORD * pt_get_keyword_rec (int * rec_count)
int pt_identifier_or_keyword (const char * text)
bool pt_is_keyword (const char * text)
bool pt_is_reserved_word (const char * text)
void verify_test (bool is_keywords, KEYWORDS_TABLE_SRCH_INFO & info)

Public Static Functions

Type Name
int keyword_cmp (const void * k1, const void * k2)
int keyword_hash_comparator (const void * lhs, const void * rhs)
KEYWORD_RECORD * pt_find_keyword (const char * text)

Macros

Type Name
define GET_KEYWORD_HASH_VALUE (h, s) /* multi line expression */
define MAGIC_NUM_BI_SEQ (5) /\* [**Performance**](broker__monitor_8c.md#function-timeout) intersection between [**binary**](broker__monitor_8c.md#function-timeout) [**and**](broker__monitor_8c.md#function-timeout) [**sequential**](broker__monitor_8c.md#function-timeout) search \*/

Public Static Attributes Documentation

variable functions

FUNCTION_MAP functions[];

variable keywords

KEYWORD_RECORD keywords[];

Public Functions Documentation

function find_keyword_tables

template<typename T, typename  T2, typename  Func>
T2 * find_keyword_tables (
    T & keywords,
    T2 & dummy,
    KEYWORDS_TABLE_SRCH_INFO & info,
    Func func_cmp,
    const  char * text
) 

function init_keyword_tables

template<typename T, typename  Func>
void init_keyword_tables (
    T & keywords,
    KEYWORDS_TABLE_SRCH_INFO & info,
    Func func_cmp
) 

function pt_find_function_name

FUNCTION_MAP * pt_find_function_name (
    const  char * text
) 

function pt_get_keyword_rec

KEYWORD_RECORD * pt_get_keyword_rec (
    int * rec_count
) 

function pt_identifier_or_keyword

int pt_identifier_or_keyword (
    const  char * text
) 

function pt_is_keyword

bool pt_is_keyword (
    const  char * text
) 

function pt_is_reserved_word

bool pt_is_reserved_word (
    const  char * text
) 

function verify_test

void verify_test (
    bool is_keywords,
    KEYWORDS_TABLE_SRCH_INFO & info
) 

Public Static Functions Documentation

function keyword_cmp

static int keyword_cmp (
    const  void * k1,
    const  void * k2
) 

function keyword_hash_comparator

template<typename T>
static int keyword_hash_comparator (
    const  void * lhs,
    const  void * rhs
) 

function pt_find_keyword

static KEYWORD_RECORD * pt_find_keyword (
    const  char * text
) 

Macro Definition Documentation

define GET_KEYWORD_HASH_VALUE

#define GET_KEYWORD_HASH_VALUE (
    h,
    s
) `/* multi line expression */`

define MAGIC_NUM_BI_SEQ

#define MAGIC_NUM_BI_SEQ `(5)   /* Performance intersection between binary  and  sequential search */`


The documentation for this class was generated from the following file cubrid/src/parser/keyword.c