Skip to content

Commit

Permalink
parser: remake generated_parser output (#13923)
Browse files Browse the repository at this point in the history
In a previous PR, the generated parser was created using an old version of goyacc.

Also adds -l to disable line directives, which fixes debug processing and reduces diffs at the expense of making it more difficult to reason about the generated output.

Signed-off-by: Owen Williams <owen.williams@grafana.com>
  • Loading branch information
ywwg committed Apr 13, 2024
1 parent 4ec5c25 commit 4a6f870
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ifeq (, $(shell command -v goyacc 2> /dev/null))
@echo "goyacc not installed so skipping"
@echo "To install: go install golang.org/x/tools/cmd/goyacc@v0.6.0"
else
goyacc -o promql/parser/generated_parser.y.go promql/parser/generated_parser.y
goyacc -l -o promql/parser/generated_parser.y.go promql/parser/generated_parser.y
endif

.PHONY: test
Expand Down
76 changes: 38 additions & 38 deletions promql/parser/generated_parser.y.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a6f870

Please sign in to comment.