diff --git a/Makefile b/Makefile index 0743ca6..4da2687 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +BENCHTIME ?= 10s + .PHONY: all all: test @@ -9,6 +11,10 @@ clean: test: go test -v -coverprofile=coverage.out ./... +.PHONY: bench +bench: + go test -v -bench . -benchtime $(BENCHTIME) ./... + .PHONY: show-cover show-cover: go tool cover -func=coverage.out diff --git a/README.md b/README.md index 04317b5..40c94c0 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ library [parser](https://pkg.go.dev/go/parser). - support both POSIX-y and Windows-y styles - build a printable/JSON-able parse tree - support rich error reporting +- support event-like reactive parsing