--- /dev/null
+/* This is the "top-level" file for the *standalone* hsp parser.
+ See also hsclink.c. (WDP 94/10)
+*/
+
+#include <stdio.h>
+
+#include "hspincl.h"
+#include "constants.h"
+#include "utils.h"
+
+/*OLD:static char *progname;*/ /* The name of the program. */
+
+
+/**********************************************************************
+* *
+* *
+* The main program *
+* *
+* *
+**********************************************************************/
+
+int
+main(int argc, char **argv)
+{
+ Lnil = mklnil(); /* The null list -- used in lsing, etc. */
+
+ process_args(argc,argv);
+
+ hash_init();
+
+#ifdef HSP_DEBUG
+ fprintf(stderr,"input_file_dir=%s\n",input_file_dir);
+#endif
+
+ yyinit();
+
+ if(yyparse() == 0 && !etags)
+ {
+ /* No syntax errors. */
+ pprogram(root);
+ printf("\n");
+ exit(0);
+ }
+ else if(etags)
+ {
+ exit(0);
+ }
+ else
+ {
+ /* There was a syntax error. */
+ printf("\n");
+ exit(1);
+ }
+}