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,12 +1,13 @@
default: test default: test
fmt: y.go json/y.go fmt: hcl/y.go json/y.go
go fmt ./... go fmt ./...
test: y.go json/y.go test: hcl/y.go json/y.go
go test ./... go test ./...
y.go: parse.y hcl/y.go: hcl/parse.y
cd hcl && \
go tool yacc -p "hcl" parse.y go tool yacc -p "hcl" parse.y
json/y.go: json/parse.y json/y.go: json/parse.y
@ -14,7 +15,7 @@ json/y.go: json/parse.y
go tool yacc -p "json" parse.y go tool yacc -p "json" parse.y
clean: clean:
rm -f y.go rm -f hcl/y.go
rm -f json/y.go rm -f json/y.go
.PHONY: default test .PHONY: default test

View File