YAZ  5.23.1
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

#define CCL_TOK_AND   8

Definition at line 42 of file cclp.h.

Referenced by ccl_parser_tokenize(), and find_spec().

#define CCL_TOK_COMMA   7
#define CCL_TOK_EOL   0

Definition at line 34 of file cclp.h.

Referenced by ccl_parser_find_token(), and ccl_parser_tokenize().

#define CCL_TOK_EQ   3
#define CCL_TOK_LP   5

Definition at line 39 of file cclp.h.

Referenced by ccl_parser_tokenize(), search_elements(), and search_terms2().

#define CCL_TOK_NOT   10

Definition at line 44 of file cclp.h.

Referenced by ccl_parser_tokenize(), and find_spec().

#define CCL_TOK_OR   9

Definition at line 43 of file cclp.h.

Referenced by ccl_parser_tokenize(), and find_spec().

#define CCL_TOK_PROX   4

Definition at line 38 of file cclp.h.

Referenced by ccl_parser_tokenize(), and search_terms().

#define CCL_TOK_REL   2

Definition at line 36 of file cclp.h.

Referenced by ccl_parser_tokenize(), search_elements(), search_terms(), and search_terms2().

#define CCL_TOK_RP   6

Definition at line 40 of file cclp.h.

Referenced by ccl_parser_find_token(), ccl_parser_tokenize(), and search_terms2().

#define CCL_TOK_SET   11

Definition at line 45 of file cclp.h.

Referenced by ccl_parser_tokenize(), search_elements(), search_terms(), and search_terms2().

#define CCL_TOK_TERM   1

Typedef Documentation

typedef struct ccl_qualifier* ccl_qualifier_t

Definition at line 47 of file cclp.h.

Function Documentation

struct ccl_rpn_node* ccl_parser_find_token ( CCL_parser  cclp,
struct ccl_token list 
)
struct ccl_token* ccl_parser_tokenize ( CCL_parser  cclp,
const char *  command 
)
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().

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_qualifier_t ccl_qual_search ( CCL_parser  cclp,
const char *  name,
size_t  name_len,
int  seq 
)
struct ccl_token* ccl_token_add ( struct ccl_token at)
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().