summaryrefslogtreecommitdiff
path: root/test3/Makefile
blob: ee3f68cf1755d2c19a62309bb2c1dffd4385ee5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS=-std=c99 -Wall -Werror -g

all: parse

test: parse
	printf "9-5+2" | ./parse
	printf "9 - 5 + 2" | ./parse
	printf "91 - 35 + 23" | ./parse
	-printf "91-" | ./parse
	-printf "+22" | ./parse
	-printf "x+y-22" | ./parse
	-printf "hello" | ./parse
	-printf "false+true" | ./parse

clean:
	-rm -f parse