1 /* $Id: cql2xcql.c,v 1.3 2004-03-11 09:34:42 adam Exp $
2 Copyright (C) 2002-2004
5 This file is part of the YAZ toolkit.
14 int main(int argc, char **argv)
18 const char *fname = 0;
23 while ((ret = options("n:", argv, argc, &arg)) != -2)
31 iterations = atoi(arg);
36 cp = cql_parser_create();
40 for (i = 0; i<iterations; i++)
41 r = cql_parser_string(cp, fname);
44 r = cql_parser_stdio(cp, stdin);
46 fprintf (stderr, "Syntax error\n");
48 cql_to_xml_stdio(cql_parser_result(cp), stdout);
49 cql_parser_destroy(cp);