Skip to content

Commit

Permalink
hcl package for hcl parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Aug 2, 2014
1 parent 358b43d commit d5f3390
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d5f3390

Please sign in to comment.