summaryrefslogtreecommitdiff
path: root/lc.c
diff options
context:
space:
mode:
authorLorenzo Torres <lorenzotorres@outlook.it>2026-06-16 14:05:40 +0200
committerLorenzo Torres <lorenzotorres@outlook.it>2026-06-16 14:05:40 +0200
commit163664d2065cc2e8c61a25db1537934315b286cb (patch)
treed65b2fec3ae79218017b74fc15e5e7dbad1596d0 /lc.c
parent6c9d0f7fad1d96796efef43a6db7eef6df8de054 (diff)
rename project to xccHEADmaster
Diffstat (limited to 'lc.c')
-rw-r--r--lc.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/lc.c b/lc.c
deleted file mode 100644
index 6518b4a..0000000
--- a/lc.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include "lexer.h"
-#include "parser.h"
-
-int main(void)
-{
- FILE *fp = fopen("examples/hello_world.ll", "r");
- fseek(fp, 0, SEEK_END);
- size_t length = ftell(fp);
- fseek(fp, 0, SEEK_SET);
-
- char *src = malloc(length + 1);
- fread(src, 1, length, fp);
- src[length] = '\0';
- token *head = lexer_parse(src);
-
- if (!head) {
- printf("Parsing error!\n");
- exit(1);
- }
-
- ir_parse(head);
-
- return 0;
-}