Compare commits

..

No commits in common. "721b556647524199cdb8452a5ac376695ecfa322" and "c692ebef670ffe4815547a487d822822c362ee0e" have entirely different histories.

2 changed files with 2 additions and 18 deletions

View File

@ -1,16 +0,0 @@
CC = cc
RM = rm -f
TARGETS = bin/blang
all: $(TARGETS)
clean:
$(RM) $(TARGETS)
bin:
mkdir -p bin
bin/blang: bin src/*.c
$(CC) $(CFLAGS) -o $@ src/*.c
.PHONY: all clean

View File

@ -27,8 +27,8 @@ int main(){
case '$': stack = state; state = (char *)*_stack; break; case '$': stack = state; state = (char *)*_stack; break;
case '%': *stack = (char)state; break; case '%': *stack = (char)state; break;
case '^': state = (char *)0; break; case '^': state = (char *)0; break;
case '+': ++state; break; case '+': ++(char)state; break;
case '-': --state; break; case '-': --(char)state; break;
case '>': putchar((char)state); break; case '>': putchar((char)state); break;
case '<': get = 1; break; case '<': get = 1; break;
case ':': case ':':