Skip to content

Commit

Permalink
Merge pull request #11 from facetoe/will-bump-parser-version
Browse files Browse the repository at this point in the history
Makefile,parser: bump to latest version
  • Loading branch information
facetoe authored Jun 13, 2023
2 parents ffeac27 + 00ee12f commit b9cdbdd
Show file tree
Hide file tree
Showing 11 changed files with 11,391 additions and 1,584 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ WORKDIR=build
ANTLR_VERSION=4.10
ANTLR_JAR=antlr-$(ANTLR_VERSION)-complete.jar


# When https://github.com/antlr/grammars-v4/pull/2651 is merged can use grammar from official project
#[email protected]:antlr/$(PROJECT).git
PROJECT=grammars-v4
GITHUB_URL[email protected]:facetoe/$(PROJECT).git
GRAMMAR_COMMIT=6826e5860e05c61877e0142d4c464b4cd30140a9
GRAMMAR_COMMIT=4a9bb0a5dc9cedbfafac688791ad0245a8d9d539

$(WORKDIR)/$(ANTLR_JAR):
mkdir -p $(WORKDIR)
Expand Down
12 changes: 11 additions & 1 deletion promval/parser/PromQLLexer.interp

Large diffs are not rendered by default.

7,702 changes: 7,368 additions & 334 deletions promval/parser/PromQLLexer.py

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions promval/parser/PromQLLexer.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ RIGHT_PAREN=34
LEFT_BRACKET=35
RIGHT_BRACKET=36
COMMA=37
SUBQUERY_RANGE=38
TIME_RANGE=39
DURATION=40
METRIC_NAME=41
LABEL_NAME=42
WS=43
AT=38
SUBQUERY_RANGE=39
TIME_RANGE=40
DURATION=41
METRIC_NAME=42
LABEL_NAME=43
WS=44
SL_COMMENT=45
'+'=3
'-'=4
'*'=5
Expand Down Expand Up @@ -74,3 +76,4 @@ WS=43
'['=35
']'=36
','=37
'@'=38
6 changes: 5 additions & 1 deletion promval/parser/PromQLParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit b9cdbdd

Please sign in to comment.