aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorc2023-12-05 12:43:06 -0500
committerc2023-12-05 12:43:06 -0500
commit56e337c634559e47bec6639a714635ec246a58f5 (patch)
tree1485a0857f3987c87900e22ed0e2bb5b336fe805 /src/main.c
parent3139398d475830f976895d27e772d4e926490881 (diff)
Removed hacked in "testing framework" (HLKT).
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 3c1b8b8..476668e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,7 +2,6 @@
#include <stdlib.h>
#include "include/util.h"
-#include "include/hlkt.h"
#include "include/source.h"
#include "include/token.h"
#include "include/pp.h"
@@ -17,13 +16,11 @@ int main(int argc, char* argv[]) {
/* get source */
src = source_get(argv[1]);
- HLKT_ASS(src);
log_dbg("source gotten");
log_inf("source: %s", src);
/* create pre-processor */
pp = pp_init(src);
- HLKT_ASS(pp);
log_dbg("preprocessor created");
/* pre-process source */
@@ -33,13 +30,10 @@ int main(int argc, char* argv[]) {
log_inf("pre-processed source: %s", pp->psrc);
/* destroy pre-processor */
pp_destroy(pp);
- HLKT_ASS(src);
log_dbg("preprocessor ran");
/* create lexer */
lexer = lexer_init(src);
- HLKT_ASS(lexer);
- HLKT_ASS(lexer->src == src);
log_dbg("lexer created");
/* run lexer */
@@ -58,7 +52,5 @@ int main(int argc, char* argv[]) {
parser_destroy(parser);
free(src);
- HLKT_LOG();
-
return 0;
}