1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2009 Index Data
3 * See the file LICENSE for details.
10 #include <yaz/options.h>
12 int main(int argc, char **argv)
16 const char *fname = 0;
21 while ((ret = options("n:", argv, argc, &arg)) != -2)
29 iterations = atoi(arg);
34 cp = cql_parser_create();
38 for (i = 0; i<iterations; i++)
39 r = cql_parser_string(cp, fname);
42 r = cql_parser_stdio(cp, stdin);
44 fprintf (stderr, "Syntax error\n");
46 cql_to_xml_stdio(cql_parser_result(cp), stdout);
47 cql_parser_destroy(cp);
53 * indent-tabs-mode: nil
55 * vim: shiftwidth=4 tabstop=8 expandtab