split scanner and parser

This commit is contained in:
z7zmey
2018-01-24 18:42:23 +02:00
parent c6f73cf618
commit b93d24f95f
8 changed files with 1603 additions and 1409 deletions

View File

@@ -1,6 +1,6 @@
PHPFILE=example.php
all: ./parser/php7.go ./parser/scanner.go
all: ./parser/php7.go ./scanner/scanner.go
rm -f y.output
gofmt -l -s -w *.go
go build
@@ -11,7 +11,7 @@ run: all
test: all
go test ./... --cover
./parser/scanner.go: ./parser/scanner.l
./scanner/scanner.go: ./scanner/scanner.l
golex -o $@ $<
./parser/php7.go: ./parser/php7.y