HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/include/namazu/parser.h
#ifndef _PARSER_H
#define _PARSER_H

#include "libnamazu.h" /* for NmzResult type */

/* definitions of operator */
#define AND_STRING "&"
#define OR_STRING  "|"
#define NOT_STRING "!"
#define LP_STRING  "("
#define RP_STRING  ")"

/* also acceptable as word since v1.1.1 */
#define AND_STRING_ALT "and"
#define OR_STRING_ALT  "or"
#define NOT_STRING_ALT "not"

#define AND_OP 1
#define NOT_OP 2

extern void nmz_init_parser(void);
extern NmzResult nmz_expr(void);
extern int nmz_is_query_op(const char *);

#endif /* _PARSER_H */