/*
- * Copyright (C) 2012
- * Dale Weiler
+ * Copyright (C) 2012
+ * Dale Weiler
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
*/
#include "gmqcc.h"
+bool parser_compile(const char *filename);
int main(int argc, char **argv) {
- if (argc <= 1) {
- printf("Usage: %s infile.qc outfile\n", *argv);
- return -1;
- }
-
- struct lex_file *lex = lex_open(argv[1]);
- lex_debug(lex);
- parse (lex);
- lex_close(lex);
-
- return 0;
+ util_debug("COM", "starting ...\n");
+
+ if (argc == 2) {
+ if (!parser_compile(argv[1])) {
+ printf("There were compile errors\n");
+ }
+ }
+
+ util_debug("COM", "cleaning ...\n");
+
+ util_meminfo();
+ return 0;
}