[project @ 1999-06-01 16:40:41 by simonmar]
[ghc-hetmet.git] / ghc / compiler / parser / main.c
diff --git a/ghc/compiler/parser/main.c b/ghc/compiler/parser/main.c
deleted file mode 100644 (file)
index eb1c58e..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/* 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. */
-
-    argv++; argc--;
-    process_args(argc,argv);
-
-    hash_init();
-    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);
-      }
-}