YAZ  5.34.0
Data Structures | Macros | Typedefs | Functions
cclp.h File Reference

CCL header with private definitions. More...

#include <yaz/ccl.h>

Go to the source code of this file.

Data Structures

struct  ccl_token
 
struct  ccl_parser
 

Macros

#define CCL_TOK_EOL   0
 
#define CCL_TOK_TERM   1
 
#define CCL_TOK_REL   2
 
#define CCL_TOK_EQ   3
 
#define CCL_TOK_PROX   4
 
#define CCL_TOK_LP   5
 
#define CCL_TOK_RP   6
 
#define CCL_TOK_COMMA   7
 
#define CCL_TOK_AND   8
 
#define CCL_TOK_OR   9
 
#define CCL_TOK_NOT   10
 
#define CCL_TOK_SET   11
 

Typedefs

typedef struct ccl_qualifierccl_qualifier_t
 

Functions

struct ccl_tokenccl_parser_tokenize (CCL_parser cclp, const char *command)
 
void ccl_token_del (struct ccl_token *list)
 
struct ccl_tokenccl_token_add (struct ccl_token *at)
 
struct ccl_rpn_nodeccl_parser_find_token (CCL_parser cclp, struct ccl_token *list)
 
ccl_qualifier_t ccl_qual_search (CCL_parser cclp, const char *name, size_t name_len, int seq)
 
struct ccl_rpn_attrccl_qual_get_attr (ccl_qualifier_t q)
 
const char * ccl_qual_get_name (ccl_qualifier_t q)
 

Detailed Description

CCL header with private definitions.

Definition in file cclp.h.

Macro Definition Documentation

◆ CCL_TOK_AND

#define CCL_TOK_AND   8

Definition at line 42 of file cclp.h.

◆ CCL_TOK_COMMA

#define CCL_TOK_COMMA   7

Definition at line 41 of file cclp.h.

◆ CCL_TOK_EOL

#define CCL_TOK_EOL   0

Definition at line 34 of file cclp.h.

◆ CCL_TOK_EQ

#define CCL_TOK_EQ   3

Definition at line 37 of file cclp.h.

◆ CCL_TOK_LP

#define CCL_TOK_LP   5

Definition at line 39 of file cclp.h.

◆ CCL_TOK_NOT

#define CCL_TOK_NOT   10

Definition at line 44 of file cclp.h.

◆ CCL_TOK_OR

#define CCL_TOK_OR   9

Definition at line 43 of file cclp.h.

◆ CCL_TOK_PROX

#define CCL_TOK_PROX   4

Definition at line 38 of file cclp.h.

◆ CCL_TOK_REL

#define CCL_TOK_REL   2

Definition at line 36 of file cclp.h.

◆ CCL_TOK_RP

#define CCL_TOK_RP   6

Definition at line 40 of file cclp.h.

◆ CCL_TOK_SET

#define CCL_TOK_SET   11

Definition at line 45 of file cclp.h.

◆ CCL_TOK_TERM

#define CCL_TOK_TERM   1

Definition at line 35 of file cclp.h.

Typedef Documentation

◆ ccl_qualifier_t

typedef struct ccl_qualifier* ccl_qualifier_t

Definition at line 47 of file cclp.h.

Function Documentation

◆ ccl_parser_find_token()

struct ccl_rpn_node* ccl_parser_find_token ( CCL_parser  cclp,
struct ccl_token list 
)

◆ ccl_parser_tokenize()

struct ccl_token* ccl_parser_tokenize ( CCL_parser  cclp,
const char *  command 
)

◆ ccl_qual_get_attr()

struct ccl_rpn_attr* ccl_qual_get_attr ( ccl_qualifier_t  q)

Definition at line 382 of file cclqual.c.

References ccl_qualifier::attr_list.

Referenced by ccl_term_multi_use(), ccl_term_one_use(), and qual_val_type().

◆ ccl_qual_get_name()

const char* ccl_qual_get_name ( ccl_qualifier_t  q)

Definition at line 396 of file cclqual.c.

References ccl_qualifier::name.

Referenced by ccl_term_one_use().

◆ ccl_qual_search()

ccl_qualifier_t ccl_qual_search ( CCL_parser  cclp,
const char *  name,
size_t  name_len,
int  seq 
)

◆ ccl_token_add()

struct ccl_token* ccl_token_add ( struct ccl_token at)

◆ ccl_token_del()

void ccl_token_del ( struct ccl_token list)

Deletes token list

Definition at line 209 of file ccltoken.c.

References ccl_token::next, and xfree.

Referenced by ccl_find_str(), and ccl_parser_find_str().