hcl package for hcl parsing

This commit is contained in:
Mitchell Hashimoto 2014-08-02 11:41:10 -07:00
parent 358b43ddbc
commit d5f339015f
17 changed files with 6 additions and 5 deletions

View File

@ -1,20 +1,21 @@
default: test
fmt: y.go json/y.go
fmt: hcl/y.go json/y.go
go fmt ./...
test: y.go json/y.go
test: hcl/y.go json/y.go
go test ./...
y.go: parse.y
go tool yacc -p "hcl" parse.y
hcl/y.go: hcl/parse.y
cd hcl && \
go tool yacc -p "hcl" parse.y
json/y.go: json/parse.y
cd json/ && \
go tool yacc -p "json" parse.y
clean:
rm -f y.go
rm -f hcl/y.go
rm -f json/y.go
.PHONY: default test

View File