prepare php5 parser files

This commit is contained in:
z7zmey
2018-01-26 15:24:56 +02:00
parent 1a045403db
commit e1993b7b5c
10 changed files with 9030 additions and 633 deletions

View File

@@ -1,6 +1,6 @@
PHPFILE=example.php
all: ./php7parser/parser.go ./scanner/scanner.go
all: ./php5/php5.go ./php7/php7.go ./scanner/scanner.go
rm -f y.output
gofmt -l -s -w *.go
go build
@@ -14,5 +14,8 @@ test: all
./scanner/scanner.go: ./scanner/scanner.l
golex -o $@ $<
./php7parser/parser.go: ./php7parser/parser.y
./php5/php5.go: ./php5/php5.y
goyacc -o $@ $<
./php7/php7.go: ./php7/php7.y
goyacc -o $@ $<