5 * Revision 1.9 1995/02/23 08:32:00 adam
8 * Revision 1.7 1995/02/15 17:42:16 adam
9 * Minor changes of the api of this module. FILE* argument added
12 * Revision 1.6 1995/02/14 19:55:13 adam
13 * Header files ccl.h/cclp.h are gone! They have been merged an
14 * moved to ../include/ccl.h.
15 * Node kind(s) in ccl_rpn_node have changed names.
17 * Revision 1.5 1995/02/14 16:20:57 adam
18 * Qualifiers are read from a file now.
20 * Revision 1.4 1995/02/14 14:12:42 adam
21 * Ranges for ordered qualfiers implemented (e.g. pd=1980-1990).
23 * Revision 1.3 1995/02/14 10:25:57 adam
24 * The constructions 'qualifier rel term ...' implemented.
26 * Revision 1.2 1995/02/13 15:15:07 adam
27 * Added handling of qualifiers. Not finished yet.
29 * Revision 1.1 1995/02/13 12:35:21 adam
30 * First version of CCL. Qualifiers aren't handled yet.
43 int main (int argc, char **argv)
50 bibset = ccl_qual_mk ();
62 bib_fname = argv[0]+2;
70 fprintf (stderr, "%s: missing bib filename\n", prog);
73 bib_inf = fopen (bib_fname, "r");
76 fprintf (stderr, "%s: cannot open %s\n", prog,
80 ccl_qual_file (bibset, bib_inf);
84 fprintf (stderr, "%s: unknown option '%s'\n",
91 fprintf (stderr, "%s: no filenames, please\n", prog);
99 struct ccl_rpn_node *rpn;
101 printf ("CCLSH>"); fflush (stdout);
102 if (!fgets (buf, 79, stdin))
104 rpn = ccl_find_str (bibset, buf, &error, &pos);
107 printf ("%*s^ - ", 6+pos, " ");
108 printf ("%s\n", ccl_err_msg (error));
113 ccl_pr_tree (rpn, stdout);