1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) Index Data
3 * See the file LICENSE for details.
7 * \brief Implements CCL node tree to RPN converson.
17 #include <yaz/yaz-ccl.h>
18 #include <yaz/pquery.h>
20 Z_RPNQuery *ccl_rpn_query (ODR o, struct ccl_rpn_node *p)
22 YAZ_PQF_Parser parser = yaz_pqf_create();
23 WRBUF wr = wrbuf_alloc();
28 q = yaz_pqf_parse(parser, o, wrbuf_cstr(wr));
31 yaz_pqf_destroy(parser);
35 Z_AttributesPlusTerm *ccl_scan_query (ODR o, struct ccl_rpn_node *p)
37 YAZ_PQF_Parser parser = yaz_pqf_create();
38 WRBUF wr = wrbuf_alloc();
39 Z_AttributesPlusTerm *q;
44 q = yaz_pqf_scan(parser, o, &setp, wrbuf_cstr(wr));
47 yaz_pqf_destroy(parser);
54 * c-file-style: "Stroustrup"
55 * indent-tabs-mode: nil
57 * vim: shiftwidth=4 tabstop=8 expandtab