parser, first try

This commit is contained in:
vadim
2017-11-23 17:33:47 +02:00
parent 427714df44
commit c11d3ece0d
5 changed files with 1720 additions and 572 deletions

View File

@@ -4,14 +4,19 @@
# blame: jnml, labs.nic.cz
all: lexer.go
all: parser.go lexer.go
rm -f y.output
gofmt -l -s -w *.go
go build
run: all
./php-parser
lexer.go: lexer.l
golex -t $< | gofmt > $@
golex -o $@ $<
parser.go: parser.y
goyacc -o $@ $<
clean:
rm -f php-parser.go lex.yy.go y.output *~