1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2011 Index Data
3 * See the file LICENSE for details.
7 * \brief Implements CCL node tree to RPN converson.
18 #include <yaz/yaz-ccl.h>
19 #include <yaz/pquery.h>
21 Z_RPNQuery *ccl_rpn_query (ODR o, struct ccl_rpn_node *p)
23 YAZ_PQF_Parser parser = yaz_pqf_create();
24 WRBUF wr = wrbuf_alloc();
29 q = yaz_pqf_parse(parser, o, wrbuf_cstr(wr));
32 yaz_pqf_destroy(parser);
36 Z_AttributesPlusTerm *ccl_scan_query (ODR o, struct ccl_rpn_node *p)
38 YAZ_PQF_Parser parser = yaz_pqf_create();
39 WRBUF wr = wrbuf_alloc();
40 Z_AttributesPlusTerm *q;
45 q = yaz_pqf_scan(parser, o, &setp, wrbuf_cstr(wr));
48 yaz_pqf_destroy(parser);
55 * c-file-style: "Stroustrup"
56 * indent-tabs-mode: nil
58 * vim: shiftwidth=4 tabstop=8 expandtab