Compare commits
2 Commits
c692ebef67
...
721b556647
Author | SHA1 | Date | |
---|---|---|---|
721b556647 | |||
505fb17779 |
16
Makefile
Normal file
16
Makefile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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
|
@ -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 '+': ++(char)state; break;
|
case '+': ++state; break;
|
||||||
case '-': --(char)state; break;
|
case '-': --state; break;
|
||||||
case '>': putchar((char)state); break;
|
case '>': putchar((char)state); break;
|
||||||
case '<': get = 1; break;
|
case '<': get = 1; break;
|
||||||
case ':':
|
case ':':
|
Loading…
Reference in New Issue
Block a user