Simple parser, took like an hour.

Not very smart but at least it's like O(n).
This commit is contained in:
2023-09-02 15:21:56 +01:00
commit 2d33640c03
3 changed files with 215 additions and 0 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
CC=gcc
CFLAGS=-Wall -Wextra -Wpedantic -ggdb -fsanitize=address -std=c11
LIBS=
OBJECTS=main.o
OUT=obf.out
ARGS=
%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@ $(LIBS)
$(OUT): $(OBJECTS)
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
.PHONY:
clean:
rm -rfv $(OUT) $(OBJECTS)
.PHONY: run
run: $(OUT)
./$^ $(ARGS)