1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2010 Index Data
3 * See the file LICENSE for details.
13 #include <yaz/options.h>
15 int main(int argc, char **argv)
19 const char *fname = 0;
24 while ((ret = options("n:", argv, argc, &arg)) != -2)
32 iterations = atoi(arg);
37 cp = cql_parser_create();
41 for (i = 0; i<iterations; i++)
42 r = cql_parser_string(cp, fname);
45 r = cql_parser_stdio(cp, stdin);
47 fprintf (stderr, "Syntax error\n");
49 cql_to_xml_stdio(cql_parser_result(cp), stdout);
50 cql_parser_destroy(cp);
56 * c-file-style: "Stroustrup"
57 * indent-tabs-mode: nil
59 * vim: shiftwidth=4 tabstop=8 expandtab