split scanner and lexer

This commit is contained in:
vadim
2017-12-01 15:36:46 +02:00
parent 4318df3473
commit bc6d25a7cc
4 changed files with 8966 additions and 9063 deletions

View File

@@ -4,7 +4,7 @@
# blame: jnml, labs.nic.cz
all: parser.go lexer.go
all: parser.go scanner.go
rm -f y.output
gofmt -l -s -w *.go
go build
@@ -12,7 +12,7 @@ all: parser.go lexer.go
run: all
./php-parser
lexer.go: lexer.l
scanner.go: scanner.l
golex -o $@ $<
parser.go: parser.y