cmd: add php5 flag

This commit is contained in:
z7zmey
2018-02-06 12:39:42 +02:00
parent ce9d676229
commit f546db54b6
5 changed files with 43 additions and 26 deletions

View File

@@ -1,16 +1,20 @@
PHPFILE=example.php
all: ./php5/php5.go ./php7/php7.go ./scanner/scanner.go
rm -f y.output
gofmt -l -s -w *.go
all: compile run
build:
gofmt -l -s -w **/*.go
go build
run: all
run: build
./php-parser $(PHPFILE)
test: all
go test ./... --cover
compile: ./php5/php5.go ./php7/php7.go ./scanner/scanner.go
rm -f y.output
./scanner/scanner.go: ./scanner/scanner.l
golex -o $@ $<