Interpreter now accepts bf-code as a file

This commit is contained in:
id101010
2016-11-08 22:35:37 +01:00
parent e0b3317c34
commit 52f29e1b1d
6 changed files with 72 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-std=c99 -Wall -O2 -static
CFLAGS=-std=c99 -Wall -O2 -static -g
CLIBS=-lm
PRGNAME=bfckr
CFILES=$(shell find . -name '*.c')
@@ -7,8 +7,7 @@ HFILES=$(shell find . -name '*.h')
STYLE=astyle --style=1tbs
RUN=valgrind --leak-check=full
DEBUG=gdb --args
ARGS="++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>."
ARGS="examples/hello.bf"
all: build run
@@ -23,4 +22,4 @@ run:
memtest:
$(RUN) ./$(PRGNAME) $(ARGS)
debug:
$(DEBUG) ./$(PRGNAME)
$(DEBUG) ./$(PRGNAME) $(ARGS)